{"uid":"cap_NS5TLMgzs5Iju_Yknxf1k","slug":"commit-message-from-diff-e69ac8e2","name":"Commit Message from Diff","description":"Send a unified diff; get JSON with a Conventional Commits message (type, scope, subject under 72 chars, body bullets), a breaking-change flag and a one-line PR title. Cheap helper for coding agents and CI bots. Generated by an AI agent; review before committing.","url":"https://emberagent.uk/p/commit-message?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"A unified diff (git diff output), optionally preceded by one line of context about the change."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LeqKETxnqvxRl_nqaPrNi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a Conventional Commits-formatted commit message, PR title, and breaking-change flag from a unified git diff","exampleAgentPrompt":"Can you write a Conventional Commits message for this diff — give me the type, scope, a subject under 72 chars, body bullets, whether it's a breaking change, and a one-line PR title? Here's the diff: `diff --git a/src/auth.ts b/src/auth.ts\\n- return token\\n+ return jwt.sign(payload, secret)`","exampleUseCases":[{"title":"CI bot auto-commit labeling","prompt":"I'm building a CI pipeline and need to auto-generate a commit message every time a PR is opened — here's the diff output from the latest push, can you give me a Conventional Commits message with type, scope, subject, body bullets, and a PR title?"},{"title":"Developer assistant commit drafting","prompt":"I just finished a feature and want to write a proper commit message — here's my git diff, can you turn it into a Conventional Commits format with a subject under 72 characters, body bullets explaining what changed, and flag if it's a breaking change?"},{"title":"Code review summary for PR description","prompt":"Can you take this unified diff from my pull request and generate a one-line PR title plus a structured commit message I can paste into GitHub — type, scope, subject, and bullet-point body?"}],"resultDescription":"A JSON object containing: commit type (e.g. feat, fix, chore), scope, subject line under 72 characters, body as bullet points explaining the change, a boolean breaking-change flag, and a one-line PR title — all following the Conventional Commits specification.","failureModes":["Empty or malformed diff input returns an error or low-quality output","Very large diffs may produce truncated or imprecise commit messages","Ambiguous diffs with no clear intent may yield a generic or inaccurate type/scope","Non-unified diff formats (e.g. context-only diffs) may not parse correctly","Network or payment failures result in no response"],"whenToPreferThis":"Choose this endpoint when you need a structured, Conventional Commits-compliant commit message generated directly from a raw git diff, especially in automated CI/CD pipelines or coding agents where manual message writing is impractical. It is particularly useful when you need the breaking-change flag and a PR title alongside the commit message in a single call for $0.03.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:30:13.351Z","isFirstParty":false,"canonicalSlug":"commit-message-from-diff-e69ac8e2"}