[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E7YJQC537M0DPE1VFYVC7F":3,"skill-same:01M7E7YJQC537M0DPE1VFYVC7F":109},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M7E7YJQC537M0DPE1VFYVC7F","respond-action",null,"Use when screened review findings should be fixed on the current branch, usually as one verified commit per finding.","tony\u002Fskills","tony","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26336?v=4","01M72E5RNJ7SQV8F9KBM5RKRMN","Tony Narlock","01M7E7MBN5C6YZ4JJJ5Y82KBJG",0,"MIT","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: respond-action\ndescription: >-\n  Use when screened review findings should be fixed on the current branch,\n  usually as one verified commit per finding.\ndisable-model-invocation: true\nallowed-tools: [\"Bash\", \"Read\", \"Grep\", \"Glob\", \"Edit\", \"Write\", \"AskUserQuestion\"]\nmetadata:\n  argument-hint: \"[findings text] [\u003Cpr-number|url>] [--base=\u003Cref>] [--no-fixup] [--on-fail=skip|stop|ask] [--reply]\"\n  source: \"plugins\u002Frespond\u002Fskills\u002Faction\u002FSKILL.md\"\n---\n\n# this skill\n\nLand the review findings that survived screening. Each accepted finding\nis fixed in the simplest way that works and committed on its own,\nbehind the project's discovered quality gates. It modifies files and\ncreates commits, so it runs only when invoked by name.\n\nScreening already decided what is worth doing; this skill decides how\nlittle it takes, bound by `references\u002Fbloat-discipline.md`.\nHistory rewrites are opt-in: `fixup!` plus autosquash runs only after\nthe plan that proposes it is approved.\n\nRun by the `respond-goal` skill, this skill is in loop mode: it skips Phase 2's\nplan mode and Phase 5's panel, never pushes, and never posts replies.\nThe loop owns all four.\n\nWrite each `..\u002F..\u002Fscripts\u002F` path as an absolute path; the reply rules and\nscript paths are in `references\u002Freport-contract.md`.\n\n## The screening gate\n\n```\nNO FIX WITHOUT A VERDICT\n```\n\nThis skill does not triage. Before any edit, resolve a ledger:\n\n- **A ledger exists whose key matches**: collect the feedback,\n  recompute the branch, `HEAD`, and digest from the source that ledger\n  screened, per the rubric's ledger section, and compare them with the\n  `## Ledger key` of the\n  the `respond-check` skill report earlier in this session. Its verdicts are\n  settled; do not re-argue them.\n- **No ledger, or a key mismatch**: run the `respond-check` skill now with the\n  same arguments and use its ledger. When the host cannot invoke it,\n  follow `references\u002Fscreening-rubric.md` end to end first, and\n  say in the report that screening ran inline.\n\nObvious-looking findings are the ones that turn out to be pre-existing,\nalready fixed, or a fix costing ten times the defect.\n\nAn `ask` verdict is never fixed. Interactively, put it to the user with\n`ask-user-choice` in Phase 1 and take the answer as the verdict. In a\nnon-interactive run, or in loop mode, it stays unfixed: the hero counts it\nand `## Awaiting an answer` lists it.\n\n## `$ARGUMENTS` contract\n\n| Flag | Default | Effect |\n|---|---|---|\n| `\u003Cpr-number\\|url>` | current branch's PR when one exists | Positional, passed through to screening: collect findings from the PR. |\n| `--base=\u003Cref>` | the pull request's base branch | Override the provenance baseline. |\n| `--no-fixup` | off | Never propose `fixup!` commits; everything lands as a forward commit. |\n| `--on-fail=\u003Cmode>` | `ask` | Per-finding gate failure: `skip` (revert that fix, continue), `stop` (revert, halt), `ask` (surface via `ask-user-choice`). |\n| `--reply` | off | Draft replies for declined and deferred findings and offer to post them after the fixes land. |\n\nNon-flag text is the findings list, handed to screening. A command quoted\ninside a finding follows `references\u002Ffeedback-sources.md`.\n\n## Fix shapes\n\n**Behavioral bugs** get the smallest change that removes the defect,\nplus a regression test only when the bloat discipline's two-part test\npasses: the branch could plausibly break this again, and no existing\ntest would catch it.\n\n**Comment and docstring findings** get a rewrite shorter than what it\nreplaced; a finding that grows the comment block was misread.\n\n**Typos** are fixed. A typo whose causal commit passes the `fixup!`\neligibility check below may take the `fixup!` shape; anything else is a\nforward commit. A typo sharing a commit with a non-typo finding takes the\nforward shape.\n\nA finding whose only fix is a defensive wrapper, a single-caller\nabstraction, or a guard against a state the caller already excludes\nshould not have reached here; return it to screening's cost gate rather\nthan building it.\n\n## History rewrites: opt-in and scripted\n\nA `fixup!` plus autosquash rewrites commits, so it needs the approved plan\nand an eligible causal commit. Eligibility is scripted:\n\n```console\n$ python3 references\u002Frepo_state.py fixup-check \\\n    \u003Ccausal-sha> \\\n    --base \u003Cbase>\n```\n\nExit 0 means eligible. Exit 1 prints why, and the finding lands as a\nforward commit; so does a fix that spans several commits. The check\nrefuses:\n\n- a commit outside `\u003Cbase>..HEAD`;\n- any merge commit in `\u003Cbase>..HEAD`, since `git rebase` without\n  `--rebase-merges` flattens merges into a linear branch\n  (\u003Chttps:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-rebase>);\n- a pushed commit, meaning any remote-tracking ref, as last fetched,\n  contains it. Rewriting it needs a force-push.\n\nCreate each `fixup!` commit against its causal commit:\n\n```console\n$ git commit --fixup=\u003Csha>\n```\n\nThen squash. `git var` documents `GIT_SEQUENCE_EDITOR` as the editor\n`git rebase -i` uses for its todo file, \"meant to be interpreted by the\nshell\" (\u003Chttps:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-var>; the `sequence.editor` setting is\nin \u003Chttps:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-config>), so `:`, the shell no-op, accepts\nthe generated list unchanged and no editor opens. Phase 0 left the tree\nclean:\n\n```console\n$ GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash \u003Cbase>\n```\n\n`\u003Cbase>` is the resolved provenance base's SHA. When the rebase reports a\nconflict, run `git rebase --abort`; the `fixup!` commits stay unsquashed\nas forward commits, and the report says the squash was skipped.\n`--no-fixup` disables all of it.\n\n## Phase 0: Situational awareness\n\n1. Read `AGENTS.md` \u002F `CLAUDE.md` \u002F `.github\u002FCONTRIBUTING.md` for the\n   commit format and conventions.\n2. Resolve the five gate buckets and the CI-coverage split per\n   `references\u002Fverification-gates.md`. Match a bucket keyword\n   against a heading as a whole word (`Respect` is not `spec`), and take\n   only a fenced block that holds a command. Show every discovered\n   command in the plan.\n3. Run the home-directory guard from `references\u002Freport-contract.md`\n   first; exit 3 halts before anything else, with no stash offered.\n4. Resolve the base, refreshing the remotes. The JSON gives `ref`, `sha`,\n   and `fetched`; `fetched: false` means the report says provenance may be\n   stale, exit 1 means ask for `--base`, and exit 4 halts with `gh`'s reason:\n\n   ```console\n   $ python3 references\u002Frepo_state.py base \\\n       --pr \u003Cn> \\\n       --fetch\n   ```\n\n5. List the user's own uncommitted paths:\n\n   ```console\n   $ python3 references\u002Frepo_state.py changes\n   ```\n\n   An empty array means a clean tree. Otherwise the tree must be clean\n   before any fix: a formatter or autofix gate can rewrite a file the user\n   had edited, and reverting a red fix would then discard that edit. Ask\n   whether to stash it or abort; a non-interactive run aborts with the\n   stopped-run reply below, with no menu and no mention of prompts.\n\n   Stash: run one command and keep the SHA it prints. Exit 0 stashed. Exit 1\n   printed nothing and means there was nothing to stash: run `changes`\n   again, and continue with no stash when it is empty, else stop. Exit 3\n   means `git stash` failed: stop and give stderr's reason.\n\n   ```console\n   $ python3 references\u002Fuser_stash.py save\n   ```\n\n   Every exit after a stash restores it first, including a halt under\n   `--on-fail=stop`. A clean apply drops the stash and returns staged\n   state; a refusal keeps it, and the reply gives its SHA and\n   `git stash apply --index \u003Csha>`:\n\n   ```console\n   $ python3 references\u002Fuser_stash.py restore \u003Csha>\n   ```\n\n   `restore` refuses, with the tree untouched and the stash kept, when a\n   stashed path also changed since the save. Before editing, list the\n   stash's paths with `user_stash.py paths \u003Csha>`. A finding whose path is\n   among them stops and asks; a non-interactive run skips that finding and\n   says so.\n\n## Phase 1: Resolve the ledger\n\nApply the screening gate above. Say which path was taken (an\nexisting ledger, a fresh screening run, or inline screening) as the\nfirst `## Verification` bullet, not under a heading of its own.\n\n## Phase 2: Orchestration plan\n\nEnter plan mode before the first edit. In Claude Code call `EnterPlanMode`; in Cursor, Codex, or Gemini use `\u002Fplan` or `Shift+Tab`. Where plan mode is unavailable, present the plan as text.\n\nThe plan covers:\n\n1. The accepted findings with their verdicts and provenance, and the\n   count of deferred and declined ones.\n2. Per finding: the planned minimal fix, its commit subject in the\n   project's format, forward-vs-`fixup!` shape (say when two findings\n   share a commit), and anything it adds beyond the fix (a test, a\n   comment, a code path) with why. A fix that adds nothing says so.\n3. The prompts that will fire (non-trivial rewrite consent, reply\n   posting), the discovered gate commands with the local-versus-CI\n   split, and the `--on-fail` mode in effect.\n\nWait for approval, then exit plan mode. In a non-interactive run,\nrecord the plan in the report and proceed with the stated defaults:\n`--on-fail=stop`, forward commits only, and no replies posted.\n\n## Phase 3: Execute per finding\n\nOne finding, one commit; two findings share a commit only when they\nedit the same lines. For each accepted finding, in plan order:\n\n1. Apply the minimal fix.\n2. Run the fast local gates: `format`, `lint`, `typecheck`, and\n   `test` scoped to the affected area; `build` only when the change\n   plausibly affects build output. Gates run as discovered, including\n   mutating ones. Run `repo_state.py mark` before each gate and\n   `repo_state.py since-mark` after it; the array lists the paths the gate\n   itself changed. When it is not empty, fold those paths into the commit\n   under test and re-run the scoped test once.\n3. Green → list the changed paths with `repo_state.py changes`. The tree\n   was clean when the finding began, so the fix owns every path listed:\n   the paths it edited or created and the paths a gate's autofix changed.\n   Stage exactly those with `git add -- \u003Cpath> \u003Cpath>`, never `git add -A`\n   or `git add .`. Commit. The message uses the project's format and describes\n   the defect and the fix, not the finding id, the reviewer, or the\n   review. Write it per\n   `references\u002Fprose-rules.md`, with no `Co-Authored-By`, no\n   \"Generated with\" or other tool trailer, and no emoji. A `fixup!`\n   commit keeps its auto-generated subject, because autosquash matches\n   on it verbatim and a body would be discarded at squash.\n4. Red → revert that fix and follow `--on-fail`. A non-interactive\n   `ask` becomes `stop`. This restores every changed tracked path and\n   deletes every file the fix created. It never uses `git clean`,\n   `git reset --hard`, or `git checkout .`, and is safe only because\n   Phase 0 left a clean tree:\n\n   ```console\n   $ python3 references\u002Frepo_state.py revert\n   ```\n\nAfter all findings: run the consented autosquash if any `fixup!`\ncommits exist, re-run the fast gates once, then restore a Phase 0\nstash. Read the landed commits back; an autosquash rewrites their SHAs,\nso the report takes every SHA and subject from this output:\n\n```console\n$ git log \\\n    --format='%h %s' \\\n    \u003Cbase>..HEAD\n```\n\nThen compare the tree with what the user had: `user_stash.py verify \u003Csha>`\nafter a restore, or `user_stash.py verify` with no stash. Exit 0 means the\nchanged paths are exactly the stash's (none, without one). Exit 1 prints\n`unexpected` and `missing` paths; the report names them.\n\n## Phase 4: Replies\n\nWith `--reply`, show the ledger's drafted replies for declined and\ndeferred findings in full, and post them on one confirmation: to the\noriginating thread where the source was a thread, otherwise as a single\npull-request comment. A thread reply goes to the thread's first comment,\nby its numeric id (`databaseId` in the thread query, `id` in the REST\nlisting in `references\u002Ffeedback-sources.md`).\n\nReplies quote reviewers, so they never go through shell quoting or a\nheredoc. Make one file per reply, write the reply into it with the file\ntool, and post from the file:\n\n```console\n$ mktemp \"${TMPDIR:-\u002Ftmp}\u002Frespond-reply.XXXXXX\"\n```\n\nA thread reply:\n\n```console\n$ gh api repos\u002F{owner}\u002F{repo}\u002Fpulls\u002F\u003Cn>\u002Fcomments\u002F\u003Ccomment-id>\u002Freplies \\\n    -F body=@\u003Creply-file>\n```\n\nA pull-request comment:\n\n```console\n$ gh pr comment \u003Cn> \\\n    --body-file \u003Creply-file>\n```\n\nMark a reply posted only when its command exited 0 and printed the new\ncomment's URL or id; otherwise report it as not posted, with `gh`'s\nmessage. Delete each reply file after posting, with `rm -- \u003Creply-file>`. Never post without that confirmation (a\nnon-interactive run treats `--reply` as it, for the replies shown in the\nreport only). Without `--reply`, the replies stay in the\nreport.\n\n## Phase 5: Report: the output contract\n\nWrite the report per `references\u002Fprose-rules.md` and\n`references\u002Freport-contract.md`. No label such as\n`What you need to do:` appears anywhere, and no prompt you could not show\nis named. List a panel option only when it can run now: no push or CI watch without\na remote (`git remote` lists none) or a pull request (`gh pr view` fails).\nA hypothetical (\"it would be a forward commit\") is not reported. In a\nnon-interactive run, put the plan from Phase 2 in one sentence beginning\n`Plan:` right after the hero line (never inside `## Verification`), as the\nlast example shows, and give no reason for skipping approval.\n\nA run that stops early (dirty tree, failed gate under `--on-fail=stop`,\nno screenable findings) reports one result sentence, then what the user\nneeds to do (when a stash could not be restored, its SHA and the\nrestore command, as the fourth example shows), then only the sections\nbelow that have content; it omits the empty ones, headings included, as\nthe second example shows. A home-directory halt follows\n`references\u002Freport-contract.md`. On a run that landed commits, keep\n`## What the fixes added` even when empty. In prose, name a commit by its\nsubject; SHAs appear only in `## Commits`. Do not print the ledger key; it\nbelongs to the screening report.\n\n1. Hero block (1–3 lines): `✓ N fixed, M deferred, K declined`, then\n   `, J ask` when any finding is an `ask`, plus the branch name.\n2. `## Commits`: one row per landed commit: finding, SHA, subject,\n   gate result.\n3. `## What the fixes added`: every test, comment, code path, and\n   dependency introduced, with the finding that justified it. When\n   commits landed and it added nothing, write `Nothing.`; that is the\n   good outcome.\n4. `## Deferred & declined`: omitted when nothing was deferred or\n   declined; else the follow-up recommendations and the replies, marked\n   as posted or not.\n5. `## Awaiting an answer`: omitted when no finding is an `ask`; else\n   each one with the question it needs answered.\n6. `## Verification`: the discovered gate commands that ran, what was\n   deferred to CI, and the watch command when a remote exists. A command\n   the skill invented is not a gate: when none was discovered, say so.\n7. End with an `ask-user-choice` panel (skip inside plan mode): push\n   and watch CI, hand the branch to the `respond-goal` skill to run the loop to\n   completion, run deferred opt-ins, or stop. In a non-interactive run,\n   record the options and default to stopping. In loop mode, skip the\n   panel.\n\nReply in this shape:\n\n```text\n✓ 2 fixed, 1 deferred, 1 declined on feat\u002Fretry-after.\n\n## Commits\n\n- #1 -> 7c1d9e2 retry(fix[parse]) Fall back to the default delay on a non-numeric Retry-After. Gates green.\n- #2 -> 3b8a410 auth(fix[session]) Return early when the session is None. Gates green.\n\n## What the fixes added\n\n- A regression test for #1: the branch added the parser and no test covers a non-numeric header.\n\n## Deferred & declined\n\n- #3 deferred: split sync_all in a follow-up. Reply not posted.\n- #4 declined as improbable: the reply is drafted. Not posted.\n\n## Verification\n\n- Used the ledger from the earlier check.\n- Ran format, lint, typecheck, and the retry tests locally. The full suite is left to CI.\n\n1. Push and watch CI\n2. Hand the branch to respond-goal\n3. Stop\n```\n\nA stopped run replies in this shape:\n\n```text\nStopped before any edit: the working tree has uncommitted changes.\n\nCommit or stash them, then run respond-action again.\n\n1. Stop\n```\n\nA halt after the stash restores it and gives the SHA when the restore\nis refused:\n\n```text\nStopped after fixing #1: the gate failed on #2 under --on-fail=stop, and your stashed edits overlap a landed fix, so they were not restored.\n\nMerge them by hand, then run: git stash apply --index 9d41c07e5b2a. The stash stays until you drop it.\n\n1. Stop\n```\n\nA non-interactive run states its plan after the hero line:\n\n```text\n✓ 1 fixed, 0 deferred, 0 declined on feat\u002Fretry-after.\n\nPlan: one forward commit for #1, stop on a red gate, post no replies.\n```\n\n\n## Portability notes\n\n- `ask-user-choice` — present the listed options and wait for the user to pick one. Hosts with a structured multiple-choice tool (Claude Code's `AskUserQuestion`) should use it; otherwise print a numbered list and wait for a numbered reply. Never proceed on an assumed answer.\n- `$ARGUMENTS` — the text the user passed when invoking this skill. If your host does not substitute it, read it as the user's request in the current turn, and ask when there is none.\n- Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.\n","# this skill\n\nLand the review findings that survived screening. Each accepted finding\nis fixed in the simplest way that works and committed on its own,\nbehind the project's discovered quality gates. It modifies files and\ncreates commits, so it runs only when invoked by name.\n\nScreening already decided what is worth doing; this skill decides how\nlittle it takes, bound by `references\u002Fbloat-discipline.md`.\nHistory rewrites are opt-in: `fixup!` plus autosquash runs only after\nthe plan that proposes it is approved.\n\nRun by the `respond-goal` skill, this skill is in loop mode: it skips Phase 2's\nplan mode and Phase 5's panel, never pushes, and never posts replies.\nThe loop owns all four.\n\nWrite each `..\u002F..\u002Fscripts\u002F` path as an absolute path; the reply rules and\nscript paths are in `references\u002Freport-contract.md`.\n\n## The screening gate\n\n```\nNO FIX WITHOUT A VERDICT\n```\n\nThis skill does not triage. Before any edit, resolve a ledger:\n\n- **A ledger exists whose key matches**: collect the feedback,\n  recompute the branch, `HEAD`, and digest from the source that ledger\n  screened, per the rubric's ledger section, and compare them with the\n  `## Ledger key` of the\n  the `respond-check` skill report earlier in this session. Its verdicts are\n  settled; do not re-argue them.\n- **No ledger, or a key mismatch**: run the `respond-check` skill now with the\n  same arguments and use its ledger. When the host cannot invoke it,\n  follow `references\u002Fscreening-rubric.md` end to end first, and\n  say in the report that screening ran inline.\n\nObvious-looking findings are the ones that turn out to be pre-existing,\nalready fixed, or a fix costing ten times the defect.\n\nAn `ask` verdict is never fixed. Interactively, put it to the user with\n`ask-user-choice` in Phase 1 and take the answer as the verdict. In a\nnon-interactive run, or in loop mode, it stays unfixed: the hero counts it\nand `## Awaiting an answer` lists it.\n\n## `$ARGUMENTS` contract\n\n| Flag | Default | Effect |\n|---|---|---|\n| `\u003Cpr-number\\|url>` | current branch's PR when one exists | Positional, passed through to screening: collect findings from the PR. |\n| `--base=\u003Cref>` | the pull request's base branch | Override the provenance baseline. |\n| `--no-fixup` | off | Never propose `fixup!` commits; everything lands as a forward commit. |\n| `--on-fail=\u003Cmode>` | `ask` | Per-finding gate failure: `skip` (revert that fix, continue), `stop` (revert, halt), `ask` (surface via `ask-user-choice`). |\n| `--reply` | off | Draft replies for declined and deferred findings and offer to post them after the fixes land. |\n\nNon-flag text is the findings list, handed to screening. A command quoted\ninside a finding follows `references\u002Ffeedback-sources.md`.\n\n## Fix shapes\n\n**Behavioral bugs** get the smallest change that removes the defect,\nplus a regression test only when the bloat discipline's two-part test\npasses: the branch could plausibly break this again, and no existing\ntest would catch it.\n\n**Comment and docstring findings** get a rewrite shorter than what it\nreplaced; a finding that grows the comment block was misread.\n\n**Typos** are fixed. A typo whose causal commit passes the `fixup!`\neligibility check below may take the `fixup!` shape; anything else is a\nforward commit. A typo sharing a commit with a non-typo finding takes the\nforward shape.\n\nA finding whose only fix is a defensive wrapper, a single-caller\nabstraction, or a guard against a state the caller already excludes\nshould not have reached here; return it to screening's cost gate rather\nthan building it.\n\n## History rewrites: opt-in and scripted\n\nA `fixup!` plus autosquash rewrites commits, so it needs the approved plan\nand an eligible causal commit. Eligibility is scripted:\n\n```console\n$ python3 references\u002Frepo_state.py fixup-check \\\n    \u003Ccausal-sha> \\\n    --base \u003Cbase>\n```\n\nExit 0 means eligible. Exit 1 prints why, and the finding lands as a\nforward commit; so does a fix that spans several commits. The check\nrefuses:\n\n- a commit outside `\u003Cbase>..HEAD`;\n- any merge commit in `\u003Cbase>..HEAD`, since `git rebase` without\n  `--rebase-merges` flattens merges into a linear branch\n  (\u003Chttps:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-rebase>);\n- a pushed commit, meaning any remote-tracking ref, as last fetched,\n  contains it. Rewriting it needs a force-push.\n\nCreate each `fixup!` commit against its causal commit:\n\n```console\n$ git commit --fixup=\u003Csha>\n```\n\nThen squash. `git var` documents `GIT_SEQUENCE_EDITOR` as the editor\n`git rebase -i` uses for its todo file, \"meant to be interpreted by the\nshell\" (\u003Chttps:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-var>; the `sequence.editor` setting is\nin \u003Chttps:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-config>), so `:`, the shell no-op, accepts\nthe generated list unchanged and no editor opens. Phase 0 left the tree\nclean:\n\n```console\n$ GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash \u003Cbase>\n```\n\n`\u003Cbase>` is the resolved provenance base's SHA. When the rebase reports a\nconflict, run `git rebase --abort`; the `fixup!` commits stay unsquashed\nas forward commits, and the report says the squash was skipped.\n`--no-fixup` disables all of it.\n\n## Phase 0: Situational awareness\n\n1. Read `AGENTS.md` \u002F `CLAUDE.md` \u002F `.github\u002FCONTRIBUTING.md` for the\n   commit format and conventions.\n2. Resolve the five gate buckets and the CI-coverage split per\n   `references\u002Fverification-gates.md`. Match a bucket keyword\n   against a heading as a whole word (`Respect` is not `spec`), and take\n   only a fenced block that holds a command. Show every discovered\n   command in the plan.\n3. Run the home-directory guard from `references\u002Freport-contract.md`\n   first; exit 3 halts before anything else, with no stash offered.\n4. Resolve the base, refreshing the remotes. The JSON gives `ref`, `sha`,\n   and `fetched`; `fetched: false` means the report says provenance may be\n   stale, exit 1 means ask for `--base`, and exit 4 halts with `gh`'s reason:\n\n   ```console\n   $ python3 references\u002Frepo_state.py base \\\n       --pr \u003Cn> \\\n       --fetch\n   ```\n\n5. List the user's own uncommitted paths:\n\n   ```console\n   $ python3 references\u002Frepo_state.py changes\n   ```\n\n   An empty array means a clean tree. Otherwise the tree must be clean\n   before any fix: a formatter or autofix gate can rewrite a file the user\n   had edited, and reverting a red fix would then discard that edit. Ask\n   whether to stash it or abort; a non-interactive run aborts with the\n   stopped-run reply below, with no menu and no mention of prompts.\n\n   Stash: run one command and keep the SHA it prints. Exit 0 stashed. Exit 1\n   printed nothing and means there was nothing to stash: run `changes`\n   again, and continue with no stash when it is empty, else stop. Exit 3\n   means `git stash` failed: stop and give stderr's reason.\n\n   ```console\n   $ python3 references\u002Fuser_stash.py save\n   ```\n\n   Every exit after a stash restores it first, including a halt under\n   `--on-fail=stop`. A clean apply drops the stash and returns staged\n   state; a refusal keeps it, and the reply gives its SHA and\n   `git stash apply --index \u003Csha>`:\n\n   ```console\n   $ python3 references\u002Fuser_stash.py restore \u003Csha>\n   ```\n\n   `restore` refuses, with the tree untouched and the stash kept, when a\n   stashed path also changed since the save. Before editing, list the\n   stash's paths with `user_stash.py paths \u003Csha>`. A finding whose path is\n   among them stops and asks; a non-interactive run skips that finding and\n   says so.\n\n## Phase 1: Resolve the ledger\n\nApply the screening gate above. Say which path was taken (an\nexisting ledger, a fresh screening run, or inline screening) as the\nfirst `## Verification` bullet, not under a heading of its own.\n\n## Phase 2: Orchestration plan\n\nEnter plan mode before the first edit. In Claude Code call `EnterPlanMode`; in Cursor, Codex, or Gemini use `\u002Fplan` or `Shift+Tab`. Where plan mode is unavailable, present the plan as text.\n\nThe plan covers:\n\n1. The accepted findings with their verdicts and provenance, and the\n   count of deferred and declined ones.\n2. Per finding: the planned minimal fix, its commit subject in the\n   project's format, forward-vs-`fixup!` shape (say when two findings\n   share a commit), and anything it adds beyond the fix (a test, a\n   comment, a code path) with why. A fix that adds nothing says so.\n3. The prompts that will fire (non-trivial rewrite consent, reply\n   posting), the discovered gate commands with the local-versus-CI\n   split, and the `--on-fail` mode in effect.\n\nWait for approval, then exit plan mode. In a non-interactive run,\nrecord the plan in the report and proceed with the stated defaults:\n`--on-fail=stop`, forward commits only, and no replies posted.\n\n## Phase 3: Execute per finding\n\nOne finding, one commit; two findings share a commit only when they\nedit the same lines. For each accepted finding, in plan order:\n\n1. Apply the minimal fix.\n2. Run the fast local gates: `format`, `lint`, `typecheck`, and\n   `test` scoped to the affected area; `build` only when the change\n   plausibly affects build output. Gates run as discovered, including\n   mutating ones. Run `repo_state.py mark` before each gate and\n   `repo_state.py since-mark` after it; the array lists the paths the gate\n   itself changed. When it is not empty, fold those paths into the commit\n   under test and re-run the scoped test once.\n3. Green → list the changed paths with `repo_state.py changes`. The tree\n   was clean when the finding began, so the fix owns every path listed:\n   the paths it edited or created and the paths a gate's autofix changed.\n   Stage exactly those with `git add -- \u003Cpath> \u003Cpath>`, never `git add -A`\n   or `git add .`. Commit. The message uses the project's format and describes\n   the defect and the fix, not the finding id, the reviewer, or the\n   review. Write it per\n   `references\u002Fprose-rules.md`, with no `Co-Authored-By`, no\n   \"Generated with\" or other tool trailer, and no emoji. A `fixup!`\n   commit keeps its auto-generated subject, because autosquash matches\n   on it verbatim and a body would be discarded at squash.\n4. Red → revert that fix and follow `--on-fail`. A non-interactive\n   `ask` becomes `stop`. This restores every changed tracked path and\n   deletes every file the fix created. It never uses `git clean`,\n   `git reset --hard`, or `git checkout .`, and is safe only because\n   Phase 0 left a clean tree:\n\n   ```console\n   $ python3 references\u002Frepo_state.py revert\n   ```\n\nAfter all findings: run the consented autosquash if any `fixup!`\ncommits exist, re-run the fast gates once, then restore a Phase 0\nstash. Read the landed commits back; an autosquash rewrites their SHAs,\nso the report takes every SHA and subject from this output:\n\n```console\n$ git log \\\n    --format='%h %s' \\\n    \u003Cbase>..HEAD\n```\n\nThen compare the tree with what the user had: `user_stash.py verify \u003Csha>`\nafter a restore, or `user_stash.py verify` with no stash. Exit 0 means the\nchanged paths are exactly the stash's (none, without one). Exit 1 prints\n`unexpected` and `missing` paths; the report names them.\n\n## Phase 4: Replies\n\nWith `--reply`, show the ledger's drafted replies for declined and\ndeferred findings in full, and post them on one confirmation: to the\noriginating thread where the source was a thread, otherwise as a single\npull-request comment. A thread reply goes to the thread's first comment,\nby its numeric id (`databaseId` in the thread query, `id` in the REST\nlisting in `references\u002Ffeedback-sources.md`).\n\nReplies quote reviewers, so they never go through shell quoting or a\nheredoc. Make one file per reply, write the reply into it with the file\ntool, and post from the file:\n\n```console\n$ mktemp \"${TMPDIR:-\u002Ftmp}\u002Frespond-reply.XXXXXX\"\n```\n\nA thread reply:\n\n```console\n$ gh api repos\u002F{owner}\u002F{repo}\u002Fpulls\u002F\u003Cn>\u002Fcomments\u002F\u003Ccomment-id>\u002Freplies \\\n    -F body=@\u003Creply-file>\n```\n\nA pull-request comment:\n\n```console\n$ gh pr comment \u003Cn> \\\n    --body-file \u003Creply-file>\n```\n\nMark a reply posted only when its command exited 0 and printed the new\ncomment's URL or id; otherwise report it as not posted, with `gh`'s\nmessage. Delete each reply file after posting, with `rm -- \u003Creply-file>`. Never post without that confirmation (a\nnon-interactive run treats `--reply` as it, for the replies shown in the\nreport only). Without `--reply`, the replies stay in the\nreport.\n\n## Phase 5: Report: the output contract\n\nWrite the report per `references\u002Fprose-rules.md` and\n`references\u002Freport-contract.md`. No label such as\n`What you need to do:` appears anywhere, and no prompt you could not show\nis named. List a panel option only when it can run now: no push or CI watch without\na remote (`git remote` lists none) or a pull request (`gh pr view` fails).\nA hypothetical (\"it would be a forward commit\") is not reported. In a\nnon-interactive run, put the plan from Phase 2 in one sentence beginning\n`Plan:` right after the hero line (never inside `## Verification`), as the\nlast example shows, and give no reason for skipping approval.\n\nA run that stops early (dirty tree, failed gate under `--on-fail=stop`,\nno screenable findings) reports one result sentence, then what the user\nneeds to do (when a stash could not be restored, its SHA and the\nrestore command, as the fourth example shows), then only the sections\nbelow that have content; it omits the empty ones, headings included, as\nthe second example shows. A home-directory halt follows\n`references\u002Freport-contract.md`. On a run that landed commits, keep\n`## What the fixes added` even when empty. In prose, name a commit by its\nsubject; SHAs appear only in `## Commits`. Do not print the ledger key; it\nbelongs to the screening report.\n\n1. Hero block (1–3 lines): `✓ N fixed, M deferred, K declined`, then\n   `, J ask` when any finding is an `ask`, plus the branch name.\n2. `## Commits`: one row per landed commit: finding, SHA, subject,\n   gate result.\n3. `## What the fixes added`: every test, comment, code path, and\n   dependency introduced, with the finding that justified it. When\n   commits landed and it added nothing, write `Nothing.`; that is the\n   good outcome.\n4. `## Deferred & declined`: omitted when nothing was deferred or\n   declined; else the follow-up recommendations and the replies, marked\n   as posted or not.\n5. `## Awaiting an answer`: omitted when no finding is an `ask`; else\n   each one with the question it needs answered.\n6. `## Verification`: the discovered gate commands that ran, what was\n   deferred to CI, and the watch command when a remote exists. A command\n   the skill invented is not a gate: when none was discovered, say so.\n7. End with an `ask-user-choice` panel (skip inside plan mode): push\n   and watch CI, hand the branch to the `respond-goal` skill to run the loop to\n   completion, run deferred opt-ins, or stop. In a non-interactive run,\n   record the options and default to stopping. In loop mode, skip the\n   panel.\n\nReply in this shape:\n\n```text\n✓ 2 fixed, 1 deferred, 1 declined on feat\u002Fretry-after.\n\n## Commits\n\n- #1 -> 7c1d9e2 retry(fix[parse]) Fall back to the default delay on a non-numeric Retry-After. Gates green.\n- #2 -> 3b8a410 auth(fix[session]) Return early when the session is None. Gates green.\n\n## What the fixes added\n\n- A regression test for #1: the branch added the parser and no test covers a non-numeric header.\n\n## Deferred & declined\n\n- #3 deferred: split sync_all in a follow-up. Reply not posted.\n- #4 declined as improbable: the reply is drafted. Not posted.\n\n## Verification\n\n- Used the ledger from the earlier check.\n- Ran format, lint, typecheck, and the retry tests locally. The full suite is left to CI.\n\n1. Push and watch CI\n2. Hand the branch to respond-goal\n3. Stop\n```\n\nA stopped run replies in this shape:\n\n```text\nStopped before any edit: the working tree has uncommitted changes.\n\nCommit or stash them, then run respond-action again.\n\n1. Stop\n```\n\nA halt after the stash restores it and gives the SHA when the restore\nis refused:\n\n```text\nStopped after fixing #1: the gate failed on #2 under --on-fail=stop, and your stashed edits overlap a landed fix, so they were not restored.\n\nMerge them by hand, then run: git stash apply --index 9d41c07e5b2a. The stash stays until you drop it.\n\n1. Stop\n```\n\nA non-interactive run states its plan after the hero line:\n\n```text\n✓ 1 fixed, 0 deferred, 0 declined on feat\u002Fretry-after.\n\nPlan: one forward commit for #1, stop on a red gate, post no replies.\n```\n\n\n## Portability notes\n\n- `ask-user-choice` — present the listed options and wait for the user to pick one. Hosts with a structured multiple-choice tool (Claude Code's `AskUserQuestion`) should use it; otherwise print a numbered list and wait for a numbered reply. Never proceed on an assumed answer.\n- `$ARGUMENTS` — the text the user passed when invoking this skill. If your host does not substitute it, read it as the user's request in the current turn, and ask when there is none.\n- Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.\n",{"name":5,"metadata":24,"description":7,"allowed-tools":27,"disable-model-invocation":35},{"source":25,"argument-hint":26},"plugins\u002Frespond\u002Fskills\u002Faction\u002FSKILL.md","[findings text] [\u003Cpr-number|url>] [--base=\u003Cref>] [--no-fixup] [--on-fail=skip|stop|ask] [--reply]",[28,29,30,31,32,33,34],"Bash","Read","Grep","Glob","Edit","Write","AskUserQuestion",true,"main","5fbeb3b47beedea13813be7b7023f736a8d97a65",".agents\u002Fskills\u002Frespond-action","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills","https:\u002F\u002Fgithub.com\u002Ftony","https:\u002F\u002Ftony.sh","lighthouse keeper","2026-11-08 17:57:34",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":35},[46,49,52],{"tool":47,"command":48},"npx","npx skills add tony\u002Fskills --skill respond-action",{"tool":50,"command":51},"bunx","bunx skills add tony\u002Fskills --skill respond-action",{"tool":53,"command":54},"pnpm","pnpm dlx skills add tony\u002Fskills --skill respond-action","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002FSKILL.md",[57,63,67,73,77,81,85,89,93,97,101,105],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"agents\u002Fopenai.yaml","REFERENCE","参考文档",300,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Fagents\u002Fopenai.yaml",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fbloat-discipline.md",4103,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fbloat-discipline.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fcollect_feedback.py","SCRIPT","脚本",6320,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fcollect_feedback.py",{"path":74,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ffeedback-sources.md",3986,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Ffeedback-sources.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fghcli.py",3182,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fghcli.py",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fledger_key.py",3405,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fledger_key.py",{"path":86,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fprose-rules.md",4644,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fprose-rules.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Frepo_state.py",14329,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Frepo_state.py",{"path":94,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Freport-contract.md",2231,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Freport-contract.md",{"path":98,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fscreening-rubric.md",9093,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fscreening-rubric.md",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fuser_stash.py",4774,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fuser_stash.py",{"path":106,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fverification-gates.md",4022,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frespond-action\u002Freferences\u002Fverification-gates.md",[110,117,124,131,138,145],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7E8NCSHXV2JPW4J61R0TQS7","serene-bliss","Use when asked to make a CLI --help, docs page, error message, or tooling UX more serene or calmer for developer experience; returns text, no edits.","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Fserene-bliss\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7E8N87MAVJD8RRQKQB1ZPS6","review","Weave code review: run independent adversarial reviews in parallel, then synthesize findings","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7E8N402XG4ZBFNACQ413163","refine","Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Frefine\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M7E8N01KB86A7136P00GVKJW","prompt","Weave prompt: compare independent adversarial implementations, then adopt the single best one","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Fprompt\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":19},"01M7E8MW7YJW2PCMDW3G9RTGNK","plan","Weave planning: compare independent adversarial plans, then synthesize the best one","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Fplan\u002FSKILL.md",[],[],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":19},"01M7E8MSBYXNCV4ZYWDS4PFJXK","fix-review","Fix weave review findings: validate, add test coverage, fix, and commit each as atomic changes","https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fweave\u002Fskills\u002Ffix-review\u002FSKILL.md",[],[]]