[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71P4C0B0DXTRRSG9RA6Y687":3,"skill-same:01M71P4C0B0DXTRRSG9RA6Y687":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M71P4C0B0DXTRRSG9RA6Y687","writing-good-prs",null,"Write or update a pull request title and body that a reviewer can trust and own. Use when opening a PR or editing its description.","drsh4dow\u002Fpi-setup","drsh4dow","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F45247070?v=4","01M71P068NASGHSWS11VWW416N","Daniel Moretti","01M71P0698BH81N65NP04X9NVN",10,"MIT","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-good-prs\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"prs","writing","writing good prs","good","body","opening a pr","write","update","request","pull request","title","reviewer","can","when","false","use","editing","pr","trust","pull","2026-11-10 10:56:23",false,"---\nname: writing-good-prs\ndescription: Write or update a pull request title and body that a reviewer can trust and own. Use when opening a PR or editing its description.\ndisable-model-invocation: false\nuser-invokable: false\n---\n\n# Writing good PRs\n\nA PR body is the case a reviewer reads before the diff: what is wrong today, why this change fixes it, what it looks like, the proof that it works, and what it puts at risk. Write the Why the way the **writing-good-commits** skill writes a commit body. Write the Evidence for an expert in the field who must own this change after it merges. The test: that expert can retell the problem and the reason for the fix, and has every question they would ask about the proof answered in the PR, without cloning the branch.\n\nWrite it the way one engineer explains a change to another: plain words, one idea per sentence, and only terms the reader would not stop to ask about. Then edit it with the **unslop** skill. When the repository has a PR template, fill its sections and apply the rules below to the section that plays each role.\n\n## Title\n\nFollow the subject rules of **writing-good-commits**: `type(scope): subject`, imperative, completing \"If merged, this PR will …\", within 72 characters. Name the one change the PR makes, bounded by what Evidence proves. A title that promises \"no process outlives its launcher\" fails when Risk lists a process that still does.\n\n## Body\n\n```markdown\n## Why\n\n## Shape\n\n## Evidence\n\n## Risk\n```\n\nStart at `## Why` with no preamble. Drop `## Shape` only when the change fits in one sentence.\n\nWrite for a reader who has only the base branch, this diff, and the tickets the PR links, and describe the change as it stands at this PR's head. How the work was produced, such as the earlier PRs that built it, the branches it passed through, who verified it, and the review rounds, belongs in the commit list and on the tickets. Name another PR only when this one needs it to merge, deploy, or make sense, by its number and with what it does.\n\nEverything the body points at is reachable by any developer with access to the repository: files linked on the default branch, issues, PRs, CI runs, and hosted media. Paths on your machine, such as your home directory, `\u002Ftmp`, a worktree, or an agent state folder, are reachable only by you. Paste what they hold instead. Say \"before this PR\" and \"after this PR\" rather than commit hashes.\n\n### Why\n\nTwo short paragraphs, at most 180 words, walking the commit body's chain:\n\n1. **The problem as one story, in the present tense.** Who hits it, the trigger, what happens, and what it costs them. Then the cause, when it explains the fix. \"A reviewer subagent that greps the code for `pi --print` is refused, so it cannot read the guard it is reviewing. The guard splits a command on `;` even inside quotes, so quoted search text looks like a launch.\"\n2. **The change, why it removes the cause, and the alternative a reviewer would propose**, with the fact that rules it out. Skip the alternative when no real one exists.\n\nThen one line per ticket: `Closes #N` for a ticket this PR finishes, and `Part of #N (\u003Cwhat this PR does for it>)` for one it advances, with what that ticket still owes posted on the ticket. Add `Depends on #N` when another PR must merge first. Name behavior in plain words, and keep identifiers to the ones a reviewer needs to find the code. Leave the line-by-line how to the diff and the process out: commands you ran, review rounds, rebases.\n\n### Shape\n\nShow the change before the reviewer reads the diff. Pick the smallest view that makes the point, and use several when the change has several kinds of shape:\n\n- Pseudocode for logic or an algorithm:\n\n  ```text\n  on(save)\n    if content is unchanged\n      return cached result\n    write new content\n  ```\n\n- A call tree for runtime control flow, or a component tree for UI structure, with the state and module boundaries that matter.\n- A shallow file tree for file responsibility or a broad refactor.\n- Mermaid for messages between components, control flow, or data flow. GitHub renders it in the PR:\n\n  ```mermaid\n  sequenceDiagram\n      participant Delegate\n      participant Guard\n      Delegate->>Guard: bash \"rg 'pi --print'\"\n      Guard-->>Delegate: allowed\n  ```\n\n- A `diff` of any of these when the surrounding shape already exists and the point is what changes:\n\n  ```diff\n   submitForm\n     createSession\n       persistPrompt\n  +    expandSkillMention\n       launchAgent\n  ```\n\n- The whole block when most of it is new, or when omitted context would hide ownership or order.\n\nPlace each visual next to the sentence it supports. Keep only the calls, files, states, and boundaries the reviewer needs, and name both sides of a rename.\n\n### Evidence\n\nEvidence answers two things: does the change do what the Why claims, and what would an expert in this field ask before trusting that? Its length is whatever those answers need. Order it so the decisive proof comes first.\n\n**Claims.** Give one item for each claim the title and Why make, and one for each `## Done when` item of the ticket the PR closes. Each item is a **witness**: an observation the reviewer sees in the PR itself.\n\n````markdown\n- **\u003Cclaim or Done-when item>.** \u003Csetup and action, one sentence>, `\u003Ccommand>`:\n  ```text\n  before  \u003Cthe output that shows the problem>\n  after   \u003Cthe output that shows it gone>\n  ```\n````\n\n- Run each witness at this PR's head. A run on another PR's head proves that head, so rerun the check here or list the claim under Not checked.\n- Paste or link the observation. A sentence that reports a result is a claim. \"The base leaves the Pi running and the head leaves nothing\" becomes the process listing from both runs.\n- Show the counterfactual: the same check before and after this PR. For a new regression test, paste its failure without the fix, then its pass with it.\n- **A change a user can see or touch** opens Evidence with two witnesses, captured on the running product through the repository's `verify-*` skill:\n  - Before and after screenshots of the same screen in the same state, side by side in a `| Before | After |` table.\n  - A recording of you dogfooding the change as a real user: from the entry point a user would take, through the interaction, to the result. Add a half-speed copy when timing is the point.\n\n  For a TUI or CLI, the captured pane is the screenshot and a terminal recording is the video.\n- Match every other witness to its claim: a process listing for liveness, and for a perf claim one `before → after` number with its unit and a link to the method, per the **benchmark-checklist** skill.\n- A before\u002Fafter table works well for many cases of one check. Put the full log in a `\u003Cdetails>` block under the decisive lines.\n- \"Tests pass\", \"typecheck passes\", and \"`vp run verify` passed\" are claims. They count only with their output or a CI link.\n\n**Expert questions.** Then answer the questions a skeptical expert in this domain would ask about the proof, each as a bold question with its witness:\n\n- Does the test fail without the fix, or would it pass anyway?\n- Does the proof run on the surface where the bug was seen, or on a stand-in? If a stand-in, how close is it?\n- For a change a user sees: does it hold when a real user drives it end to end, including the empty, error, and narrow-screen states?\n- What is the nearest case that should still behave as before, and does it? For a guard or a security check, which bypasses were tried?\n- For the rejected alternative in the Why: what shows it fails?\n- For a number: what was the sample size, the spread, and the setup?\n\nAsk the questions that fit this change and skip the ones that do not apply.\n\n**Not checked.** End with `**Not checked:**` and each claim, Done-when item, or expert question that has no witness, with the reason. Write `nothing` when everything has one.\n\nCaption each screenshot and recording with what to look at. Host media through the repository's own uploads when it has them, and otherwise with the **dumpfile** skill. Dumpfile links expire after 30 days, so each caption says what the media showed. Keep PR-only media out of the repository.\n\n### Risk\n\nAnswer three labeled lines, each with the fact behind it:\n\n- **Blast radius.** Who or what is exposed if the change is wrong, what failure they would see, and how anyone would notice. \"Every command a delegate runs goes through this parser. A wrong parse either stalls a subagent on a harmless command or lets a delegate start Pi, which nothing else would catch.\"\n- **Door.** Two-way when a revert undoes everything. One-way when something survives a revert: migrated data, a published package, a removed public API, a sent message, or a changed default that other machines pick up. Name the fact that decides it, and for a one-way door, how to recover.\n- **Merge condition.** What must be true before this merges, such as a regression found in Evidence being fixed or `#N` merged first. Write `none` when it can merge as is.\n\n## Example\n\nThe same PR, condensed from a real one and written well:\n\n````markdown\nfix(background-terminals): deliver unread notifications with the terminal's end\n\n## Why\n\nWhen a background terminal ends, the model never sees the notifications it had not read yet. A watcher that reports `a-61`, then `b-62`, and is then killed leaves the model with only `a-61`, so it acts on partial information. The session deletes a terminal's pending notifications when the terminal ends.\n\nThe report of the terminal's end now carries them. Sending each one ahead of the end was rejected: Pi steers one message per poll, so each would cost the model an extra request.\n\nCloses #73\n\n## Shape\n\n```diff\n terminal ends\n-  delete its pending notifications\n+  attach its pending notifications to the end report\n   wake the model with the end report\n```\n\n## Evidence\n\n- **A killed watcher's second notification reaches the model** (Done when 1). A `pi --print` run whose watcher the model kills on its first notification, so the change has no screen to capture:\n  ```text\n  before  model reply: a-61 end\n  after   model reply: a-61 b-62 end\n  ```\n- **Does the regression test fail without the fix?** Yes. `test\u002Fsteering.test.ts` \"a terminal that notifies and exits during a turn\":\n  ```text\n  before  ✖ expected note-42 once, received 0 times\n  after   ✔ a terminal that notifies and exits during a turn\n  ```\n- **Can a notification now arrive twice?** The TLA+ model checks this as `NoDoubleWake`. It holds after this PR:\n  ```text\n  TerminalDelivery.cfg: NoDoubleWake holds\n  ```\n\n**Not checked:** macOS, because the e2e suite runs only on Linux here.\n\n## Risk\n\n- **Blast radius.** Every session that uses background terminals. A wrong batch would give the model a notification twice or not at all, and the model would act on the wrong state without saying so.\n- **Door.** Two-way. Pending notifications live in memory, so a revert restores the old behavior with nothing to migrate.\n- **Merge condition.** none\n````\n\nThe same PR, written badly:\n\n```markdown\nfix(background-terminals): a notification reaches the model when its terminal ends first\n\n## Why\n\n`delivery.terminalSettled(id)` deleted pending notifications. Now `batch(\"completion\")` appends them and `bg_kill` lists them. This is the final PR of the stack: it carries intermediate PRs #71 and #72, and final PR B adds the docs. Closes #73.\n\n## Evidence\n\n- The TUI reply is `a-61 end` on stack-base and `a-61 b-62 end` here.\n- `test\u002Fsteering.test.ts` fails on stack-base and passes here.\n- `vp run verify` passes.\n\n## Risk\n\nTwo-way door. Blast radius: background terminals.\n```\n\nIts Why lists symbols instead of a story, so the reader never learns what the model loses, and it gives no reason for the approach. It tells how the work was produced, which the reader of this diff cannot use, and names a PR by a letter only its author knows. It has no Shape. Its Evidence reports results instead of showing them, names a branch instead of before and after, counts \"passes\" as proof, and leaves every expert question open. Its Risk names a door without the fact behind it and never says who would be hurt.\n\n## Check the body\n\nWrite the body to a file and run both gates.\n\n1. **Structure.** Run `scripts\u002Fcheck-body.ts pr \u003Cbody-file> --title \"\u003Ctitle>\"`, with `--template \u003Cpath>` when the repository has a PR template. Fix each printed problem and rerun until it exits 0. Exit 0 means the headings, the title's form and length, and the Why length pass. It says nothing about the case the body makes. A `warning:` line leaves the exit code alone. It marks a sentence about how the work was produced, or a line that may leave a choice open. Rewrite a production sentence for the reader of this diff, or keep it when that reader needs it to merge or deploy. Settle an open choice before the PR is ready for review: make it when it is yours, answer it from a source, or get its owner's answer and cite it. Otherwise keep the PR a draft.\n2. **Expert read.** Give one subagent in the `cross-family reviewer` role, per the **subagents** skill, only the title and the body file, with no diff, ticket, or chat. Ask it to:\n   1. Retell the problem as one story, and why this fix rather than the alternative.\n   2. As an expert in this domain who must own the change, list every question it would need answered to trust the proof. For each, quote the line that answers it, or write `unanswered`.\n   3. State the blast radius and the door, or write `unclear`.\n   4. Quote every sentence it could follow only by knowing how the work was produced, such as other PRs or branches named without what they do, or who checked what. Write `none` when there is none.\n\n   Run the read once. Answer every `unanswered` and `unclear` it reports with a witness, or list it under Not checked. Rewrite every quoted sentence as a fact about this PR's change. Then move on without a second read.\n\n   A delegate launches no subagent, so it writes the body file and names this read in its report for its parent to run.\n\nPublish the same file with `scripts\u002Fpublish-pr.ts create \u003Cbody-file> --title \"\u003Ctitle>\"` or `scripts\u002Fpublish-pr.ts edit \u003Cnumber> \u003Cbody-file> --title \"\u003Ctitle>\"`, never with a bare `gh pr create --body-file` or `gh pr edit --body-file`. Both verbs take `--repo` and `--template`, and `create` also takes `--base` and `--head`. Keep the title out of the body file.\n\n- It reruns check-body and calls `gh` only after check-body exits 0.\n- On `edit`, it keeps each `## ` section that the live body has and the file lacks, such as a plan a bot appended, after the section it followed in the live body, and prints `publish-pr: kept \"## \u003Cheading>\" from the live body` for each. If you deleted that section on purpose, say so in your report.\n- It reads the PR back and compares it with what it sent, ignoring line ends and trailing newlines. On a difference it prints the changed lines.\n\nIts exit code is 0 when the PR is published and reads back the same, 1 when check-body found problems, 64 for a bad argument or an unreadable body or template file, 2 when a `gh` call failed or check-body could not run, and 3 when the readback differs.\n","# Writing good PRs\n\nA PR body is the case a reviewer reads before the diff: what is wrong today, why this change fixes it, what it looks like, the proof that it works, and what it puts at risk. Write the Why the way the **writing-good-commits** skill writes a commit body. Write the Evidence for an expert in the field who must own this change after it merges. The test: that expert can retell the problem and the reason for the fix, and has every question they would ask about the proof answered in the PR, without cloning the branch.\n\nWrite it the way one engineer explains a change to another: plain words, one idea per sentence, and only terms the reader would not stop to ask about. Then edit it with the **unslop** skill. When the repository has a PR template, fill its sections and apply the rules below to the section that plays each role.\n\n## Title\n\nFollow the subject rules of **writing-good-commits**: `type(scope): subject`, imperative, completing \"If merged, this PR will …\", within 72 characters. Name the one change the PR makes, bounded by what Evidence proves. A title that promises \"no process outlives its launcher\" fails when Risk lists a process that still does.\n\n## Body\n\n```markdown\n## Why\n\n## Shape\n\n## Evidence\n\n## Risk\n```\n\nStart at `## Why` with no preamble. Drop `## Shape` only when the change fits in one sentence.\n\nWrite for a reader who has only the base branch, this diff, and the tickets the PR links, and describe the change as it stands at this PR's head. How the work was produced, such as the earlier PRs that built it, the branches it passed through, who verified it, and the review rounds, belongs in the commit list and on the tickets. Name another PR only when this one needs it to merge, deploy, or make sense, by its number and with what it does.\n\nEverything the body points at is reachable by any developer with access to the repository: files linked on the default branch, issues, PRs, CI runs, and hosted media. Paths on your machine, such as your home directory, `\u002Ftmp`, a worktree, or an agent state folder, are reachable only by you. Paste what they hold instead. Say \"before this PR\" and \"after this PR\" rather than commit hashes.\n\n### Why\n\nTwo short paragraphs, at most 180 words, walking the commit body's chain:\n\n1. **The problem as one story, in the present tense.** Who hits it, the trigger, what happens, and what it costs them. Then the cause, when it explains the fix. \"A reviewer subagent that greps the code for `pi --print` is refused, so it cannot read the guard it is reviewing. The guard splits a command on `;` even inside quotes, so quoted search text looks like a launch.\"\n2. **The change, why it removes the cause, and the alternative a reviewer would propose**, with the fact that rules it out. Skip the alternative when no real one exists.\n\nThen one line per ticket: `Closes #N` for a ticket this PR finishes, and `Part of #N (\u003Cwhat this PR does for it>)` for one it advances, with what that ticket still owes posted on the ticket. Add `Depends on #N` when another PR must merge first. Name behavior in plain words, and keep identifiers to the ones a reviewer needs to find the code. Leave the line-by-line how to the diff and the process out: commands you ran, review rounds, rebases.\n\n### Shape\n\nShow the change before the reviewer reads the diff. Pick the smallest view that makes the point, and use several when the change has several kinds of shape:\n\n- Pseudocode for logic or an algorithm:\n\n  ```text\n  on(save)\n    if content is unchanged\n      return cached result\n    write new content\n  ```\n\n- A call tree for runtime control flow, or a component tree for UI structure, with the state and module boundaries that matter.\n- A shallow file tree for file responsibility or a broad refactor.\n- Mermaid for messages between components, control flow, or data flow. GitHub renders it in the PR:\n\n  ```mermaid\n  sequenceDiagram\n      participant Delegate\n      participant Guard\n      Delegate->>Guard: bash \"rg 'pi --print'\"\n      Guard-->>Delegate: allowed\n  ```\n\n- A `diff` of any of these when the surrounding shape already exists and the point is what changes:\n\n  ```diff\n   submitForm\n     createSession\n       persistPrompt\n  +    expandSkillMention\n       launchAgent\n  ```\n\n- The whole block when most of it is new, or when omitted context would hide ownership or order.\n\nPlace each visual next to the sentence it supports. Keep only the calls, files, states, and boundaries the reviewer needs, and name both sides of a rename.\n\n### Evidence\n\nEvidence answers two things: does the change do what the Why claims, and what would an expert in this field ask before trusting that? Its length is whatever those answers need. Order it so the decisive proof comes first.\n\n**Claims.** Give one item for each claim the title and Why make, and one for each `## Done when` item of the ticket the PR closes. Each item is a **witness**: an observation the reviewer sees in the PR itself.\n\n````markdown\n- **\u003Cclaim or Done-when item>.** \u003Csetup and action, one sentence>, `\u003Ccommand>`:\n  ```text\n  before  \u003Cthe output that shows the problem>\n  after   \u003Cthe output that shows it gone>\n  ```\n````\n\n- Run each witness at this PR's head. A run on another PR's head proves that head, so rerun the check here or list the claim under Not checked.\n- Paste or link the observation. A sentence that reports a result is a claim. \"The base leaves the Pi running and the head leaves nothing\" becomes the process listing from both runs.\n- Show the counterfactual: the same check before and after this PR. For a new regression test, paste its failure without the fix, then its pass with it.\n- **A change a user can see or touch** opens Evidence with two witnesses, captured on the running product through the repository's `verify-*` skill:\n  - Before and after screenshots of the same screen in the same state, side by side in a `| Before | After |` table.\n  - A recording of you dogfooding the change as a real user: from the entry point a user would take, through the interaction, to the result. Add a half-speed copy when timing is the point.\n\n  For a TUI or CLI, the captured pane is the screenshot and a terminal recording is the video.\n- Match every other witness to its claim: a process listing for liveness, and for a perf claim one `before → after` number with its unit and a link to the method, per the **benchmark-checklist** skill.\n- A before\u002Fafter table works well for many cases of one check. Put the full log in a `\u003Cdetails>` block under the decisive lines.\n- \"Tests pass\", \"typecheck passes\", and \"`vp run verify` passed\" are claims. They count only with their output or a CI link.\n\n**Expert questions.** Then answer the questions a skeptical expert in this domain would ask about the proof, each as a bold question with its witness:\n\n- Does the test fail without the fix, or would it pass anyway?\n- Does the proof run on the surface where the bug was seen, or on a stand-in? If a stand-in, how close is it?\n- For a change a user sees: does it hold when a real user drives it end to end, including the empty, error, and narrow-screen states?\n- What is the nearest case that should still behave as before, and does it? For a guard or a security check, which bypasses were tried?\n- For the rejected alternative in the Why: what shows it fails?\n- For a number: what was the sample size, the spread, and the setup?\n\nAsk the questions that fit this change and skip the ones that do not apply.\n\n**Not checked.** End with `**Not checked:**` and each claim, Done-when item, or expert question that has no witness, with the reason. Write `nothing` when everything has one.\n\nCaption each screenshot and recording with what to look at. Host media through the repository's own uploads when it has them, and otherwise with the **dumpfile** skill. Dumpfile links expire after 30 days, so each caption says what the media showed. Keep PR-only media out of the repository.\n\n### Risk\n\nAnswer three labeled lines, each with the fact behind it:\n\n- **Blast radius.** Who or what is exposed if the change is wrong, what failure they would see, and how anyone would notice. \"Every command a delegate runs goes through this parser. A wrong parse either stalls a subagent on a harmless command or lets a delegate start Pi, which nothing else would catch.\"\n- **Door.** Two-way when a revert undoes everything. One-way when something survives a revert: migrated data, a published package, a removed public API, a sent message, or a changed default that other machines pick up. Name the fact that decides it, and for a one-way door, how to recover.\n- **Merge condition.** What must be true before this merges, such as a regression found in Evidence being fixed or `#N` merged first. Write `none` when it can merge as is.\n\n## Example\n\nThe same PR, condensed from a real one and written well:\n\n````markdown\nfix(background-terminals): deliver unread notifications with the terminal's end\n\n## Why\n\nWhen a background terminal ends, the model never sees the notifications it had not read yet. A watcher that reports `a-61`, then `b-62`, and is then killed leaves the model with only `a-61`, so it acts on partial information. The session deletes a terminal's pending notifications when the terminal ends.\n\nThe report of the terminal's end now carries them. Sending each one ahead of the end was rejected: Pi steers one message per poll, so each would cost the model an extra request.\n\nCloses #73\n\n## Shape\n\n```diff\n terminal ends\n-  delete its pending notifications\n+  attach its pending notifications to the end report\n   wake the model with the end report\n```\n\n## Evidence\n\n- **A killed watcher's second notification reaches the model** (Done when 1). A `pi --print` run whose watcher the model kills on its first notification, so the change has no screen to capture:\n  ```text\n  before  model reply: a-61 end\n  after   model reply: a-61 b-62 end\n  ```\n- **Does the regression test fail without the fix?** Yes. `test\u002Fsteering.test.ts` \"a terminal that notifies and exits during a turn\":\n  ```text\n  before  ✖ expected note-42 once, received 0 times\n  after   ✔ a terminal that notifies and exits during a turn\n  ```\n- **Can a notification now arrive twice?** The TLA+ model checks this as `NoDoubleWake`. It holds after this PR:\n  ```text\n  TerminalDelivery.cfg: NoDoubleWake holds\n  ```\n\n**Not checked:** macOS, because the e2e suite runs only on Linux here.\n\n## Risk\n\n- **Blast radius.** Every session that uses background terminals. A wrong batch would give the model a notification twice or not at all, and the model would act on the wrong state without saying so.\n- **Door.** Two-way. Pending notifications live in memory, so a revert restores the old behavior with nothing to migrate.\n- **Merge condition.** none\n````\n\nThe same PR, written badly:\n\n```markdown\nfix(background-terminals): a notification reaches the model when its terminal ends first\n\n## Why\n\n`delivery.terminalSettled(id)` deleted pending notifications. Now `batch(\"completion\")` appends them and `bg_kill` lists them. This is the final PR of the stack: it carries intermediate PRs #71 and #72, and final PR B adds the docs. Closes #73.\n\n## Evidence\n\n- The TUI reply is `a-61 end` on stack-base and `a-61 b-62 end` here.\n- `test\u002Fsteering.test.ts` fails on stack-base and passes here.\n- `vp run verify` passes.\n\n## Risk\n\nTwo-way door. Blast radius: background terminals.\n```\n\nIts Why lists symbols instead of a story, so the reader never learns what the model loses, and it gives no reason for the approach. It tells how the work was produced, which the reader of this diff cannot use, and names a PR by a letter only its author knows. It has no Shape. Its Evidence reports results instead of showing them, names a branch instead of before and after, counts \"passes\" as proof, and leaves every expert question open. Its Risk names a door without the fact behind it and never says who would be hurt.\n\n## Check the body\n\nWrite the body to a file and run both gates.\n\n1. **Structure.** Run `scripts\u002Fcheck-body.ts pr \u003Cbody-file> --title \"\u003Ctitle>\"`, with `--template \u003Cpath>` when the repository has a PR template. Fix each printed problem and rerun until it exits 0. Exit 0 means the headings, the title's form and length, and the Why length pass. It says nothing about the case the body makes. A `warning:` line leaves the exit code alone. It marks a sentence about how the work was produced, or a line that may leave a choice open. Rewrite a production sentence for the reader of this diff, or keep it when that reader needs it to merge or deploy. Settle an open choice before the PR is ready for review: make it when it is yours, answer it from a source, or get its owner's answer and cite it. Otherwise keep the PR a draft.\n2. **Expert read.** Give one subagent in the `cross-family reviewer` role, per the **subagents** skill, only the title and the body file, with no diff, ticket, or chat. Ask it to:\n   1. Retell the problem as one story, and why this fix rather than the alternative.\n   2. As an expert in this domain who must own the change, list every question it would need answered to trust the proof. For each, quote the line that answers it, or write `unanswered`.\n   3. State the blast radius and the door, or write `unclear`.\n   4. Quote every sentence it could follow only by knowing how the work was produced, such as other PRs or branches named without what they do, or who checked what. Write `none` when there is none.\n\n   Run the read once. Answer every `unanswered` and `unclear` it reports with a witness, or list it under Not checked. Rewrite every quoted sentence as a fact about this PR's change. Then move on without a second read.\n\n   A delegate launches no subagent, so it writes the body file and names this read in its report for its parent to run.\n\nPublish the same file with `scripts\u002Fpublish-pr.ts create \u003Cbody-file> --title \"\u003Ctitle>\"` or `scripts\u002Fpublish-pr.ts edit \u003Cnumber> \u003Cbody-file> --title \"\u003Ctitle>\"`, never with a bare `gh pr create --body-file` or `gh pr edit --body-file`. Both verbs take `--repo` and `--template`, and `create` also takes `--base` and `--head`. Keep the title out of the body file.\n\n- It reruns check-body and calls `gh` only after check-body exits 0.\n- On `edit`, it keeps each `## ` section that the live body has and the file lacks, such as a plan a bot appended, after the section it followed in the live body, and prints `publish-pr: kept \"## \u003Cheading>\" from the live body` for each. If you deleted that section on purpose, say so in your report.\n- It reads the PR back and compares it with what it sent, ignoring line ends and trailing newlines. On a difference it prints the changed lines.\n\nIts exit code is 0 when the PR is published and reads back the same, 1 when check-body found problems, 64 for a bad argument or an unreadable body or template file, 2 when a `gh` call failed or check-body could not run, and 3 when the readback differs.\n",{"name":5,"description":7,"user-invokable":40,"disable-model-invocation":40},"main","f7936596c1ba2e1472dadccc3f111b9d517fa96c","agent\u002Fskills\u002Fwriting-good-prs",2,"https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup","https:\u002F\u002Fgithub.com\u002Fdrsh4dow","https:\u002F\u002Fdanielmoretti.com\u002F","Toss A Coin To Your Witcher :pirate_flag: ","2026-11-03 22:13:53",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add drsh4dow\u002Fpi-setup --skill writing-good-prs",{"tool":59,"command":60},"bunx","bunx skills add drsh4dow\u002Fpi-setup --skill writing-good-prs",{"tool":62,"command":63},"pnpm","pnpm dlx skills add drsh4dow\u002Fpi-setup --skill writing-good-prs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-good-prs\u002FSKILL.md",true,[67,73],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fcheck-body.ts","SCRIPT","脚本",13957,"https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-good-prs\u002Fscripts\u002Fcheck-body.ts",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fpublish-pr.ts",11672,"https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-good-prs\u002Fscripts\u002Fpublish-pr.ts",[78,93,111,130,139,159],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":39},"01M71P4GPJMBK21BTZBKY9T8EE","changelog","Write the changelog entry for a pull request. Use when a PR changes behavior that users, operators, or integrators can notice.","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fevals\u002Fharness-lessons\u002Ffixtures\u002Fchangelog-skill\u002FSKILL.md",[],[80,85,86,31,32,34,25,87,88,27,89,28,36,90,91,38,92],"changes","changelog entry","entry","behavior","for","operators","notice","users",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":39},"01M71P4E9AZM56JBY227P2G1SC","writing-good-tickets","Write, file, or update an issue or ticket that an agent or a developer can take to one PR. Use when filing a bug or feature, updating an issue, or breaking a plan into tickets.","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-good-tickets\u002FSKILL.md",[],[100,101,20,22,32,102,34,33,103,104,105,36,106,107,108,109,25,26,110,31],"writing good tickets","tickets","ticket","one","filing","feature","file","issue","take","bug","plan",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":39},"01M71P49D1AG2MR6AYNPMMT34Z","writing-good-commits","Write or reword a git commit message and size the commit it describes. Use when committing, or when reshaping commits during a rebase.","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-good-commits\u002FSKILL.md",[],[118,119,22,20,120,121,122,32,123,124,33,34,125,126,25,127,128,129],"writing good commits","commits","it","commit","committing","commit message","git commit message","git commit","git","size","message","rebase",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M71P480BDE55JMPVVEBCFS7P","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[20,89,137,34,32,138,33,35],"writing for agents","documents",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":39},"01M71P45SNCD7DDSA6FRVCPA17","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwizard\u002FSKILL.md",[],[141,33,146,34,147,148,149,150,89,151,152,32,153,154,155,156,31,157,103,158],"invoke","only","provisioning infrastructure","ci","up","setting","running","human","generate","dashboard","credentials","interactive","Bash",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":39},"01M71P43DNNPQ67NY6G4XQQM50","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fdrsh4dow\u002Fpi-setup\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwhy\u002FSKILL.md",[],[161,166,167,88,168,169,33,34,170,171,89,172],"rationale","data","how","work","design","runtime","thresholds"]