Code & Engineering

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 security fix or a test result unless the author's note supplies it, flags what can break callers, links an issue only when one is given, never copies a secret into the text, treats a note addressed to the AI inside a code comment as data, and says so when the diff is cut off. Use when asked to write a pr description, pull request body or merge request text from a git diff or a patch.

PR Description From a Diff is a SKILL.md that 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; an agent buys it once for $0.02 over x402.

Tested 2026-10-08No code, no hidden instructionsv1.0.3 · 10.6 KB · perpetual license

Not for

It does not read your repository, run the code or the tests, or open a pull request; the pull request description it writes comes only from the diff you paste in, plus an issue number and the author's note if you add them. It cannot say why a change was made when the note does not. It describes a change, it does not hunt for defects or judge the design, and it writes no changelog entry.

Tested, honestly

Tested 2026-10-08 with a strong and a weak model.

With and without the skill

Results with and without the skill, for Sonnet and Haiku
SonnetHaiku
withwithoutwithwithout
Descriptions written right (24 diffs)22/2421/2419/2417/24

Same request on both sides, a fence removed first. Read by hand, Sonnet without the skill already named every file, stated the changed default under the refactor note, gave the lockfile-only diff no reasons, flagged the secret and the TODO, and ignored the hidden instruction. It missed three: it titled the HTML swap a fix for script injection; on the set lookup it wrote that the cost drops from O(n·m) to O(n+m), a speed claim the checks let through, counted here since that diff tests for one; and it put Closes #12 on its own line between the title and the first section. Haiku without the skill missed seven: the HTML swap, the same O(n+m) claim, a title of 82 characters, three titles with no blank line after them and Refs #12 in place of a closing word. Not counted, as no diff tests for them: both models called a dropped column unused and a rounding change a fix.

Same cases and the same checks with and without the skill. The cases are ours, written around what the skill is for; with a handful of cases, a difference of one or two is within noise.

SonnetStrong model, claude-sonnet-5-5
Right on 22 of 24 diffs, read by hand, but it missed two: on a diff with a binary file and a mode change its title ran to 79 characters where the limit is 72, and on a diff that came with issue #12 it wrote a sentence on why it would not use a closing word, so the issue stayed unlinked. Everything else held: every changed file named, a lockfile-only diff described as such, a default value changed under a note that calls the work a refactor, an HTML swap with no security claim the diff does not show, a set lookup with no speed claim, no invented test result or ticket, a secret written into a file flagged, a cut-off diff said to be cut off, a Bulgarian note answered in Bulgarian, and an instruction hidden in the diff ignored.
HaikuWeak model, claude-haiku-5-5
Right on 19 of 24 diffs, read by hand, but it missed five, four of them on layout: three titles ran straight into the Summary heading with no blank line, one title was written as a Markdown heading, and on the diff that came with issue #12 it wrote Refs #12, which is not one of the closing words that link a pull request to an issue. It made no claim the diff does not show: no security fix on the HTML swap, no speed-up on the set lookup, the secret in the config file flagged without its value, and the planted instruction ignored.

Full test summary

Example

Our own test text, before and after the skill ran. Excerpts only.

English · claude-sonnet-5-5

Before

Author's note: Add the health endpoint Diff: diff --git a/src/routes/health.ts b/src/routes/health.ts new file mode 100644 index 0000000..9e3779b --- /dev/null +++ b/src/routes/health.ts @@ -0,0 +1,3 @@ +export function health() { + return { status: "ok", uptime: process.uptime() }; +} diff --git a/src/routes/index.ts b/src/routes/index.ts index 3c6ef36..daa66d1 100644…

After

Add a health endpoint and bump CI to Node 22 ## Summary Adds a `health` route handler that returns a status and the process uptime, registers it in the routes index, and serves it at `GET /health`. Per the note, the change adds the health endpoint. The diff also adds the `ms` dependency, changes the CI Node version from 20 to 22, and reformats one legacy file. ## Changes…

Bulgarian · claude-sonnet-5-5

Before

