{"name":"describe-changes","title":"Describe changes","description":"Describe a change that already landed — one commit, PR, merge or tag range — classified, and written short, medium and long with every claim anchored to a hunk. Symptoms: what did this PR actually do, describe this commit, what changed between these two tags, write the changelog entry / ledger row / ticket resolution for merged work. It does not cut a release: no version bump, no semver call, no destinations — for that use release-notes and hand it this as the 'what'.","compatibility":"Any version control history the agent can read — git locally, or a forge API. Diff access is required for the detailed register; without it the skill still produces the short and medium registers and says so rather than inventing detail. Output is markdown plus a JSON envelope, so it fits a changelog, a release note, a ledger row, or a ticket comment without change.","allowedTools":"Read Grep Glob Bash","license":"MIT","kind":"general","useWhen":"writing the description of a diff, a commit or a pull request","group":"workflow","lifecycle":"release","version":"1.0.0","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill describe-changes"],"asks":["Describe this merge for a release ledger. Read the diff first, classify it from\nthe fixed kind set, and give me short, medium, and detailed registers with the\ndetail register citing file and line ranges. Return the single-digest JSON shape.","Describe the range v2.3.0..v2.4.0. Ask me first whether I want one digest or an\nitemized array — I think itemized, with a generic summary on top. Anything you\ncannot anchor in a diff, leave out.","This PR says it is a performance fix. Check that against the diff before you\nclassify it, and if the diff does not show a performance change, say so in the\ndetail register and classify what it actually is."],"commands":[],"documents":[{"path":"references/classification-guide.md","slug":"classification-guide","title":"Describe changes — classification guide","body":"# Describe changes — classification guide\n\nSeven kinds, one per change. The set is deliberately small: a taxonomy people can\nhold in their heads gets applied consistently, and a consistent wrong-ish label\nsorts better than an inconsistent precise one.\n\n## The seven\n\n| Kind | The change… | Test |\n|---|---|---|\n| `feature` | adds a capability that did not exist | Can a user now do something they could not before? |\n| `bug_fix` | makes existing behaviour match its intent | Was the previous behaviour wrong, not merely worse? |\n| `improvement` | makes existing, correct behaviour better | Speed, ergonomics, clarity, reliability, with no new capability. |\n| `security` | closes an exposure | Does the diff or an advisory name an exploitable condition? |\n| `ops` | changes how the system runs, not what it does | Build, deploy, config, monitoring, dependencies, infrastructure. |\n| `docs` | changes documentation only | Would the compiled or deployed behaviour be byte-identical? |\n| `breaking` | requires callers or users to change | Does something that worked before now fail without action? |\n\n## Decision order\n\nOverlaps are common. Resolve them by taking the first kind that applies, in this\norder:\n\n1. **`breaking`** — it wins over everything. A breaking change is a breaking\n   change whether it arrived as a feature, a fix, or a cleanup, because the\n   reader needs the warning more than the category.\n2. **`security`** — it wins over `bug_fix`, because a reader deciding whether to\n   upgrade urgently is asking a different question.\n3. **`bug_fix`** — wrong behaviour becoming right.\n4. **`feature`** — new capability.\n5. **`improvement`** — better, same capability.\n6. **`ops`** — the system runs differently, users notice nothing.\n7. **`docs`** — nothing else changed.\n\nTwo of these deserve stating plainly:\n\n- **`breaking` first** means a removed API endpoint is `breaking`, not `ops`,\n  even though the diff is deletion.\n- **`docs` last** means a change that touches documentation *and* code is never\n  `docs`. Only a documentation-only change is.\n\n## Edge cases\n\n### A bug fix that adds a flag\n\nThe fix is correct but risky, so it ships behind a flag that defaults off.\n\n- **Flag defaults off:** classify `improvement`, and the description says the fix\n  exists and is not yet active. It is not a `bug_fix` for users, because for\n  users nothing changed.\n- **Flag defaults on:** `bug_fix`. The flag is an escape hatch, not the change.\n- **Either way**, the detail register names the flag and its default. A reader who\n  cannot tell whether the fix is on has learned nothing.\n\n### A pure performance change\n\n`improvement`, unless behaviour changed.\n\n- With a measurement in the change — a benchmark, a recorded before and after —\n  the description may state the gain, and cites it.\n- Without a measurement, describe the mechanism the diff shows (\"results are now\n  cached for the duration of a request\") and do not attach a number. An invented\n  percentage is the single most common false claim in generated release notes.\n- If the optimisation changed a result, an ordering, or a rounding, it is a\n  `breaking` change wearing a performance costume. Check for that specifically.\n\n### A revert\n\nClassified by **what the revert does now**, not by what was reverted.\n\n- Reverting a broken change restores correct behaviour: `bug_fix`.\n- Reverting a feature removes a capability users had: `breaking` if it was\n  released, `improvement` if it never reached them.\n- The title says \"Revert\", names the original, and the detail register states\n  whether the underlying problem is still open. It usually is.\n\n### A dependency bump\n\n- Routine version bump: `ops`.\n- Bump that resolves a named advisory: `security`, and cite the advisory\n  identifier.\n- Bump that forces callers to change: `breaking`.\n- A lockfile-only change with no version movement: `ops`, and the description says\n  it is a lockfile refresh rather than implying an upgrade.\n\n### A refactor\n\n`improvement` when it changes nothing observable, and the medium register should\nbe honest that users will notice nothing. A refactor that fixes a bug on the way\nis `bug_fix`; a refactor that changes a public signature is `breaking`.\n\nResist the temptation to describe a refactor as a feature because the diff is\nlarge. Size is not significance.\n\n### A new configuration option\n\n- Option is optional and defaults to the previous behaviour: `feature`.\n- Option is required and has no default: `breaking`.\n- Option only affects deployment, not product behaviour: `ops`.\n\n### A migration or schema change\n\nClassify by effect, not by file type.\n\n- Adds a nullable column nothing reads yet: `ops`.\n- Backs a user-visible capability in the same change: `feature`.\n- Drops or renames something callers use: `breaking`.\n- Backfills or corrects wrong stored data: `bug_fix`.\n\n### Test-only changes\n\n`ops`. They change how the system is verified, not what it does. A change that\nadds tests *and* the fix they cover is a `bug_fix` — the tests are evidence, not\nthe change.\n\n### Generated or vendored churn\n\nClassify by the reason for regenerating. A regenerated API client because the API\ngained an endpoint is `feature` or `ops` depending on whether anything calls the\nnew endpoint yet. Never classify by the size of the generated diff.\n\n## When two kinds genuinely apply\n\nThat is a signal about shape, not about classification. A pull request that fixes\na bug *and* adds an unrelated capability should be described as two items in the\nitemized shape, each with its own kind. Forcing it into one digest means one of\nthe two facts is lost, and it will be the one the reader needed.\n\nIf the itemized shape is not available to you, choose by the decision order and\nstate the second fact explicitly in the detail register. Do not let it disappear.\n\n## What none of the kinds mean\n\n- **`improvement` is not a bin for \"unclear\".** If the kind is unclear, the change\n  is not yet understood; read more of the diff.\n- **`ops` is not \"backend\".** A backend change users can observe is a `feature`,\n  `bug_fix`, or `improvement`.\n- **`security` is not \"hardening\".** Adding a header, tightening a validator, or\n  rotating a value on schedule is `improvement` or `ops` unless it closes an\n  exposure that existed. Reserve the label so it retains its urgency.\n","bodyHtml":"<h2 id=\"describe-changes-classification-guide\">Describe changes — classification guide</h2>\n<p>Seven kinds, one per change. The set is deliberately small: a taxonomy people can\nhold in their heads gets applied consistently, and a consistent wrong-ish label\nsorts better than an inconsistent precise one.</p>\n<h3 id=\"the-seven\">The seven</h3>\n<table>\n<thead>\n<tr>\n<th>Kind</th>\n<th>The change…</th>\n<th>Test</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>feature</code></td>\n<td>adds a capability that did not exist</td>\n<td>Can a user now do something they could not before?</td>\n</tr>\n<tr>\n<td><code>bug_fix</code></td>\n<td>makes existing behaviour match its intent</td>\n<td>Was the previous behaviour wrong, not merely worse?</td>\n</tr>\n<tr>\n<td><code>improvement</code></td>\n<td>makes existing, correct behaviour better</td>\n<td>Speed, ergonomics, clarity, reliability, with no new capability.</td>\n</tr>\n<tr>\n<td><code>security</code></td>\n<td>closes an exposure</td>\n<td>Does the diff or an advisory name an exploitable condition?</td>\n</tr>\n<tr>\n<td><code>ops</code></td>\n<td>changes how the system runs, not what it does</td>\n<td>Build, deploy, config, monitoring, dependencies, infrastructure.</td>\n</tr>\n<tr>\n<td><code>docs</code></td>\n<td>changes documentation only</td>\n<td>Would the compiled or deployed behaviour be byte-identical?</td>\n</tr>\n<tr>\n<td><code>breaking</code></td>\n<td>requires callers or users to change</td>\n<td>Does something that worked before now fail without action?</td>\n</tr>\n</tbody></table>\n<h3 id=\"decision-order\">Decision order</h3>\n<p>Overlaps are common. Resolve them by taking the first kind that applies, in this\norder:</p>\n<ol>\n<li><strong><code>breaking</code></strong> — it wins over everything. A breaking change is a breaking\nchange whether it arrived as a feature, a fix, or a cleanup, because the\nreader needs the warning more than the category.</li>\n<li><strong><code>security</code></strong> — it wins over <code>bug_fix</code>, because a reader deciding whether to\nupgrade urgently is asking a different question.</li>\n<li><strong><code>bug_fix</code></strong> — wrong behaviour becoming right.</li>\n<li><strong><code>feature</code></strong> — new capability.</li>\n<li><strong><code>improvement</code></strong> — better, same capability.</li>\n<li><strong><code>ops</code></strong> — the system runs differently, users notice nothing.</li>\n<li><strong><code>docs</code></strong> — nothing else changed.</li>\n</ol>\n<p>Two of these deserve stating plainly:</p>\n<ul>\n<li><strong><code>breaking</code> first</strong> means a removed API endpoint is <code>breaking</code>, not <code>ops</code>,\neven though the diff is deletion.</li>\n<li><strong><code>docs</code> last</strong> means a change that touches documentation <em>and</em> code is never\n<code>docs</code>. Only a documentation-only change is.</li>\n</ul>\n<h3 id=\"edge-cases\">Edge cases</h3>\n<h4 id=\"a-bug-fix-that-adds-a-flag\">A bug fix that adds a flag</h4>\n<p>The fix is correct but risky, so it ships behind a flag that defaults off.</p>\n<ul>\n<li><strong>Flag defaults off:</strong> classify <code>improvement</code>, and the description says the fix\nexists and is not yet active. It is not a <code>bug_fix</code> for users, because for\nusers nothing changed.</li>\n<li><strong>Flag defaults on:</strong> <code>bug_fix</code>. The flag is an escape hatch, not the change.</li>\n<li><strong>Either way</strong>, the detail register names the flag and its default. A reader who\ncannot tell whether the fix is on has learned nothing.</li>\n</ul>\n<h4 id=\"a-pure-performance-change\">A pure performance change</h4>\n<p><code>improvement</code>, unless behaviour changed.</p>\n<ul>\n<li>With a measurement in the change — a benchmark, a recorded before and after —\nthe description may state the gain, and cites it.</li>\n<li>Without a measurement, describe the mechanism the diff shows (&quot;results are now\ncached for the duration of a request&quot;) and do not attach a number. An invented\npercentage is the single most common false claim in generated release notes.</li>\n<li>If the optimisation changed a result, an ordering, or a rounding, it is a\n<code>breaking</code> change wearing a performance costume. Check for that specifically.</li>\n</ul>\n<h4 id=\"a-revert\">A revert</h4>\n<p>Classified by <strong>what the revert does now</strong>, not by what was reverted.</p>\n<ul>\n<li>Reverting a broken change restores correct behaviour: <code>bug_fix</code>.</li>\n<li>Reverting a feature removes a capability users had: <code>breaking</code> if it was\nreleased, <code>improvement</code> if it never reached them.</li>\n<li>The title says &quot;Revert&quot;, names the original, and the detail register states\nwhether the underlying problem is still open. It usually is.</li>\n</ul>\n<h4 id=\"a-dependency-bump\">A dependency bump</h4>\n<ul>\n<li>Routine version bump: <code>ops</code>.</li>\n<li>Bump that resolves a named advisory: <code>security</code>, and cite the advisory\nidentifier.</li>\n<li>Bump that forces callers to change: <code>breaking</code>.</li>\n<li>A lockfile-only change with no version movement: <code>ops</code>, and the description says\nit is a lockfile refresh rather than implying an upgrade.</li>\n</ul>\n<h4 id=\"a-refactor\">A refactor</h4>\n<p><code>improvement</code> when it changes nothing observable, and the medium register should\nbe honest that users will notice nothing. A refactor that fixes a bug on the way\nis <code>bug_fix</code>; a refactor that changes a public signature is <code>breaking</code>.</p>\n<p>Resist the temptation to describe a refactor as a feature because the diff is\nlarge. Size is not significance.</p>\n<h4 id=\"a-new-configuration-option\">A new configuration option</h4>\n<ul>\n<li>Option is optional and defaults to the previous behaviour: <code>feature</code>.</li>\n<li>Option is required and has no default: <code>breaking</code>.</li>\n<li>Option only affects deployment, not product behaviour: <code>ops</code>.</li>\n</ul>\n<h4 id=\"a-migration-or-schema-change\">A migration or schema change</h4>\n<p>Classify by effect, not by file type.</p>\n<ul>\n<li>Adds a nullable column nothing reads yet: <code>ops</code>.</li>\n<li>Backs a user-visible capability in the same change: <code>feature</code>.</li>\n<li>Drops or renames something callers use: <code>breaking</code>.</li>\n<li>Backfills or corrects wrong stored data: <code>bug_fix</code>.</li>\n</ul>\n<h4 id=\"test-only-changes\">Test-only changes</h4>\n<p><code>ops</code>. They change how the system is verified, not what it does. A change that\nadds tests <em>and</em> the fix they cover is a <code>bug_fix</code> — the tests are evidence, not\nthe change.</p>\n<h4 id=\"generated-or-vendored-churn\">Generated or vendored churn</h4>\n<p>Classify by the reason for regenerating. A regenerated API client because the API\ngained an endpoint is <code>feature</code> or <code>ops</code> depending on whether anything calls the\nnew endpoint yet. Never classify by the size of the generated diff.</p>\n<h3 id=\"when-two-kinds-genuinely-apply\">When two kinds genuinely apply</h3>\n<p>That is a signal about shape, not about classification. A pull request that fixes\na bug <em>and</em> adds an unrelated capability should be described as two items in the\nitemized shape, each with its own kind. Forcing it into one digest means one of\nthe two facts is lost, and it will be the one the reader needed.</p>\n<p>If the itemized shape is not available to you, choose by the decision order and\nstate the second fact explicitly in the detail register. Do not let it disappear.</p>\n<h3 id=\"what-none-of-the-kinds-mean\">What none of the kinds mean</h3>\n<ul>\n<li><strong><code>improvement</code> is not a bin for &quot;unclear&quot;.</strong> If the kind is unclear, the change\nis not yet understood; read more of the diff.</li>\n<li><strong><code>ops</code> is not &quot;backend&quot;.</strong> A backend change users can observe is a <code>feature</code>,\n<code>bug_fix</code>, or <code>improvement</code>.</li>\n<li><strong><code>security</code> is not &quot;hardening&quot;.</strong> Adding a header, tightening a validator, or\nrotating a value on schedule is <code>improvement</code> or <code>ops</code> unless it closes an\nexposure that existed. Reserve the label so it retains its urgency.</li>\n</ul>\n","words":1046},{"path":"references/output-contract.md","slug":"output-contract","title":"Describe changes — output contract","body":"# Describe changes — output contract\n\nOne envelope, two shapes. The envelope is JSON; every human-readable field inside\nit is markdown. A consumer that wants plain text renders the markdown; a consumer\nthat wants markdown passes it through. There is no third format.\n\n## The change object\n\n```json\n{\n  \"kind\": \"feature\",\n  \"title\": \"Per-user watermark on the release popup\",\n  \"short_md\": \"The what's-new popup now shows only entries published since you last dismissed it\",\n  \"medium_md\": \"Opening the app after time away shows the changes that landed while you were gone, rather than the same list every time. Dismissing it records where you got to, and the list is capped at the last thirty days so a long absence does not produce hundreds of items.\",\n  \"detail_md\": \"## What changed\\n\\nThe popup query is now filtered by a per-user watermark ...\",\n  \"refs\": [\n    {\n      \"path\": \"src/server/release/query.ts\",\n      \"range\": \"41-78\",\n      \"sha\": \"9f2c1ab\",\n      \"note\": \"watermark floor via greatest(watermark, now - window)\"\n    }\n  ],\n  \"relations\": {\n    \"ticket\": \"PROJ-412\",\n    \"request\": null,\n    \"reporter\": \"octocat\"\n  }\n}\n```\n\n### Field rules\n\n| Field | Type | Rules |\n|---|---|---|\n| `kind` | string | Exactly one of `feature`, `bug_fix`, `improvement`, `security`, `ops`, `docs`, `breaking`. Never null, never a list. |\n| `title` | string | Under 80 characters. Sentence case. Names the change, not the mechanism. Not the branch name. |\n| `short_md` | string | At most 140 characters. Inline code is the only markup allowed. No leading bullet, no trailing period required. |\n| `medium_md` | string | One paragraph. No file paths, no function or symbol names. Written for the person who uses the product. May be null only when no diff was available. |\n| `detail_md` | string | A markdown page. Headings, lists, and fenced fragments allowed. Every behavioural claim adjacent to a reference. May be null when no diff was available. |\n| `refs` | array | Zero or more reference objects. Empty is valid and honest; fabricated is not. |\n| `relations` | object | Always present, always with all three keys. A key is a citable identifier or `null`. |\n\n### The reference object\n\n```json\n{ \"path\": \"src/server/release/query.ts\", \"range\": \"41-78\", \"sha\": \"9f2c1ab\", \"note\": \"…\" }\n```\n\n- **`path`** — repository-relative, using forward slashes. Required.\n- **`range`** — post-change line numbers, `start-end`, or a single number.\n  Optional; omit rather than guess.\n- **`sha`** — the commit the range is valid at. Strongly recommended: without it\n  the range stops resolving after the next merge.\n- **`note`** — at most one clause saying what is at that location. Optional.\n\nA reference to a deleted file uses the pre-change path and the pre-change range,\nwith a `note` saying it was removed.\n\n## Shape A — single digest\n\nUsed when the operation is one coherent change.\n\n```json\n{\n  \"shape\": \"single\",\n  \"operation\": { \"type\": \"pull_request\", \"id\": \"1482\", \"repository\": \"acme/widgets\" },\n  \"change\": { \"…the change object…\" }\n}\n```\n\n## Shape B — itemized\n\nUsed when the operation contains several independent changes: a release range, a\npull request that does two things, a batch merge.\n\n```json\n{\n  \"shape\": \"itemized\",\n  \"operation\": { \"type\": \"range\", \"id\": \"v2.3.0..v2.4.0\", \"repository\": \"acme/widgets\" },\n  \"summary\": {\n    \"title\": \"Release 2.4.0\",\n    \"short_md\": \"Nine changes: three fixes, four improvements, one new export format, one breaking API change\",\n    \"medium_md\": \"This release adds CSV export, changes how filters persist between sessions, and removes the deprecated v1 report endpoint. Existing v1 callers must move to v2 before the next release.\"\n  },\n  \"items\": [ { \"…change object…\" }, { \"…change object…\" } ]\n}\n```\n\nRules for the itemized shape:\n\n- **`summary` has no `kind`.** A collection is not one kind. If the summary needs\n  to signal danger, it says so in `short_md`, and the breaking item carries the\n  `breaking` kind.\n- **`summary` has no `refs`.** Its evidence is its items.\n- **`items` are ordered by significance**, not by commit order: breaking first,\n  then security, then everything else by size of user-visible effect.\n- **An item is a change, not a commit.** Three commits that build one feature are\n  one item. One commit that fixes two unrelated bugs is two items.\n\n## Asking for the shape\n\nAsk once, before writing, and accept a default only when the caller set one:\n\n```text\nThis covers 9 merged pull requests across two subsystems. Do you want one digest\nfor the whole range, or an itemized array of changes with a summary on top?\n```\n\nChoose itemized without asking only when the operation is a range spanning more\nthan one change and the caller gave no instruction — and say that you did.\n\n## Degraded output\n\nWhen the diff is unavailable — no clone, no API access, a payload without file\ndata — the contract still holds, with these exact substitutions:\n\n- `detail_md` is `null`.\n- `refs` is `[]`.\n- `medium_md` may be written from the pull request body, and `detail_md` staying\n  null is the signal that it was.\n- The description must not assert anything the body does not state.\n\nDo not emit a `detail_md` that says \"see the diff\". A null is information; a\nplaceholder is noise.\n\n## Worked example: a revert\n\n```json\n{\n  \"shape\": \"single\",\n  \"operation\": { \"type\": \"commit\", \"id\": \"4d1e7c0\", \"repository\": \"acme/widgets\" },\n  \"change\": {\n    \"kind\": \"bug_fix\",\n    \"title\": \"Revert the connection-pool size increase\",\n    \"short_md\": \"Reverts the pool-size change from #1471, which exhausted database connections under load\",\n    \"medium_md\": \"A change to how many database connections the service keeps open has been rolled back after it caused errors during busy periods. Behaviour returns to what it was before that change.\",\n    \"detail_md\": \"## What changed\\n\\nThis reverts commit `a91b3f2` (#1471), restoring the pool size to its previous value.\\n\\n- `src/db/pool.ts:22` — `maxConnections` returns to 10 from 40.\\n\\n## Why\\n\\nThe increased pool exhausted the database's own connection limit when three service instances were running, producing connection errors under load. The revert is a restoration, not a fix for the underlying capacity question, which is unaddressed.\",\n    \"refs\": [\n      { \"path\": \"src/db/pool.ts\", \"range\": \"22\", \"sha\": \"4d1e7c0\", \"note\": \"maxConnections back to 10\" }\n    ],\n    \"relations\": { \"ticket\": null, \"request\": null, \"reporter\": null }\n  }\n}\n```\n\nNote what this example does: it names what is reverted, it does not describe the\nreverted change as if it were still in effect, and it says explicitly that the\nunderlying problem remains open. The `relations` are all null because nothing in\nthe commit cited a ticket — that is the correct output, not a gap to fill.\n\n## Validation\n\nA consumer should reject an envelope that:\n\n- carries a `kind` outside the seven;\n- has a `short_md` over 140 characters;\n- has a non-null `detail_md` with an empty `refs` array;\n- has a `relations` object missing any of the three keys;\n- has a reference with a `range` but no `path`.\n\nEach of these corresponds to a specific failure the contract exists to catch,\nand the last two catch the two that are silent otherwise.\n","bodyHtml":"<h2 id=\"describe-changes-output-contract\">Describe changes — output contract</h2>\n<p>One envelope, two shapes. The envelope is JSON; every human-readable field inside\nit is markdown. A consumer that wants plain text renders the markdown; a consumer\nthat wants markdown passes it through. There is no third format.</p>\n<h3 id=\"the-change-object\">The change object</h3>\n<pre><code class=\"language-json\">{\n  &quot;kind&quot;: &quot;feature&quot;,\n  &quot;title&quot;: &quot;Per-user watermark on the release popup&quot;,\n  &quot;short_md&quot;: &quot;The what&#39;s-new popup now shows only entries published since you last dismissed it&quot;,\n  &quot;medium_md&quot;: &quot;Opening the app after time away shows the changes that landed while you were gone, rather than the same list every time. Dismissing it records where you got to, and the list is capped at the last thirty days so a long absence does not produce hundreds of items.&quot;,\n  &quot;detail_md&quot;: &quot;## What changed\\n\\nThe popup query is now filtered by a per-user watermark ...&quot;,\n  &quot;refs&quot;: [\n    {\n      &quot;path&quot;: &quot;src/server/release/query.ts&quot;,\n      &quot;range&quot;: &quot;41-78&quot;,\n      &quot;sha&quot;: &quot;9f2c1ab&quot;,\n      &quot;note&quot;: &quot;watermark floor via greatest(watermark, now - window)&quot;\n    }\n  ],\n  &quot;relations&quot;: {\n    &quot;ticket&quot;: &quot;PROJ-412&quot;,\n    &quot;request&quot;: null,\n    &quot;reporter&quot;: &quot;octocat&quot;\n  }\n}\n</code></pre>\n<h4 id=\"field-rules\">Field rules</h4>\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Rules</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>kind</code></td>\n<td>string</td>\n<td>Exactly one of <code>feature</code>, <code>bug_fix</code>, <code>improvement</code>, <code>security</code>, <code>ops</code>, <code>docs</code>, <code>breaking</code>. Never null, never a list.</td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td>Under 80 characters. Sentence case. Names the change, not the mechanism. Not the branch name.</td>\n</tr>\n<tr>\n<td><code>short_md</code></td>\n<td>string</td>\n<td>At most 140 characters. Inline code is the only markup allowed. No leading bullet, no trailing period required.</td>\n</tr>\n<tr>\n<td><code>medium_md</code></td>\n<td>string</td>\n<td>One paragraph. No file paths, no function or symbol names. Written for the person who uses the product. May be null only when no diff was available.</td>\n</tr>\n<tr>\n<td><code>detail_md</code></td>\n<td>string</td>\n<td>A markdown page. Headings, lists, and fenced fragments allowed. Every behavioural claim adjacent to a reference. May be null when no diff was available.</td>\n</tr>\n<tr>\n<td><code>refs</code></td>\n<td>array</td>\n<td>Zero or more reference objects. Empty is valid and honest; fabricated is not.</td>\n</tr>\n<tr>\n<td><code>relations</code></td>\n<td>object</td>\n<td>Always present, always with all three keys. A key is a citable identifier or <code>null</code>.</td>\n</tr>\n</tbody></table>\n<h4 id=\"the-reference-object\">The reference object</h4>\n<pre><code class=\"language-json\">{ &quot;path&quot;: &quot;src/server/release/query.ts&quot;, &quot;range&quot;: &quot;41-78&quot;, &quot;sha&quot;: &quot;9f2c1ab&quot;, &quot;note&quot;: &quot;…&quot; }\n</code></pre>\n<ul>\n<li><strong><code>path</code></strong> — repository-relative, using forward slashes. Required.</li>\n<li><strong><code>range</code></strong> — post-change line numbers, <code>start-end</code>, or a single number.\nOptional; omit rather than guess.</li>\n<li><strong><code>sha</code></strong> — the commit the range is valid at. Strongly recommended: without it\nthe range stops resolving after the next merge.</li>\n<li><strong><code>note</code></strong> — at most one clause saying what is at that location. Optional.</li>\n</ul>\n<p>A reference to a deleted file uses the pre-change path and the pre-change range,\nwith a <code>note</code> saying it was removed.</p>\n<h3 id=\"shape-a-single-digest\">Shape A — single digest</h3>\n<p>Used when the operation is one coherent change.</p>\n<pre><code class=\"language-json\">{\n  &quot;shape&quot;: &quot;single&quot;,\n  &quot;operation&quot;: { &quot;type&quot;: &quot;pull_request&quot;, &quot;id&quot;: &quot;1482&quot;, &quot;repository&quot;: &quot;acme/widgets&quot; },\n  &quot;change&quot;: { &quot;…the change object…&quot; }\n}\n</code></pre>\n<h3 id=\"shape-b-itemized\">Shape B — itemized</h3>\n<p>Used when the operation contains several independent changes: a release range, a\npull request that does two things, a batch merge.</p>\n<pre><code class=\"language-json\">{\n  &quot;shape&quot;: &quot;itemized&quot;,\n  &quot;operation&quot;: { &quot;type&quot;: &quot;range&quot;, &quot;id&quot;: &quot;v2.3.0..v2.4.0&quot;, &quot;repository&quot;: &quot;acme/widgets&quot; },\n  &quot;summary&quot;: {\n    &quot;title&quot;: &quot;Release 2.4.0&quot;,\n    &quot;short_md&quot;: &quot;Nine changes: three fixes, four improvements, one new export format, one breaking API change&quot;,\n    &quot;medium_md&quot;: &quot;This release adds CSV export, changes how filters persist between sessions, and removes the deprecated v1 report endpoint. Existing v1 callers must move to v2 before the next release.&quot;\n  },\n  &quot;items&quot;: [ { &quot;…change object…&quot; }, { &quot;…change object…&quot; } ]\n}\n</code></pre>\n<p>Rules for the itemized shape:</p>\n<ul>\n<li><strong><code>summary</code> has no <code>kind</code>.</strong> A collection is not one kind. If the summary needs\nto signal danger, it says so in <code>short_md</code>, and the breaking item carries the\n<code>breaking</code> kind.</li>\n<li><strong><code>summary</code> has no <code>refs</code>.</strong> Its evidence is its items.</li>\n<li><strong><code>items</code> are ordered by significance</strong>, not by commit order: breaking first,\nthen security, then everything else by size of user-visible effect.</li>\n<li><strong>An item is a change, not a commit.</strong> Three commits that build one feature are\none item. One commit that fixes two unrelated bugs is two items.</li>\n</ul>\n<h3 id=\"asking-for-the-shape\">Asking for the shape</h3>\n<p>Ask once, before writing, and accept a default only when the caller set one:</p>\n<pre><code class=\"language-text\">This covers 9 merged pull requests across two subsystems. Do you want one digest\nfor the whole range, or an itemized array of changes with a summary on top?\n</code></pre>\n<p>Choose itemized without asking only when the operation is a range spanning more\nthan one change and the caller gave no instruction — and say that you did.</p>\n<h3 id=\"degraded-output\">Degraded output</h3>\n<p>When the diff is unavailable — no clone, no API access, a payload without file\ndata — the contract still holds, with these exact substitutions:</p>\n<ul>\n<li><code>detail_md</code> is <code>null</code>.</li>\n<li><code>refs</code> is <code>[]</code>.</li>\n<li><code>medium_md</code> may be written from the pull request body, and <code>detail_md</code> staying\nnull is the signal that it was.</li>\n<li>The description must not assert anything the body does not state.</li>\n</ul>\n<p>Do not emit a <code>detail_md</code> that says &quot;see the diff&quot;. A null is information; a\nplaceholder is noise.</p>\n<h3 id=\"worked-example-a-revert\">Worked example: a revert</h3>\n<pre><code class=\"language-json\">{\n  &quot;shape&quot;: &quot;single&quot;,\n  &quot;operation&quot;: { &quot;type&quot;: &quot;commit&quot;, &quot;id&quot;: &quot;4d1e7c0&quot;, &quot;repository&quot;: &quot;acme/widgets&quot; },\n  &quot;change&quot;: {\n    &quot;kind&quot;: &quot;bug_fix&quot;,\n    &quot;title&quot;: &quot;Revert the connection-pool size increase&quot;,\n    &quot;short_md&quot;: &quot;Reverts the pool-size change from #1471, which exhausted database connections under load&quot;,\n    &quot;medium_md&quot;: &quot;A change to how many database connections the service keeps open has been rolled back after it caused errors during busy periods. Behaviour returns to what it was before that change.&quot;,\n    &quot;detail_md&quot;: &quot;## What changed\\n\\nThis reverts commit `a91b3f2` (#1471), restoring the pool size to its previous value.\\n\\n- `src/db/pool.ts:22` — `maxConnections` returns to 10 from 40.\\n\\n## Why\\n\\nThe increased pool exhausted the database&#39;s own connection limit when three service instances were running, producing connection errors under load. The revert is a restoration, not a fix for the underlying capacity question, which is unaddressed.&quot;,\n    &quot;refs&quot;: [\n      { &quot;path&quot;: &quot;src/db/pool.ts&quot;, &quot;range&quot;: &quot;22&quot;, &quot;sha&quot;: &quot;4d1e7c0&quot;, &quot;note&quot;: &quot;maxConnections back to 10&quot; }\n    ],\n    &quot;relations&quot;: { &quot;ticket&quot;: null, &quot;request&quot;: null, &quot;reporter&quot;: null }\n  }\n}\n</code></pre>\n<p>Note what this example does: it names what is reverted, it does not describe the\nreverted change as if it were still in effect, and it says explicitly that the\nunderlying problem remains open. The <code>relations</code> are all null because nothing in\nthe commit cited a ticket — that is the correct output, not a gap to fill.</p>\n<h3 id=\"validation\">Validation</h3>\n<p>A consumer should reject an envelope that:</p>\n<ul>\n<li>carries a <code>kind</code> outside the seven;</li>\n<li>has a <code>short_md</code> over 140 characters;</li>\n<li>has a non-null <code>detail_md</code> with an empty <code>refs</code> array;</li>\n<li>has a <code>relations</code> object missing any of the three keys;</li>\n<li>has a reference with a <code>range</code> but no <code>path</code>.</li>\n</ul>\n<p>Each of these corresponds to a specific failure the contract exists to catch,\nand the last two catch the two that are silent otherwise.</p>\n","words":1138}],"body":"# Describe changes\n\nAsk what a pull request did and you usually get its title back, reworded. The\ntitle is the author's intent at the moment they opened it, which is frequently not\nwhat the diff ended up doing. This skill produces a description that is checkable:\nevery claim in it points at a hunk.\n\nIt writes three registers of the same change — one line, one paragraph, one page —\nso the consumer picks the length rather than truncating prose written for another\npurpose. And it classifies, from a fixed set, so the descriptions sort.\n\nIt composes with two companions in the same pack: **`release-ledger`** orchestrates\na since-you-were-away ledger and consumes these descriptions as its entries, and\n**`github-webhooks`** captures the merge events that feed it. Install either with\n`npx skills add crissmoldovan/agent-skills`.\n\n## When to Use\n\n- A commit, pull request, merge, or release range needs a description for people\n  who did not write it.\n- A ledger, changelog, or release note needs a per-change entry with a\n  classification.\n- A ticket needs a resolution note that states what actually shipped.\n- Someone asks \"what changed between these two tags\" and needs more than a\n  commit list.\n\nDo not use it to review a change — it describes what happened, it does not judge\nwhether it should have. Do not use it to cut a release: a version's notes are a\ndifferent artefact, and the semver call, the version bump, the changelog heading,\nthe tag and the destinations belong to `release-notes`, in this pack, which takes\na description like this one as the *what*. Do not use it to write a commit message before the work is done; it\nreads a completed diff. Do not use it as a summariser for a body of\ntext with no diff behind it; the entire value here is that claims are anchored,\nand with nothing to anchor to you have a paraphrase.\n\n## Prerequisites\n\n1. **A named operation.** One commit, one pull request, one merge, or one range\n   `A..B`. Ambiguity here produces a description of the wrong thing.\n   **Complete when:** you can state the operation as an identifier a tool accepts.\n2. **Read access to the diff.** `git show`, `git diff A..B`, or the forge's diff\n   endpoint.\n   **Complete when:** you have the diff, or have established that you cannot get\n   it and will therefore write only the short and medium registers.\n3. **The surrounding context, where it exists.** The pull request body, linked\n   tickets or support requests, the reporter, the review outcome.\n   **Complete when:** each of those is either in hand or recorded as absent.\n   Absent is a normal answer.\n4. **A decided output shape.** Single digest for the whole operation, or an\n   itemized array plus a summary. Ask; do not choose silently.\n   **Complete when:** the user has answered, or the caller passed the shape in.\n\n## Procedure\n\n1. **Gather the evidence, in this order.** Diff first — file list, then hunks,\n   then the test changes. Then the pull request title and body. Then linked\n   tickets and the reporter. Then the review and check outcomes. Reading the\n   description before the diff anchors you to the author's framing, which is the\n   thing you are here to check.\n2. **Establish what the change is, mechanically.** Which files, how many lines,\n   which subsystems, whether tests moved, whether a schema or an interface\n   changed, whether anything was deleted. This paragraph of facts is the input to\n   classification; do it before choosing a kind, not to justify one.\n3. **Classify into exactly one kind** from `feature`, `bug_fix`, `improvement`,\n   `security`, `ops`, `docs`, `breaking`. The rubric and its edge cases —\n   a bug fix that adds a flag, a pure performance change, a revert, a dependency\n   bump that fixes a vulnerability — are in\n   [the classification guide](references/classification-guide.md). One kind. If\n   two genuinely apply, that is a signal the operation should be itemized rather\n   than digested.\n4. **Write the three registers.**\n   - **short** — one line, at most 140 characters, no markdown syntax beyond\n     inline code, no trailing period needed. It answers \"what changed\" for\n     someone scanning a list.\n   - **medium** — one paragraph. What changed, who it affects, and what they will\n     notice. No file paths, no function names; this register is for users.\n   - **detail** — a full markdown page: what changed, why, and the specific\n     evidence. File paths with line ranges, hunk citations, before/after\n     fragments where a fragment is clearer than a sentence. This register is for\n     someone who will open the code.\n5. **Anchor every claim in the detail register.** A sentence that asserts\n   behaviour must be followed by, or adjacent to, the reference that shows it. If\n   you cannot point at the hunk, delete the sentence.\n6. **Record relations, cited or omitted.** Ticket, request, reporter. A relation\n   is included only when the evidence names it — a reference in the body, a\n   linked issue, a trailer. Do not infer a reporter from an assignee, or a ticket\n   from a branch name that resembles one, without saying that is what you did.\n7. **Emit the agreed shape.** The JSON envelope in\n   [the output contract](references/output-contract.md), single or array. Markdown\n   lives inside the JSON string fields; the envelope itself is data.\n\n### Honesty rules\n\nThese are not style preferences. Each one exists because the opposite behaviour\nproduces a description that reads well and is false.\n\n- **Never claim a change does something the diff does not show.** \"Improves\n  performance\" requires either a measurement in the change or a mechanical reason\n  visible in the hunk. Otherwise write what the code now does and stop.\n- **A revert says it is a revert**, names what it reverts, and does not describe\n  the reverted change's benefits in the present tense.\n- **A partial change is described as partial.** Scaffolding behind a disabled flag\n  is not a shipped feature; say the flag is off.\n- **Deletions are changes.** A removed endpoint, option, or column belongs in the\n  description even when nothing was added.\n- **Absent evidence is stated, not filled.** No reporter is `null`, not a guess\n  and not an empty string that renders as a dangling label.\n- **The title is evidence, not a conclusion.** When the diff contradicts it,\n  describe the diff and note the discrepancy in the detail register.\n\n## Usage Examples\n\n```text\nDescribe this merge for a release ledger. Read the diff first, classify it from\nthe fixed kind set, and give me short, medium, and detailed registers with the\ndetail register citing file and line ranges. Return the single-digest JSON shape.\n```\n\n```text\nDescribe the range v2.3.0..v2.4.0. Ask me first whether I want one digest or an\nitemized array — I think itemized, with a generic summary on top. Anything you\ncannot anchor in a diff, leave out.\n```\n\n```text\nThis PR says it is a performance fix. Check that against the diff before you\nclassify it, and if the diff does not show a performance change, say so in the\ndetail register and classify what it actually is.\n```\n\n## Pitfalls\n\n- **Describing the title.** The most common failure, and the hardest to see,\n  because the output is fluent and plausible. Read the diff first, every time.\n- **Merging two changes into one description.** A pull request that fixes a bug\n  and refactors a module has two facts in it. One kind and one description will\n  misrepresent one of them. Offer the itemized shape.\n- **Detail that is a file list.** \"Changed `router.ts`, `handler.ts`, and\n  `types.ts`\" is not detail; it is the diff's table of contents. Detail says what\n  the change to each file does.\n- **Line references that rot immediately.** Anchor to the *post-change* line\n  numbers and pair them with the commit SHA, so the reference stays resolvable\n  after the next merge.\n- **A medium register full of identifiers.** It is the register users read.\n  Function names there mean it was written for the wrong audience.\n- **Claiming a security fix without evidence.** Only classify `security` when the\n  change closes an actual exposure the diff shows, or an advisory names it.\n  Calling routine hardening a security fix devalues the label the one time it\n  matters.\n- **Silent inference of relations.** A branch named `fix/1234` is not a citation.\n  Either the evidence names the ticket or the relation is null.\n- **Describing generated or vendored churn.** A lockfile update and a regenerated\n  client are volume, not content. Say what the regeneration was for.\n- **Losing the `breaking` signal in prose.** If callers must change, `breaking`\n  is the kind and the first line of the detail register says what to change.\n\n## Verification\n\n- [ ] The diff was read before the pull request body or title.\n- [ ] Exactly one kind was assigned, from the fixed set.\n- [ ] The short register is at most 140 characters and readable on its own.\n- [ ] The medium register names no file paths or function names.\n- [ ] Every behavioural claim in the detail register has an adjacent reference.\n- [ ] References carry a path, a post-change line range, and a commit SHA.\n- [ ] Relations are cited or null; none were inferred without saying so.\n- [ ] A revert, a partial change, or a disabled flag is described as such.\n- [ ] The output shape matches what the user chose.\n- [ ] The JSON envelope validates against the output contract.\n- [ ] Nothing in the description asserts a benefit the diff does not demonstrate.\n\n## Deeper reading\n\n- [Output contract](references/output-contract.md): the JSON envelope, both\n  shapes, field-by-field rules, and complete worked examples.\n- [Classification guide](references/classification-guide.md): the seven kinds\n  with their boundaries, a decision order that resolves overlaps, and the edge\n  cases that get classified wrong most often.\n","bodyHtml":"<h2 id=\"describe-changes\">Describe changes</h2>\n<p>Ask what a pull request did and you usually get its title back, reworded. The\ntitle is the author&#39;s intent at the moment they opened it, which is frequently not\nwhat the diff ended up doing. This skill produces a description that is checkable:\nevery claim in it points at a hunk.</p>\n<p>It writes three registers of the same change — one line, one paragraph, one page —\nso the consumer picks the length rather than truncating prose written for another\npurpose. And it classifies, from a fixed set, so the descriptions sort.</p>\n<p>It composes with two companions in the same pack: <strong><code>release-ledger</code></strong> orchestrates\na since-you-were-away ledger and consumes these descriptions as its entries, and\n<strong><code>github-webhooks</code></strong> captures the merge events that feed it. Install either with\n<code>npx skills add crissmoldovan/agent-skills</code>.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>A commit, pull request, merge, or release range needs a description for people\nwho did not write it.</li>\n<li>A ledger, changelog, or release note needs a per-change entry with a\nclassification.</li>\n<li>A ticket needs a resolution note that states what actually shipped.</li>\n<li>Someone asks &quot;what changed between these two tags&quot; and needs more than a\ncommit list.</li>\n</ul>\n<p>Do not use it to review a change — it describes what happened, it does not judge\nwhether it should have. Do not use it to cut a release: a version&#39;s notes are a\ndifferent artefact, and the semver call, the version bump, the changelog heading,\nthe tag and the destinations belong to <code>release-notes</code>, in this pack, which takes\na description like this one as the <em>what</em>. Do not use it to write a commit message before the work is done; it\nreads a completed diff. Do not use it as a summariser for a body of\ntext with no diff behind it; the entire value here is that claims are anchored,\nand with nothing to anchor to you have a paraphrase.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><strong>A named operation.</strong> One commit, one pull request, one merge, or one range\n<code>A..B</code>. Ambiguity here produces a description of the wrong thing.\n<strong>Complete when:</strong> you can state the operation as an identifier a tool accepts.</li>\n<li><strong>Read access to the diff.</strong> <code>git show</code>, <code>git diff A..B</code>, or the forge&#39;s diff\nendpoint.\n<strong>Complete when:</strong> you have the diff, or have established that you cannot get\nit and will therefore write only the short and medium registers.</li>\n<li><strong>The surrounding context, where it exists.</strong> The pull request body, linked\ntickets or support requests, the reporter, the review outcome.\n<strong>Complete when:</strong> each of those is either in hand or recorded as absent.\nAbsent is a normal answer.</li>\n<li><strong>A decided output shape.</strong> Single digest for the whole operation, or an\nitemized array plus a summary. Ask; do not choose silently.\n<strong>Complete when:</strong> the user has answered, or the caller passed the shape in.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><strong>Gather the evidence, in this order.</strong> Diff first — file list, then hunks,\nthen the test changes. Then the pull request title and body. Then linked\ntickets and the reporter. Then the review and check outcomes. Reading the\ndescription before the diff anchors you to the author&#39;s framing, which is the\nthing you are here to check.</li>\n<li><strong>Establish what the change is, mechanically.</strong> Which files, how many lines,\nwhich subsystems, whether tests moved, whether a schema or an interface\nchanged, whether anything was deleted. This paragraph of facts is the input to\nclassification; do it before choosing a kind, not to justify one.</li>\n<li><strong>Classify into exactly one kind</strong> from <code>feature</code>, <code>bug_fix</code>, <code>improvement</code>,\n<code>security</code>, <code>ops</code>, <code>docs</code>, <code>breaking</code>. The rubric and its edge cases —\na bug fix that adds a flag, a pure performance change, a revert, a dependency\nbump that fixes a vulnerability — are in\n<a href=\"references/classification-guide.md\">the classification guide</a>. One kind. If\ntwo genuinely apply, that is a signal the operation should be itemized rather\nthan digested.</li>\n<li><strong>Write the three registers.</strong><ul>\n<li><strong>short</strong> — one line, at most 140 characters, no markdown syntax beyond\ninline code, no trailing period needed. It answers &quot;what changed&quot; for\nsomeone scanning a list.</li>\n<li><strong>medium</strong> — one paragraph. What changed, who it affects, and what they will\nnotice. No file paths, no function names; this register is for users.</li>\n<li><strong>detail</strong> — a full markdown page: what changed, why, and the specific\nevidence. File paths with line ranges, hunk citations, before/after\nfragments where a fragment is clearer than a sentence. This register is for\nsomeone who will open the code.</li>\n</ul>\n</li>\n<li><strong>Anchor every claim in the detail register.</strong> A sentence that asserts\nbehaviour must be followed by, or adjacent to, the reference that shows it. If\nyou cannot point at the hunk, delete the sentence.</li>\n<li><strong>Record relations, cited or omitted.</strong> Ticket, request, reporter. A relation\nis included only when the evidence names it — a reference in the body, a\nlinked issue, a trailer. Do not infer a reporter from an assignee, or a ticket\nfrom a branch name that resembles one, without saying that is what you did.</li>\n<li><strong>Emit the agreed shape.</strong> The JSON envelope in\n<a href=\"references/output-contract.md\">the output contract</a>, single or array. Markdown\nlives inside the JSON string fields; the envelope itself is data.</li>\n</ol>\n<h4 id=\"honesty-rules\">Honesty rules</h4>\n<p>These are not style preferences. Each one exists because the opposite behaviour\nproduces a description that reads well and is false.</p>\n<ul>\n<li><strong>Never claim a change does something the diff does not show.</strong> &quot;Improves\nperformance&quot; requires either a measurement in the change or a mechanical reason\nvisible in the hunk. Otherwise write what the code now does and stop.</li>\n<li><strong>A revert says it is a revert</strong>, names what it reverts, and does not describe\nthe reverted change&#39;s benefits in the present tense.</li>\n<li><strong>A partial change is described as partial.</strong> Scaffolding behind a disabled flag\nis not a shipped feature; say the flag is off.</li>\n<li><strong>Deletions are changes.</strong> A removed endpoint, option, or column belongs in the\ndescription even when nothing was added.</li>\n<li><strong>Absent evidence is stated, not filled.</strong> No reporter is <code>null</code>, not a guess\nand not an empty string that renders as a dangling label.</li>\n<li><strong>The title is evidence, not a conclusion.</strong> When the diff contradicts it,\ndescribe the diff and note the discrepancy in the detail register.</li>\n</ul>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Describe this merge for a release ledger. Read the diff first, classify it from\nthe fixed kind set, and give me short, medium, and detailed registers with the\ndetail register citing file and line ranges. Return the single-digest JSON shape.\n</code></pre>\n<pre><code class=\"language-text\">Describe the range v2.3.0..v2.4.0. Ask me first whether I want one digest or an\nitemized array — I think itemized, with a generic summary on top. Anything you\ncannot anchor in a diff, leave out.\n</code></pre>\n<pre><code class=\"language-text\">This PR says it is a performance fix. Check that against the diff before you\nclassify it, and if the diff does not show a performance change, say so in the\ndetail register and classify what it actually is.\n</code></pre>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li><strong>Describing the title.</strong> The most common failure, and the hardest to see,\nbecause the output is fluent and plausible. Read the diff first, every time.</li>\n<li><strong>Merging two changes into one description.</strong> A pull request that fixes a bug\nand refactors a module has two facts in it. One kind and one description will\nmisrepresent one of them. Offer the itemized shape.</li>\n<li><strong>Detail that is a file list.</strong> &quot;Changed <code>router.ts</code>, <code>handler.ts</code>, and\n<code>types.ts</code>&quot; is not detail; it is the diff&#39;s table of contents. Detail says what\nthe change to each file does.</li>\n<li><strong>Line references that rot immediately.</strong> Anchor to the <em>post-change</em> line\nnumbers and pair them with the commit SHA, so the reference stays resolvable\nafter the next merge.</li>\n<li><strong>A medium register full of identifiers.</strong> It is the register users read.\nFunction names there mean it was written for the wrong audience.</li>\n<li><strong>Claiming a security fix without evidence.</strong> Only classify <code>security</code> when the\nchange closes an actual exposure the diff shows, or an advisory names it.\nCalling routine hardening a security fix devalues the label the one time it\nmatters.</li>\n<li><strong>Silent inference of relations.</strong> A branch named <code>fix/1234</code> is not a citation.\nEither the evidence names the ticket or the relation is null.</li>\n<li><strong>Describing generated or vendored churn.</strong> A lockfile update and a regenerated\nclient are volume, not content. Say what the regeneration was for.</li>\n<li><strong>Losing the <code>breaking</code> signal in prose.</strong> If callers must change, <code>breaking</code>\nis the kind and the first line of the detail register says what to change.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> The diff was read before the pull request body or title.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Exactly one kind was assigned, from the fixed set.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The short register is at most 140 characters and readable on its own.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The medium register names no file paths or function names.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every behavioural claim in the detail register has an adjacent reference.</li>\n<li><input disabled=\"\" type=\"checkbox\"> References carry a path, a post-change line range, and a commit SHA.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Relations are cited or null; none were inferred without saying so.</li>\n<li><input disabled=\"\" type=\"checkbox\"> A revert, a partial change, or a disabled flag is described as such.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The output shape matches what the user chose.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The JSON envelope validates against the output contract.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Nothing in the description asserts a benefit the diff does not demonstrate.</li>\n</ul>\n<h3 id=\"deeper-reading\">Deeper reading</h3>\n<ul>\n<li><a href=\"references/output-contract.md\">Output contract</a>: the JSON envelope, both\nshapes, field-by-field rules, and complete worked examples.</li>\n<li><a href=\"references/classification-guide.md\">Classification guide</a>: the seven kinds\nwith their boundaries, a decision order that resolves overlaps, and the edge\ncases that get classified wrong most often.</li>\n</ul>\n","outline":["When to Use","Prerequisites","Procedure","Usage Examples","Pitfalls","Verification","Deeper reading"],"words":1619}
