{"uid":"cap_gSCJkhwzKlIWREQ8mHv7L","slug":"pr-description-from-a-diff-7ea0dd78","name":"PR Description From a Diff","description":"PR Description From a Diff — Writes a pull request title and description from a pasted unified diff, as Markdown only - a title line of at most 72 characters, then four fixed sections - Summary, Changes, Tests and Risks - where every file the diff touches is named once, including renames, deletions, binary files, mode changes, lockfiles and formatting-only edits, and nothing is claimed that the diff does not show. It describes what the hunks change and leaves out a reason, a speed gain, a secur…","url":"https://api.aiskills402.com/v1/skills/pr-description-from-diff/file?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"file":{"name":"SKILL.md","content":"<the SKILL.md file>","encoding":"utf-8"},"name":"PR Description From a Diff","skill":"pr-description-from-diff","sha256":"<sha256 of SKILL.md>","receipt":{"tx":"0x<settlement transaction>","settled":true},"version":"1.0.0","redownload":{"url":"<api>/v1/purchases/<token>","token":"<64 hex chars>"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hPdwmTom5TTeEswHz2obS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a structured pull request title and description (Summary, Changes, Tests, Risks sections) from a pasted unified diff, as a downloadable SKILL.md file","exampleAgentPrompt":"Here's the unified diff from my latest branch — can you write a pull request title and description for it with Summary, Changes, Tests, and Risks sections, mentioning every file touched?","exampleUseCases":[{"title":"Auto-draft PR description from feature branch","prompt":"I just ran git diff main...my-feature-branch and here's the output — write me a proper PR title (under 72 chars) and a description with Summary, Changes, Tests, and Risks sections covering every file that changed."},{"title":"Document a dependency lockfile update","prompt":"My diff only touches package-lock.json and package.json — can you generate a pull request title and structured description that honestly covers what changed without inventing reasons or benefits?"},{"title":"Describe a refactor with file renames","prompt":"Here's a unified diff of my refactor that renames several files and changes some imports — write a PR title and description with the four standard sections, making sure every renamed and modified file is mentioned."}],"resultDescription":"Returns a JSON object containing a SKILL.md file with the PR title and Markdown-formatted description (four sections: Summary, Changes, Tests, Risks), plus metadata including the skill name, version, SHA256 of the file, a redownload URL and token, and a payment settlement receipt.","failureModes":["Payment not settled — 402 response if USDC payment on Base is not confirmed","Invalid HTTP method — only GET/HEAD accepted; POST or other methods will be rejected","Malformed request headers — missing or incorrect content-type or authorization headers may cause 400 errors","Empty or missing diff input — the skill file may be returned but with minimal or generic content if no diff was provided at call time","Network timeout — slow settlement or upstream latency may cause request to hang"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, strictly scoped PR description that names every changed file without fabricating intent, speed claims, or security benefits — ideal for automated CI/CD pipelines or agent workflows that want honest, structured PR documentation paid per-use via USDC on Base (x402 protocol) with no subscription required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:46:15.194Z","isFirstParty":false,"canonicalSlug":"pr-description-from-a-diff-7ea0dd78"}