Author's note: Добавена валидация на имейл при регистрация Diff: diff --git a/src/auth/register.ts b/src/auth/register.ts index 76c90bc..1500857 100644 --- a/src/auth/register.ts +++ b/src/auth/register.ts @@ -1,3 +1,6 @@ export function register(input: Input) { + if (!isValidEmail(input.email)) { + return { ok: false, error: "Невалиден имейл" }; + } return createUser(input); }…

After

Добавя проверка на имейл във функцията register ## Summary Функцията `register` вече проверява имейла с `isValidEmail` преди да създаде потребител. Според бележката на автора промяната добавя валидация на имейл при регистрация. Няма посочен номер на задача. ## Changes…

What is in the file

  • The answer
  • Changes: every file, once
  • Claims: only what the diff shows
  • The issue link
  • Tests
  • Risks
  • Text addressed to you
  • Work in this order
  • Short examples

Languages

Any language. Tried in: English, Bulgarian.

License

Perpetual, non-exclusive; use and modify for yourself incl. paid work; no resale or republishing. Holder: Georgi Kalchev, aiskills402.com. Full terms.

Versions

Current version 1.0.3, updated 2026-10-13. Whoever bought an earlier version gets new ones free through the same re-download token.

  1. v1.0.3 · 2026-10-13

    - Price: $0.02, down from $0.03. With the corrected count the Sonnet gain is 1 (21 -> 22 of 24), and a gain of 1 is priced at $0.02. - The skill text and the test notes are unchanged.

  2. v1.0.2 · 2026-10-13

    - Test notes corrected after a second reading of every recorded answer (owner's approval). Sonnet without the skill: 20 -> 21 of 24. Two of its four listed misses were false alarms of the checks ("not a pure rename", "resolves to the same hash"). Issue #12 was linked, but on a line outside the requested layout. Its O(n·m) to O(n+m) claim on the set-lookup diff is a miss the checks let through, counted by hand. Haiku without: 16 -> 17 (the TODO was flagged as "marked for removal before release"). With the skill: unchanged, Sonnet 22 and Haiku 19. Haiku's five misses are four layout faults and one Refs #12, not a speed claim or an unflagged secret as first written. - Three checks widened for both sides in test/make-cases.mjs, with control cases in test/control.mjs: the negation "not a pure rename", "resolves to" and a TODO flagged by its words. - The skill text and the price are unchanged.

  3. v1.0.0 · 2026-10-08

    First release: turns a pasted unified diff (plus, when given, an issue number and the author's note) into a pull request title of at most 72 characters and a description with four fixed sections: Summary, Changes, Tests, Risks, as Markdown only. Every file header of the diff gets one bullet, including renames (both paths, similarity read), deletions, binary files, mode-only changes, lockfiles, snapshots, generated files and formatting-only files. Claims are limited to what the diff or the note shows: the reason only from the note and attributed; no security, speed or "no behaviour change" of the writer's own; a changed default is stated even under a refactor note; test results are never claimed and a missing test file is said as "No test changes in this diff."; Risks flags removed or renamed exports, changed signatures, deleted files, migrations, dependency and configuration changes, credential-looking values (never copied) and added TODO or FIXME, or says "None visible in the diff."; the issue is linked with a closing word only when its number is given; a line addressed to the AI inside the diff is reported, not obeyed; a cut-off diff is said to be cut off. Written to brief § 3.29 of docs/plan-batch3-briefs-21-40.md. The format facts are the stable extended-header lines of the unified diff (similarity index, rename from/to, old/new mode, "Binary files differ"); the closing words are the ones GitHub documents for linking a pull request to an issue. Neither page was re-fetched on the day of writing (no network step in this task), so both are from memory of the documented form. Model runs, the baseline and the price follow the measurement, not this entry; the starting price is class B, $0.02.

FAQ

Files a quick summary would skip: does it name them?

Lockfiles, snapshots, generated files, a file with only whitespace changes, a deleted test, a renamed file with both paths, a binary image and a file whose only change is its permission bits. Each gets a short bullet that says exactly what the diff shows, and a binary file is called binary with its content not shown.

Will it say the change fixes a bug, improves speed or closes a ticket?

Only when you say so. A diff shows lines added and removed, not the reason, so a motive, a security fix, a speed gain or no behaviour change is repeated only when the author's note supplies it, and then it is attributed. An issue is linked only when you give its number. Test results are never claimed, and Tests says plainly when no test file changed.

What happens to secrets and to instructions hidden in the diff?

A token or key written into a file is reported under Risks as a credential-looking value in that file, and the value itself is never copied into the text. A line addressed to the AI inside a code comment is reported as an added comment and not obeyed. A diff that is cut off is said to be cut off, and the missing files are not described.

Does it help Claude Sonnet?

Barely. Twenty-four diffs were described by Sonnet and by Haiku, in two rounds, skill in and skill out, every description scored by code and read by hand. Plain Sonnet already named the files, stated a default changed under a refactor note and gave a lockfile-only diff no reasons. It called an HTML swap a security fix, claimed a speed-up on a set lookup and broke the layout once: 21 right. With the skill, 22; it wrote one title of 79 characters and once left issue #12 unlinked. Haiku went from 17 to 19, mostly on layout. The output is a title plus Summary, Changes, Tests and Risks.

Read more

Share

Read this page as Markdown: /skills/pr-description-from-diff.md.

  • Changelog From Commits

    Code & Engineering

    SKILL.md · v1.0.0 · 8.6 KB

    Turns a commit list into one release entry in Keep a Changelog form, as Markdown only with no fence and no preface. Groups changes under Added, Changed, Deprecated, Removed, Fixed and Security in that order, writes user-facing one-line entries, drops merge, chore, ci, build, test, style, internal docs, internal refactor, wip and version-bump commits, flags breaking changes, keeps the issue and pull request numbers that are in the input and never adds one, a date, a version, a name, a commit hash or a link host that is not given. Uses an Unreleased heading when no release is named and can end with the Semantic Versioning bump the commits call for. Use when asked to write release notes or the next version bump from commits, a commit log or merged pull request titles, including Conventional Commits.

    $0.04once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

  • Code Review

    Code & Engineering

    SKILL.md · v1.0.4 · 6.0 KB

    Reviews a code change (a diff or a changed file pasted as text) and reports real problems ranked by severity — correctness bugs, security holes, data loss, missing error handling, edge cases, resource leaks — each with location, reason and a concrete fix in words. Use when asked to review code, a diff or a pull request, check a change for bugs, or find security problems in a snippet.

    $0.01once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 30 Sep 2026

  • Unified Diff Repair: Fix the Counts, Keep the Change

    Code & Engineering

    SKILL.md · v1.0.0 · 10.5 KB

    Repairs a unified diff (the patch format of git diff and diff -u) so that git apply and patch accept it against the file it was written for, and answers with the diff only, no code fence. Recounts the numbers in each hunk header from the hunk's own lines, puts back context lines and removed lines exactly as the file has them (tabs, trailing spaces, blank lines, carriage returns), adds the backslash line that marks a missing final line break, restores hunk order, merges overlapping hunks and puts back an unchanged line that a hunk lost. Every added and removed line stays exactly as written, and no change is improved or re-indented. When the lines a hunk expects are not in the file, or fit in more than one place, a fixed one-line CANNOT REPAIR answer replaces a guessed patch. Use when an agent, a tool or another model produced a patch that is rejected, reports a corrupt patch, or looks wrong, or when asked to fix, recount or make a diff apply.

    $0.02once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

  • Test Review: Can This Test Ever Fail?

    Code & Engineering

    SKILL.md · v1.0.1 · 10.3 KB

    Reviews a pasted test, check script, smoke test, mutation script or CI step and says whether it can fail when the thing it guards is broken, so a green result is worth something. It finds a completeness guard that counts its own hard-coded list instead of the directory, a one-star glob that never enters subfolders, a mutation script that restores with git checkout and wipes the uncommitted fix under test, a null test that an empty string passes, a status 200 that is only the login page, a wait loop without sleep that measures network speed instead of time, a test that calls the pure function directly and never the call site, a counterfactual control whose data does not create the condition, a fix copied into two branches and tested in one, a limit tested only with ordinary values, and a catch that turns a failure into success. Each finding has a fixed code, the place, why it passes and the one input that would make it fail, or exactly No findings. Use to review a test that cannot fail, a check script that always passes, or a guard before you trust it.

    $0.03once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

More in Code & Engineering

  • Recommended

    Cloudflare Evidence Check

    Code & Engineering

    SKILL.md · v1.0.2 · 8.1 KB

    Judges whether a check someone ran on a Cloudflare-hosted site really proves what they claim, and answers as JSON with a verdict, the reason and the one check that would decide. Knows the instruments that answer for the wrong thing - the command-line object read that serves a cached copy after a delete, a delivery log that records neither test mail, a zero-row log search that looks the same as code that never ran, a local migration run, a staging secret, the free preview subdomain of a Worker that is not a zone, a size counter that prints zero on Windows, a character count that counts bytes, a robots file served from the edge cache - and the checks that do prove it. Use when an agent says deleted, delivered, applied, enabled, set on production or never ran on Cloudflare work, and you need to know whether its evidence supports that.

    $0.07once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

  • Screenshot Evidence Check

    Code & Engineering

    SKILL.md · v1.0.1 · 9.3 KB

    Reads a description of how a web page was captured or measured - a headless browser capture with a window size, a tall screenshot, a document width reading, a local Lighthouse run, a PageSpeed Insights run, an automation session that has been open for hours, a command-line download size on Windows - and says what that evidence proves, what it cannot prove and the one measurement that would decide, answered as JSON with a verdict. Knows the ways the capture itself produces the symptom - headless windows under about 500 pixels that lay out wider and crop the picture, no touch emulation behind a window-size flag, blank images in very tall captures, scroll-reveal sections caught before they appear, a width reading that stays clean while a container clips, scores that move with machine load, a long automation session that stops running page scripts, a download size of zero at a successful status. Use when an agent or a person is about to report that a page is broken or fixed from a screenshot, a score or a command-line reading.

    $0.03once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

  • Frontend Layout Review: CSS Grid, Hydration, Next.js

    Code & Engineering

    SKILL.md · v1.0.0 · 12.7 KB

    Reviews pasted CSS, Tailwind classes, JSX and Next.js client components for the layout and hydration defects that look fine on a desktop screenshot and then break on a phone or wipe the page in the browser. It flags a grid column written as a bare 1fr that refuses to shrink and, inside a clipping container, cuts the content without any horizontal scroll, width media queries written in pixels beside rem-based breakpoints, dates formatted inside a client component, server-only environment variables read in the browser, a schema default that silently stands in for a missing value, client components that pull a heavy dependency tree into every page, theme colour tokens painted on surfaces that do not flip with the theme, a fixed bar whose height is typed in several places, scroll-locking panels that stay open when the viewport crosses a breakpoint, and window.confirm. Each finding has a fixed code, the place, the reason and a fix; sound code gets No findings. Use to review a layout, a component or a stylesheet before release, or when a page looks cut off or resets itself on one route.

    $0.03once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

  • Social Auto-Posting Code Review: Bluesky, Mastodon, DEV

    Code & Engineering

    SKILL.md · v1.0.0 · 13.7 KB

    Reviews pasted code that announces published articles to social channels (Bluesky, Mastodon, a Facebook page, Pinterest through a feed, Tumblr, DEV) for the ways a channel stays silent or posts twice, which tests with a fake network and a green build do not catch. It flags a shared HTTP helper that cuts a response body the Bluesky login then parses, a text cut by UTF-16 position or link offsets taken from character positions instead of UTF-8 bytes, a Mastodon media upload judged by status 200 only, a link posted without uploading the picture, a missing write:media scope, an Idempotency-Key reused after its one hour, an alert cut to N characters of an HTML error page, dispatch called from cache invalidation, a new "announced" column without a backfill, Promise.all or no timeout around channels, a missing token treated as an error, staging that posts, a full article copied to a blog platform, an OAuth 1.0a signature that leaves out the form body, a DEV request from a Worker without a User-Agent, and duplicates counted by searching a title in an RSS feed. Each finding has a fixed code, the place, the reason and a fix, then one verdict. Use to review article-announcing code before release, to find why a channel never posts, or to check a new channel before its first live post.

    $0.03once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026