[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E8JHYWABZS6439ACT0WGVJ":3,"skill-same:01M7E8JHYWABZS6439ACT0WGVJ":62},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7E8JHYWABZS6439ACT0WGVJ","ratchet",null,"Use when asked to spike, bake off, then spike again; rinse and repeat, keep spiking, converge on a design, and stop when nothing new fights back.","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\u002Fplugins\u002Fspike\u002Fskills\u002Fratchet\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ratchet\ndescription: \"Use when asked to spike, bake off, then spike again; rinse and repeat, keep spiking, converge on a design, and stop when nothing new fights back.\"\nallowed-tools: [\"Bash\", \"Read\", \"Grep\", \"Glob\", \"Edit\", \"Write\", \"AskUserQuestion\", \"Agent\"]\nargument-hint: \"[\u003Cgoal>] [--rounds=\u003Cn>] [--replay]\"\n---\n\n\n# `\u002Fspike:ratchet`\n\nConvergence harness. `\u002Fspike:probe` answers \"does this path work?\",\n`\u002Fspike:bakeoff` \"which path is best?\". Neither answers \"what is the\nright design?\", which emerges from hitting real code several times and\nwatching what keeps fighting back. The ratchet runs both in rounds until\nthe design stops resisting.\n\n## Core thesis\n\nAcross rounds the code is disposable and **the ledger is the\nproduct**: each round keeps what it learned (approaches rejected,\ndecisions settled, questions open) and discards its implementation.\n\nRun a ratchet when the shape of the answer is unknown, such as a port\nto another language. One clear approach is `\u002Fspike:probe`; two or three\nnamed approaches competing once is `\u002Fspike:bakeoff`.\n\n## The Iron Rule\n\n```\nEVERY ROUND PRODUCES ZERO COMMITS\n```\n\nThe rule and its rationalization table are in\n`..\u002F..\u002Freferences\u002Fspike-core.md` (Zero commits), regardless of round count. Rounds end in stashes; commits happen\nonly in `--replay`, after the final plan is approved.\n\n**Red flag** unique to this skill: \"round 3 is basically final, commit\nit as a checkpoint so round 4 has a base.\" Round 4 starts from the\nstash, and the ledger is the base.\n\n## The ledger\n\nOne markdown file, written outside the working tree. `spike.sh` creates\nand prints the directory it lives in; use the printed path literally\nafterwards. In every command, `\u003Cscripts>` stands for the absolute path of\n`..\u002F..\u002Fscripts` resolved from this skill's directory (the shell runs in\nthe project, not here); write that path literally:\n\n```console\n$ \u003Cscripts>\u002Fspike.sh ledger-dir\n```\n\nThe ledger lives at `\u003Cthat path>\u002F\u003Cgoal-slug>.md`. When the git directory\nrefuses the write, the script prints a fresh `spike-ledger.XXXXXX`\ndirectory under `${TMPDIR:-\u002Ftmp}` instead, and a write into the printed\ndirectory that still fails goes to `mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Fspike-ledger.XXXXXX\"`.\nThe report's `## Stashes` section ends with a ledger bullet: `spike\u002F\u003Cgoal-slug>.md`\nin the git directory, or the full temp path when the fallback was used,\nsince the user must act on that path to keep the ledger. A ledger in the\nworking tree gets swallowed by the round's stash or erased by\n`git clean -xdf`; the common dir resolves to one path from every\nbakeoff worktree.\n\nName the ledger in the Phase 1 brief as `spike\u002F\u003Cgoal-slug>.md` under\nthe repository's git directory; show the absolute path only if asked.\nAppend to an existing ledger; never truncate it.\n\nEach round appends one section:\n\n- **Probed**: what this round built, and its stash SHA.\n- **Stumbling blocks**: what fought back, per `\u002Fspike:probe`'s\n  definition. New ones only; repeats are marked as repeats.\n- **Bakeoff**: contenders, winner, why, and which grafts were taken\n  (omit when no bakeoff ran this round).\n- **Locked**: decisions that will not be revisited, with the evidence\n  that settled them.\n- **Open**: questions carried into the next round.\n\nKeep every entry to a line or two.\n\n## `$ARGUMENTS` contract\n\nNon-flag text is the goal, resolved by this ladder: typed goal wins, empty mines the conversation\n(several candidates: ask; none: ask; non-interactive: halt and name them),\nprovenance recorded in the brief.\n\n| Flag | Default | Effect |\n|---|---|---|\n| `--rounds=\u003Cn>` | 3 | Cap on rounds run unprompted; only the closing panel takes it further. |\n| `--replay` | off | At Phase 4, land the approved plan per `..\u002F..\u002Freferences\u002Freplay.md` (Replay) instead of stopping at the panel. Never applies to a round. |\n\n## Phase 0: Situational awareness\n\nRead `..\u002F..\u002Freferences\u002Fspike-core.md` and run its Preflight once for the\nwhole ratchet: guard, conventions files, the five gate buckets and CI\nsplit per `..\u002F..\u002Freferences\u002Fverification-gates.md`, and the dirty-tree\nhalt. Every round starts from a clean tree, so offer only stash first or\nabort there (non-interactive default: abort); never \"probe on top\". The\nratchet takes no `--branch`. After the brief is approved, run Setup's\n`save-user` before round 1; the user-work SHA it prints goes in the ledger\nand the report. Then:\n\n1. Resolve the ledger path and read it if it already exists.\n2. Confirm `git worktree` is usable, since any round may call a\n   bakeoff, and create the worktree root once as described under\n   \"Worktree root\" in the shared file; every round's bakeoff reuses it.\n\n## Phase 1: Orchestration plan\n\nEnter plan mode before the first edit. In Claude Code call `EnterPlanMode`;\nin Cursor, Codex, or Gemini use `\u002Fplan` or `Shift+Tab`. Where plan mode is\nunavailable, present the plan as text.\n\nPresent the **ratchet brief**:\n\n1. The goal, one line, with provenance.\n2. What \"converged\" means for this goal: the demo or property the\n   final design must satisfy, not just the first round's smoke check.\n3. The round cap, any rounds already in the ledger, and the worst-case\n   cost: each round is one probe, possibly a bakeoff of N contenders,\n   and a judge per lens, so state the rounds times that sub-agent count\n   and let the user confirm or trim the cap.\n4. Discovered gate commands and the local-vs-CI split.\n5. The ledger path.\n6. The intended exit: clean rewrite, or landing plan.\n\nWait for approval, then exit plan mode. If plan mode is unavailable,\npresent the brief inline and proceed on confirmation. In a\nnon-interactive run, record the brief and proceed. A rejected brief\nchanges nothing.\n\n## Phase 2: A round\n\nRepeat until Phase 3 says stop. Each round:\n\n1. **Probe.** Follow the probe loop and Exit gate in\n   `..\u002F..\u002Freferences\u002Fspike-core.md`, then its Stash steps, against the\n   goal as sharpened by the ledger's open questions. The ratchet's\n   Phase 0 and brief already ran, so skip Setup. The plan and replay\n   phases belong to the ratchet's exit, and so does restoring the user's\n   work: never run `restore` between rounds.\n2. **Branch on what fought back.** A stumbling block with two or more\n   genuinely different resolutions calls for a bakeoff: run\n   `..\u002F..\u002Freferences\u002Fbakeoff-round.md` in full with those resolutions as\n   contenders, using the worktree root from Phase 0. The ratchet's Phase 0\n   and brief stand in for the bakeoff's, and the user's work is not\n   restored mid-run. A block with one obvious fix folds into the next probe.\n   Stash serially: one stash command per Bash call, never from parallel\n   contenders.\n3. **Re-probe the graft.** Grafts are unproven in combination, so the\n   ratchet seeds the next round's tree (`\u003Cscripts>\u002Fspike.sh replay-apply \u003Cwinner\n   sha>`, then the graft hunks) and that round probes from there. The\n   dirty-tree halt does not fire on a tree the ratchet seeded. A graft\n   that fails the check is dropped and recorded as dropped.\n4. **Record.** Append the round's ledger section before the next round;\n   a round without its entry did not happen.\n\nRound-2 and later contenders branch from `HEAD`, not from a tree seeded\nwith the previous winner; a seeded tree is probed in the main checkout.\n\nExcept when carrying grafts, a round starts from a clean tree (the\nuser's own work waits in the stash from Phase 0) and inherits the\nledger's locked decisions, not the code.\n\n## Phase 3: Convergence test\n\nStop when any of these holds, tested in this order. Say which one in\nthe report:\n\n- **Converged**: the round surfaced no stumbling block.\n- **Thrashing**: the round surfaced at least one stumbling block and\n  every one was already recorded and decided earlier. More spiking cannot\n  settle the question; stop and surface it.\n- **Capped**: `--rounds` is exhausted. Report the open questions\n  plainly.\n\nOtherwise start the next round from the ledger's open questions.\n\n## Phase 4: Exit\n\nThe surviving artifacts are the ledger and every round's stash SHA.\nOffer the two exits. Write any commit message per\n`..\u002F..\u002Freferences\u002Fprose-rules.md`, with no `Co-Authored-By`, no\n\"Generated with\" or other tool trailers, and no emoji:\n\n- **Clean rewrite**: after approval, write the final implementation\n  from the ledger's locked decisions, keeping the final stash as\n  reference. Write it on the clean tree, before the user's work comes\n  back, so it never mixes with their edits. Run the fast gates once. The\n  result stays uncommitted and `--replay` is not involved; committing it\n  is the user's call. Right when the code carries the marks of abandoned\n  rounds.\n- **Landing plan**: a commit-by-commit plan for the final stash, built\n  per `..\u002F..\u002Freferences\u002Freplay.md` (The replay plan), landed under\n  `--replay` per its Replay section. Right when the last round's code is what the design wants.\n\nThen restore the user's saved work with\n`\u003Cscripts>\u002Fspike.sh restore \u003Cuser-work sha>`, unless `--replay` runs, which\nrestores it after its last item. After a clean rewrite, list the rewrite's\nfiles in the report so the user can tell them from their own edits. A\nrefused restore keeps the stash: report the SHA.\n\nRecommend one and say why. Never drop earlier stashes; the ledger cites\nthem by SHA.\n\n## Output contract\n\nWrite the report per `..\u002F..\u002Freferences\u002Fprose-rules.md`.\n\nThe first line of the reply is exactly the hero line: no lead-in sentence,\nno progress note sent while sub-agents ran, no first-person opener, no\n\"I recommend\". Print every SHA abbreviated to 7 characters. After the last section\nonly the panel or the default line follows: no table, no closing question\nin prose. Report results, not process: never narrate a\ndeparture from these steps or name the brief or the skill; do the step or\nhalt. State what happened, never what a contender or step did not do: no\n\"not hidden\", \"no user work was saved\", \"nothing was X\" restatements.\nWrite in the passive or the plain result, never \"I\" or \"the run\". Do not\ndescribe how the run was set up (answers unavailable, permissions,\nsandbox); a non-interactive default is one line: \"Default: keep the\nstashes.\" Do not print HEAD or the main checkout's SHA; SHAs belong to\nstashes. Use no transient wording (\"for now\", \"currently\"). Write only the\nsections below: a stray finding goes in the findings or open section, and\nprocess (an amended commit, a retry) is left out.\nWarnings about the checkout (mode changes, files left in place, a tree\nthat needs attention) go inside `## Stashes`, never before the first section.\n\n1. Hero block (1–3 lines): `✓ converged in \u003Cn> rounds` \u002F\n   `⚠ capped at \u003Cn> rounds` \u002F `⚠ thrashing, stopped at round \u003Cn>` +\n   the goal.\n\n   A run that halts before round 1 (no commit, repository rooted at\n   home, dirty tree declined, missing code or goal) is a\n   `⚠ ratchet halted` hero line, one result sentence naming every\n   blocker per `..\u002F..\u002Freferences\u002Fspike-core.md` (Halted run).\n2. `## Rounds`: one block per round: what was probed, what fought\n   back, bakeoff winner if any, what got locked.\n3. `## Design`: the locked decisions as a specification, not a history.\n4. `## Open`: questions the ratchet did not settle, and for a thrashing\n   stop, why spiking cannot settle them.\n5. `## Stashes`: one bullet per stash: round, stash message, SHA,\n   restore command. Every round appears (a round that changed nothing\n   shows \"no changes\"), and so does every contender a round's bakeoff\n   stashed; those stashes outlive the ratchet. A run that saved the\n   user's work adds a bullet for it and says whether it was restored.\n6. `## Next`: the recommended exit, and the landing plan when one was\n   produced.\n7. End with an `AskUserQuestion` panel: rewrite from the ledger \u002F land\n   the final stash \u002F run another round \u002F stop and keep the ledger,\n   unless already in plan mode or `--replay` was given. In a\n   non-interactive run, state the default taken (\"Default: stop, ledger\n   kept.\") instead of asking.\n\nA halted run replies in this shape:\n\n```text\n⚠ ratchet halted: converge on an async\u002Fawait port of the retry queue.\n\nBlocked: the repository has no commits.\nMake the initial commit yourself, then run \u002Fspike:ratchet again with the same goal.\n```\n\nReply in this shape, as plain text outside any code fence, with plain\nbullets and no bold (never `- **Round 1:** ...`), and no local paths:\n\n```text\n✓ converged in 3 rounds: port the sync worker to asyncio\n\n## Rounds\n- Round 1: probed a direct await conversion; the DB client blocks the loop.\n- Round 2: bakeoff of thread executor vs async driver; async driver won. Locked: async driver.\n- Round 3: no new stumbling blocks.\n\n## Design\n- Use the async driver behind a thin repository interface.\n- Cancellation propagates through the worker's task group.\n\n## Open\n- Whether the metrics exporter needs its own loop.\n\n## Stashes\n- Round 1: spike: asyncio port, round 1, 1d8e0b7, restore with git stash apply 1d8e0b7\n- Round 2: spike: asyncio port, round 2, 6c40a93, restore with git stash apply 6c40a93\n\n## Next\n- Recommended: clean rewrite from the ledger; the final stash still carries round 2's abandoned executor shim.\n```\n","# `\u002Fspike:ratchet`\n\nConvergence harness. `\u002Fspike:probe` answers \"does this path work?\",\n`\u002Fspike:bakeoff` \"which path is best?\". Neither answers \"what is the\nright design?\", which emerges from hitting real code several times and\nwatching what keeps fighting back. The ratchet runs both in rounds until\nthe design stops resisting.\n\n## Core thesis\n\nAcross rounds the code is disposable and **the ledger is the\nproduct**: each round keeps what it learned (approaches rejected,\ndecisions settled, questions open) and discards its implementation.\n\nRun a ratchet when the shape of the answer is unknown, such as a port\nto another language. One clear approach is `\u002Fspike:probe`; two or three\nnamed approaches competing once is `\u002Fspike:bakeoff`.\n\n## The Iron Rule\n\n```\nEVERY ROUND PRODUCES ZERO COMMITS\n```\n\nThe rule and its rationalization table are in\n`..\u002F..\u002Freferences\u002Fspike-core.md` (Zero commits), regardless of round count. Rounds end in stashes; commits happen\nonly in `--replay`, after the final plan is approved.\n\n**Red flag** unique to this skill: \"round 3 is basically final, commit\nit as a checkpoint so round 4 has a base.\" Round 4 starts from the\nstash, and the ledger is the base.\n\n## The ledger\n\nOne markdown file, written outside the working tree. `spike.sh` creates\nand prints the directory it lives in; use the printed path literally\nafterwards. In every command, `\u003Cscripts>` stands for the absolute path of\n`..\u002F..\u002Fscripts` resolved from this skill's directory (the shell runs in\nthe project, not here); write that path literally:\n\n```console\n$ \u003Cscripts>\u002Fspike.sh ledger-dir\n```\n\nThe ledger lives at `\u003Cthat path>\u002F\u003Cgoal-slug>.md`. When the git directory\nrefuses the write, the script prints a fresh `spike-ledger.XXXXXX`\ndirectory under `${TMPDIR:-\u002Ftmp}` instead, and a write into the printed\ndirectory that still fails goes to `mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Fspike-ledger.XXXXXX\"`.\nThe report's `## Stashes` section ends with a ledger bullet: `spike\u002F\u003Cgoal-slug>.md`\nin the git directory, or the full temp path when the fallback was used,\nsince the user must act on that path to keep the ledger. A ledger in the\nworking tree gets swallowed by the round's stash or erased by\n`git clean -xdf`; the common dir resolves to one path from every\nbakeoff worktree.\n\nName the ledger in the Phase 1 brief as `spike\u002F\u003Cgoal-slug>.md` under\nthe repository's git directory; show the absolute path only if asked.\nAppend to an existing ledger; never truncate it.\n\nEach round appends one section:\n\n- **Probed**: what this round built, and its stash SHA.\n- **Stumbling blocks**: what fought back, per `\u002Fspike:probe`'s\n  definition. New ones only; repeats are marked as repeats.\n- **Bakeoff**: contenders, winner, why, and which grafts were taken\n  (omit when no bakeoff ran this round).\n- **Locked**: decisions that will not be revisited, with the evidence\n  that settled them.\n- **Open**: questions carried into the next round.\n\nKeep every entry to a line or two.\n\n## `$ARGUMENTS` contract\n\nNon-flag text is the goal, resolved by this ladder: typed goal wins, empty mines the conversation\n(several candidates: ask; none: ask; non-interactive: halt and name them),\nprovenance recorded in the brief.\n\n| Flag | Default | Effect |\n|---|---|---|\n| `--rounds=\u003Cn>` | 3 | Cap on rounds run unprompted; only the closing panel takes it further. |\n| `--replay` | off | At Phase 4, land the approved plan per `..\u002F..\u002Freferences\u002Freplay.md` (Replay) instead of stopping at the panel. Never applies to a round. |\n\n## Phase 0: Situational awareness\n\nRead `..\u002F..\u002Freferences\u002Fspike-core.md` and run its Preflight once for the\nwhole ratchet: guard, conventions files, the five gate buckets and CI\nsplit per `..\u002F..\u002Freferences\u002Fverification-gates.md`, and the dirty-tree\nhalt. Every round starts from a clean tree, so offer only stash first or\nabort there (non-interactive default: abort); never \"probe on top\". The\nratchet takes no `--branch`. After the brief is approved, run Setup's\n`save-user` before round 1; the user-work SHA it prints goes in the ledger\nand the report. Then:\n\n1. Resolve the ledger path and read it if it already exists.\n2. Confirm `git worktree` is usable, since any round may call a\n   bakeoff, and create the worktree root once as described under\n   \"Worktree root\" in the shared file; every round's bakeoff reuses it.\n\n## Phase 1: Orchestration plan\n\nEnter plan mode before the first edit. In Claude Code call `EnterPlanMode`;\nin Cursor, Codex, or Gemini use `\u002Fplan` or `Shift+Tab`. Where plan mode is\nunavailable, present the plan as text.\n\nPresent the **ratchet brief**:\n\n1. The goal, one line, with provenance.\n2. What \"converged\" means for this goal: the demo or property the\n   final design must satisfy, not just the first round's smoke check.\n3. The round cap, any rounds already in the ledger, and the worst-case\n   cost: each round is one probe, possibly a bakeoff of N contenders,\n   and a judge per lens, so state the rounds times that sub-agent count\n   and let the user confirm or trim the cap.\n4. Discovered gate commands and the local-vs-CI split.\n5. The ledger path.\n6. The intended exit: clean rewrite, or landing plan.\n\nWait for approval, then exit plan mode. If plan mode is unavailable,\npresent the brief inline and proceed on confirmation. In a\nnon-interactive run, record the brief and proceed. A rejected brief\nchanges nothing.\n\n## Phase 2: A round\n\nRepeat until Phase 3 says stop. Each round:\n\n1. **Probe.** Follow the probe loop and Exit gate in\n   `..\u002F..\u002Freferences\u002Fspike-core.md`, then its Stash steps, against the\n   goal as sharpened by the ledger's open questions. The ratchet's\n   Phase 0 and brief already ran, so skip Setup. The plan and replay\n   phases belong to the ratchet's exit, and so does restoring the user's\n   work: never run `restore` between rounds.\n2. **Branch on what fought back.** A stumbling block with two or more\n   genuinely different resolutions calls for a bakeoff: run\n   `..\u002F..\u002Freferences\u002Fbakeoff-round.md` in full with those resolutions as\n   contenders, using the worktree root from Phase 0. The ratchet's Phase 0\n   and brief stand in for the bakeoff's, and the user's work is not\n   restored mid-run. A block with one obvious fix folds into the next probe.\n   Stash serially: one stash command per Bash call, never from parallel\n   contenders.\n3. **Re-probe the graft.** Grafts are unproven in combination, so the\n   ratchet seeds the next round's tree (`\u003Cscripts>\u002Fspike.sh replay-apply \u003Cwinner\n   sha>`, then the graft hunks) and that round probes from there. The\n   dirty-tree halt does not fire on a tree the ratchet seeded. A graft\n   that fails the check is dropped and recorded as dropped.\n4. **Record.** Append the round's ledger section before the next round;\n   a round without its entry did not happen.\n\nRound-2 and later contenders branch from `HEAD`, not from a tree seeded\nwith the previous winner; a seeded tree is probed in the main checkout.\n\nExcept when carrying grafts, a round starts from a clean tree (the\nuser's own work waits in the stash from Phase 0) and inherits the\nledger's locked decisions, not the code.\n\n## Phase 3: Convergence test\n\nStop when any of these holds, tested in this order. Say which one in\nthe report:\n\n- **Converged**: the round surfaced no stumbling block.\n- **Thrashing**: the round surfaced at least one stumbling block and\n  every one was already recorded and decided earlier. More spiking cannot\n  settle the question; stop and surface it.\n- **Capped**: `--rounds` is exhausted. Report the open questions\n  plainly.\n\nOtherwise start the next round from the ledger's open questions.\n\n## Phase 4: Exit\n\nThe surviving artifacts are the ledger and every round's stash SHA.\nOffer the two exits. Write any commit message per\n`..\u002F..\u002Freferences\u002Fprose-rules.md`, with no `Co-Authored-By`, no\n\"Generated with\" or other tool trailers, and no emoji:\n\n- **Clean rewrite**: after approval, write the final implementation\n  from the ledger's locked decisions, keeping the final stash as\n  reference. Write it on the clean tree, before the user's work comes\n  back, so it never mixes with their edits. Run the fast gates once. The\n  result stays uncommitted and `--replay` is not involved; committing it\n  is the user's call. Right when the code carries the marks of abandoned\n  rounds.\n- **Landing plan**: a commit-by-commit plan for the final stash, built\n  per `..\u002F..\u002Freferences\u002Freplay.md` (The replay plan), landed under\n  `--replay` per its Replay section. Right when the last round's code is what the design wants.\n\nThen restore the user's saved work with\n`\u003Cscripts>\u002Fspike.sh restore \u003Cuser-work sha>`, unless `--replay` runs, which\nrestores it after its last item. After a clean rewrite, list the rewrite's\nfiles in the report so the user can tell them from their own edits. A\nrefused restore keeps the stash: report the SHA.\n\nRecommend one and say why. Never drop earlier stashes; the ledger cites\nthem by SHA.\n\n## Output contract\n\nWrite the report per `..\u002F..\u002Freferences\u002Fprose-rules.md`.\n\nThe first line of the reply is exactly the hero line: no lead-in sentence,\nno progress note sent while sub-agents ran, no first-person opener, no\n\"I recommend\". Print every SHA abbreviated to 7 characters. After the last section\nonly the panel or the default line follows: no table, no closing question\nin prose. Report results, not process: never narrate a\ndeparture from these steps or name the brief or the skill; do the step or\nhalt. State what happened, never what a contender or step did not do: no\n\"not hidden\", \"no user work was saved\", \"nothing was X\" restatements.\nWrite in the passive or the plain result, never \"I\" or \"the run\". Do not\ndescribe how the run was set up (answers unavailable, permissions,\nsandbox); a non-interactive default is one line: \"Default: keep the\nstashes.\" Do not print HEAD or the main checkout's SHA; SHAs belong to\nstashes. Use no transient wording (\"for now\", \"currently\"). Write only the\nsections below: a stray finding goes in the findings or open section, and\nprocess (an amended commit, a retry) is left out.\nWarnings about the checkout (mode changes, files left in place, a tree\nthat needs attention) go inside `## Stashes`, never before the first section.\n\n1. Hero block (1–3 lines): `✓ converged in \u003Cn> rounds` \u002F\n   `⚠ capped at \u003Cn> rounds` \u002F `⚠ thrashing, stopped at round \u003Cn>` +\n   the goal.\n\n   A run that halts before round 1 (no commit, repository rooted at\n   home, dirty tree declined, missing code or goal) is a\n   `⚠ ratchet halted` hero line, one result sentence naming every\n   blocker per `..\u002F..\u002Freferences\u002Fspike-core.md` (Halted run).\n2. `## Rounds`: one block per round: what was probed, what fought\n   back, bakeoff winner if any, what got locked.\n3. `## Design`: the locked decisions as a specification, not a history.\n4. `## Open`: questions the ratchet did not settle, and for a thrashing\n   stop, why spiking cannot settle them.\n5. `## Stashes`: one bullet per stash: round, stash message, SHA,\n   restore command. Every round appears (a round that changed nothing\n   shows \"no changes\"), and so does every contender a round's bakeoff\n   stashed; those stashes outlive the ratchet. A run that saved the\n   user's work adds a bullet for it and says whether it was restored.\n6. `## Next`: the recommended exit, and the landing plan when one was\n   produced.\n7. End with an `AskUserQuestion` panel: rewrite from the ledger \u002F land\n   the final stash \u002F run another round \u002F stop and keep the ledger,\n   unless already in plan mode or `--replay` was given. In a\n   non-interactive run, state the default taken (\"Default: stop, ledger\n   kept.\") instead of asking.\n\nA halted run replies in this shape:\n\n```text\n⚠ ratchet halted: converge on an async\u002Fawait port of the retry queue.\n\nBlocked: the repository has no commits.\nMake the initial commit yourself, then run \u002Fspike:ratchet again with the same goal.\n```\n\nReply in this shape, as plain text outside any code fence, with plain\nbullets and no bold (never `- **Round 1:** ...`), and no local paths:\n\n```text\n✓ converged in 3 rounds: port the sync worker to asyncio\n\n## Rounds\n- Round 1: probed a direct await conversion; the DB client blocks the loop.\n- Round 2: bakeoff of thread executor vs async driver; async driver won. Locked: async driver.\n- Round 3: no new stumbling blocks.\n\n## Design\n- Use the async driver behind a thin repository interface.\n- Cancellation propagates through the worker's task group.\n\n## Open\n- Whether the metrics exporter needs its own loop.\n\n## Stashes\n- Round 1: spike: asyncio port, round 1, 1d8e0b7, restore with git stash apply 1d8e0b7\n- Round 2: spike: asyncio port, round 2, 6c40a93, restore with git stash apply 6c40a93\n\n## Next\n- Recommended: clean rewrite from the ledger; the final stash still carries round 2's abandoned executor shim.\n```\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":33},[25,26,27,28,29,30,31,32],"Bash","Read","Grep","Glob","Edit","Write","AskUserQuestion","Agent","[\u003Cgoal>] [--rounds=\u003Cn>] [--replay]","main","5fbeb3b47beedea13813be7b7023f736a8d97a65","plugins\u002Fspike\u002Fskills\u002Fratchet","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":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add tony\u002Fskills --skill ratchet",{"tool":48,"command":49},"bunx","bunx skills add tony\u002Fskills --skill ratchet",{"tool":51,"command":52},"pnpm","pnpm dlx skills add tony\u002Fskills --skill ratchet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fspike\u002Fskills\u002Fratchet\u002FSKILL.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"agents\u002Fopenai.yaml","REFERENCE","参考文档",256,"https:\u002F\u002Fgithub.com\u002Ftony\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fspike\u002Fskills\u002Fratchet\u002Fagents\u002Fopenai.yaml",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"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":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"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",[],[]]