[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DVPVQES2M7XDE44TJHTA7C":3,"skill-same:01M6DVPVQES2M7XDE44TJHTA7C":65},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DVPVQES2M7XDE44TJHTA7C","next",null,"Checkpoint between two \u002Fgoal iterations — verify the finished iteration's Definition of Done, reconcile the plan with what actually changed in the codebase, verify the working tree is safe for a fresh session (in manual mode never stage — the tree is left intact for the developer's review; staging\u002Fcommitting is their job), confirm the next iteration is doable cold with no context loss, then print the exact ready-to-run \u002Fgoal handoff for it. Does not write code, stage, commit, clear context, or launch \u002Fgoal.","FabienSalles\u002Fclaude-marketplace","FabienSalles","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F937901?v=4","01M6DVJBD31CJKRB382FQFZ5FH","Fabien Salles","01M6DVJBQNY8Q18KJD1ESAD6TX",9,"MIT","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgoal\u002Fskills\u002Fnext\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"write","fresh","iteration","stage","done","goal","ready","never","session","review","plan","checkpoint","verify","code","run","commit","launch","definition of done","safe","2026-11-10 10:12:30",false,"---\nname: next\ndescription: Checkpoint between two \u002Fgoal iterations — verify the finished iteration's Definition of Done, reconcile the plan with what actually changed in the codebase, verify the working tree is safe for a fresh session (in manual mode never stage — the tree is left intact for the developer's review; staging\u002Fcommitting is their job), confirm the next iteration is doable cold with no context loss, then print the exact ready-to-run \u002Fgoal handoff for it. Does not write code, stage, commit, clear context, or launch \u002Fgoal.\n---\n\n## Portability\n\nThis skill degrades gracefully outside Claude Code:\n\n- Shared fallbacks: read `\u003Croot>\u002Fshared\u002Fportability.md`.\n- No `pbcopy` → print the content instead of copying it to the clipboard.\n\n## Host\n\n`\u003Croot>` is Claude Code's substituted `${CLAUDE_PLUGIN_ROOT}`. A host that leaves it literal\n(Copilot CLI) reads `\u003Croot>` as two levels above `Base directory for this skill:`.\nA host that injects no base-directory line and reads `SKILL.md` itself (Codex CLI) takes `\u003Croot>` as two levels\nabove that file's directory.\n`$ARGUMENTS` left literal is the text typed after the command (empty when none).\nUse `\u003Croot>` wherever a command below says `${CLAUDE_PLUGIN_ROOT}`.\n\nWhen `\u003Croot>\u002Fsrc\u002Fartifacts.ts` or a shared file this skill names is missing, print\n`cannot locate the goal plugin scripts`, the host, and the install commands, run nothing and write nothing:\n`copilot plugin marketplace add \u003Crepository>` then\n`copilot plugin install goal@fabien-claude-marketplace` under Copilot,\n`codex plugin marketplace add \u003Crepository>` then\n`codex plugin add goal@fabien-claude-marketplace` under Codex,\n`\u002Fplugin install goal@fabien-claude-marketplace` under Claude Code.\n\nThen read `\u003Croot>\u002Fshared\u002Fhost.md`.\n\n# \u002Fgoal:next — Iteration checkpoint + next-\u002Fgoal handoff\n\nYou are the **handoff between two `\u002Fgoal` iterations**. An iteration just ran in\nthis session; before the developer clears the context and starts the next one in\na **fresh session**, you guarantee three things and then hand off:\n\n1. the finished iteration **really is done** (re-run its checks, don't trust the box);\n2. the **plan on disk reflects reality** (every adjustment made while coding is in it);\n3. **nothing will be lost** across the clear (work committed, or left intact on disk and reported — in **manual** mode you never stage, that is the developer's review);\n\nthen you print the **exact `\u002Fgoal` prompt** for the next iteration.\n\nYou do **not** write production code, and you **cannot** clear the context or launch\n`\u002Fgoal` yourself — Claude Code has no way to self-clear or self-chain commands. Your\nfinal act is to print the next `\u002Fgoal` prompt for the developer to paste in a fresh\nsession.\n\n## Project artifact root\n\nBefore resolving the source, run the existing resolver from the installed goal plugin:\n\n```bash\nproject=\"$(git rev-parse --show-toplevel)\"\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fsrc\u002Fartifacts.ts\" \"$project\"\n```\n\nThen read `\u003Croot>\u002Fshared\u002Fartifact-root.md`.\n\nUse the effective value without asking for a location. If no value is supplied,\nuse the returned default; location selection belongs to `\u002Fgoal:spec`.\n\n## Resolve the plan\n\nPlan: `$ARGUMENTS`\n- A full path → use exactly it; fail clearly if missing or unreadable.\n- An identifier → resolve it as `\u003Croot>\u002Fshared\u002Fplan-argument.md` words it.\n- Empty → find it: the `\u003Cplans>\u002F*-spec.md` most recently modified, or the one\n  referenced by the active goal. Ambiguous (several candidates) → list them and ASK.\n  None → ask for the full path and wait.\n\nHosted in Copilot or Codex, a manual plan stops `\u002Fgoal:next`: say manual mode needs Claude Code's `\u002Fgoal`, and change nothing.\n\nRead the plan and locate:\n- **the finished iteration** = the last `[x]` before the first `[ ]`.\n  (No `[x]` at all → nothing has run yet: skip Phase 1, go straight to Phase 5 and\n  emit the iteration-1 handoff.)\n- **the next iteration** = the first `[ ]`.\n- **No `[ ]` left** → all iterations done: run the plan's **global** Definition of\n  Done, report completion and (per policy) the commit\u002FPR guidance, then STOP. There\n  is no next handoff to emit.\n\n## Phase 1 — Verify the finished iteration is actually done\n\nLaunch the **finished iteration's own acceptance commands** from the plan (its test\ncommand, lint\u002FQA) **in the background** — use Bash's `run_in_background`, since these\nare exactly the commands whose wall-clock a developer should never sit through twice.\nNever trust the `[x]` or memory; the replay's real output is what you show once it\njoins.\n\nOpen the verification with the iteration's **intent**: one line restating its *Goal* —\nwhat it was meant to make true, and for whom — and, for each command you replay, the\nbusiness rule it proves (the plan already maps rule → command; read the mapping back,\nnever invent it). A green command only means something attached to the rule it covers.\n\nWhile the replay runs in the background, move straight into **Phase 2**, then\n**Phase 4** — both only read the plan and the git history of already-finished work,\nnever the live tree the replay can still be writing into. **Join the replay before\nPhase 3 and Phase 5**: Phase 3 reports the working tree, and Phase 5 hands off the\nnext iteration — both would be reporting on a tree, or an outcome, that the\nstill-running replay had not finished settling. Collect its output, then continue as\nbelow.\n\nIf anything fails → **restore `[ ]` on that iteration in the plan, then STOP**. Report\nwhat failed: the iteration is not done, so there is nothing to hand off. The un-tick\nmatters because `\u002Fgoal` implements the next *unchecked* iteration: leaving `[x]` on a\nfailed slice makes the next run skip it and build on top of broken work. Fix it (or let\nthe developer) before re-running `\u002Fgoal:next`.\n\n## Phase 2 — Reconcile the plan with the codebase\n\nThe plan is the contract; any drift makes the next cold session act on lies. Verify\nand **edit the plan in place** so every statement is true:\n\n- **Files:** `git status` + `git diff --stat` — do the changed files match the\n  finished iteration's declared *Files to touch*? Renamed \u002F added \u002F removed files\n  mean the plan's list is stale or scope leaked. Update the list to reality, or flag\n  a genuine scope leak and ask.\n- **Claims:** scan the finished iteration's *Goal*, decisions and acceptance for\n  anything the code no longer backs (renamed file, changed approach, dropped\n  attribute\u002Ffield, a helper that moved). Grep the repo for each name the plan still\n  uses to confirm it exists. Correct every stale claim.\n- **Durable vs volatile:** a plan statement must stay true as long as the **iteration**\n  has not changed. If an event outside the iteration's scope can falsify it, it has no\n  place in the plan — delete it rather than update it.\n  - **Durable, record it:** the branch, the commit's **subject** (its conventional\n    message), which business rules are covered, which gates are green and which are red,\n    which files were touched, the decisions and trade-offs, the implementation traps.\n  - **Volatile, never record it as a plan claim:** the hash of a commit on the working\n    branch (upstream hashes already pushed stay citable — they are not rewritten), test\n    counts, assertion counts, coverage percentages, and test method names cited as proof\n    that a rule is covered. One rebase rewrites the hash; a commit from another feature\n    adding a test to the same file moves the counts; both have happened, and each left the\n    plan asserting something false about work nobody had touched.\n- **Ripple:** an adjustment in the finished iteration often invalidates *later*\n  iterations (a rename, a moved data source, a new island\u002Fformat). Propagate it into\n  iterations 2..N and the global DoD so they stay executable.\n\n- **Delivery:** if the plan carries a `## Delivery strategy` (or the iteration a\n  **Delivery** line), check the diff honoured it — the flag exists with the declared name\n  and defaults to off, an expand step added rather than replaced, nothing existing was\n  removed in a slice that was supposed to only add. A slice that quietly dropped the old\n  path took the rollback with it, and a checkpoint is the last cheap moment to notice.\n  Load `product:delivery` if the strategy needs re-deciding rather than just verifying.\n\nSummarize every edit you made to the plan.\n\n## Phase 3 — Account for the working tree (in manual mode, never stage)\n\nThe next iteration runs in a new session whose only durable memory is **the repo +\nthe plan**. This iteration's work must not be lost — but **how** the tree is made\nsafe depends on the commit policy, and in **manual** mode staging is the\n**developer's** job, not yours.\n\n- If the iteration was **committed** (policy `commit+pr`) → verify the tree is\n  clean. If it is not, the commit is incomplete: report it, don't paper over it.\n- Otherwise (**manual** — the default, nothing committed) → **do NOT stage. Never run\n  `git add`, `git reset`, or otherwise touch the index on your own initiative.**\n  Staging is the developer's review step: they alone decide what is OK and add it\n  manually. Your job is only to **verify and report**:\n  ```bash\n  git status --short      # report what is modified \u002F staged \u002F untracked\n  git diff --stat         # show the shape of the change\n  ```\n  Confirm nothing is lost (every piece of the iteration's work is present on disk —\n  staged or not), then **list plainly what remains for the developer to review and\n  stage manually**. The selected plan stays at its original path; Git ignore rules determine\n  whether it is tracked. Do not stage its update in manual mode.\n  - If a prior step (or you) already staged something in manual mode, follow `git:git`\n    §I (Manual mode (index)) — it is the sole owner of what may and may not touch the\n    index here.\n\nNothing is destroyed by leaving changes unstaged: they live in the working tree and\nthe plan lives on disk. In manual mode, safety = **work-on-disk + plan-on-disk + a\nclear report**, not a staged index.\n\nThe commit **policy comes from the plan \u002F the original `\u002Fgoal` handoff, not from you**\n— if you cannot determine it, **assume manual** (the safe default: verify and report,\nnever stage), and note which policy you assumed.\n\n## Phase 4 — Confirm the next iteration is doable cold\n\nRead the next `[ ]` iteration and confirm it is **fully self-contained** for a\ncontext-free start:\n- *Goal*, *Files to touch*, *Business rules covered*, and its `gate` block are all\n  present and concrete in the plan.\n- Nothing it needs exists **only in this conversation** — a decision, a value, a name\n  you introduced but never wrote into the plan or the code. If you find such a thing,\n  write it into the plan now.\n- Its `gate` commands run as-is (paths\u002Ftargets exist), and `test_files` + `impl_files`\n  still match what the slice really touches after the ripple you just reconciled.\n\nUnder-specified for a cold start → fix the plan (add the missing detail) before\nemitting the handoff; if it needs a human decision, say so and ASK.\n\n## Phase 5 — Pick the continuation, then emit it\n\nThe plan's `Policy:` decides how the rest of the work runs, and this is the moment to say\nso — a developer who chose `commit+pr` chose autonomy, and handing them a\nper-iteration prompt anyway makes them drive a loop they asked to be driven for them.\n\nRead `Policy:` from the spec header, then check the **remaining unchecked** iterations for\nany that cannot be gated: a missing `gate` block, a block with no `gate1`, or a **Not\nmachine-verifiable** line carrying the slice's core deliverable. `\u002Fgoal:supervise` halts on the\nfirst of these rather than run, so naming them now saves a run that would stop at iteration\none.\n\nRead `\u003Croot>\u002Fshared\u002Fhandoff.md` for the routing table and follow it.\n\n**Always pass the plan path explicitly** in the `\u002Fgoal:supervise` line. Bare `\u002Fgoal:supervise`\nresolves the most recently modified `*-spec.md`, which is whichever plan was last touched —\na follow-up tracks plan, a plan for another work-id. The path removes the guess.\n\nWhen you offer `\u002Fgoal:supervise`, state in one line what it will do: how many iterations remain,\nthat it halts hard on the first failing gate without attempting the rest, and — under\n`commit+pr` — that the first green iteration already pushes and opens a draft PR the rest\nkeep updating, so a halt is still reviewable. The developer is choosing to walk away; they\nshould know where it stops.\n\n**Under `commit+pr` with every remaining iteration gateable, do not build the per-iteration\n`\u002Fgoal` block and do not print it.** That is this phase's own opening rule applied: handing\nthem the prompt anyway makes them drive a loop they asked to be driven for them, and a\n3000-character block buries the one line they actually have to run. Nothing is lost by\nomitting it — this same phase emits it again the moment a remaining iteration stops being\ngateable, and on request at any time. Say that in one line, and stop there.\n\nIn the two rows that do call for it — `manual`, and `commit+pr` with a non-gateable\niteration — emit the canonical `\u002Fgoal` handoff from `templates\u002Fgoal-handoff.template`, filled\nper that file's **\"How to fill it\"** section: `\u003Cplan path>` = the resolved plan path,\n« Done » line 1 = the **next iteration's** acceptance test command, line 2 = the\nproject lint\u002FQA command, `\u003Cpolicy>` = the plan's policy verbatim, `\u003Cdelivery-mode>` =\nthe plan's `Delivery mode:` line verbatim. Fold the policy and delivery-mode blocks to\nthe single active branch of each. Respect its **≤ 4000-character hard limit**: write\nthe filled block to a file, run `wc -m \u003C \u003Cfile>`, compress and re-count while it\nexceeds 4000, and print the count with the block. **That file is only a counter** —\n`cat`-ing it in a tool call does not count as having shown the block, since tool output\ngoes to the model and not reliably to the developer. The filled block goes **in full into\nyour final message**, as one copy-paste block.\n\n**Under `manual`, offer the clipboard before printing**, as `\u003Croot>\u002Fshared\u002Fhandoff.md` words it.\n\n- **yes** (recommended) → `pbcopy \u003C \u003Cfile>` (macOS; `xclip -selection clipboard` or\n  `wl-copy` where `pbcopy` does not exist). The block is in the clipboard, so do **not**\n  print it again: emit the context-hygiene reminder alone — run `\u002Fcontext`, `\u002Fclear` if\n  usage is non-trivial, then paste from the clipboard — and name the counter file, the\n  recovery copy if the clipboard is overwritten before the paste.\n- **no**, or the policy is `commit+pr` with a non-gateable iteration → print it: prepend the context-hygiene reminder\n  (you cannot run these — the developer does), then the filled template as **one\n  copy-paste block**:\n\n```text\n# In THIS session first: run \u002Fcontext; if usage is non-trivial, run \u002Fclear.\n# Then paste the following into the fresh session:\n\n\u003Cfilled templates\u002Fgoal-handoff.template>\n```\n\nExpand the placeholder: what you print is the filled text itself, never a reference to it\nnor a path to the file you measured. The clipboard branch is the one exception: there the\npaste buffer carries the block, and the file is named only for recovery.\n\n**When no unchecked iteration remains**, there is no handoff to emit and the plan is done.\nEmit the checklist from `templates\u002Fpost-merge.template` instead, filled per that file's\n**\"How to fill it\"** section, and say plainly which of its lines are already true. Under\n`commit+pr` the PR still has to be merged by the developer, so the checklist describes what\nthat merge will leave behind; under `manual` the same leftovers exist minus the remote\nbranch. This is the only moment the workflow reaches the end of a plan, so it is the only\nplace the leftovers can be named before the context is gone.\n\nThen close, métier first: one line on what the finished iteration **made true** for the\ndomain (its *Goal*, the business rules it covered), one on what the next iteration\n**will make true**. Only then the bookkeeping: the finished iteration is **verified**\n(name it), the plan is **reconciled** (list the edits you made), the tree is **safe**\n(clean \u002F staged — say which), and the next iteration is **cold-start ready** — run the\n`\u002Fgoal:supervise` line when that is what you emitted, otherwise clear and paste the\nblock above or from the clipboard.\n\n## Rules for THIS command\n\n- **No production code.** This is a checkpoint, not an implementation step.\n- **Lead with the business intent.** Every synthesis this command prints opens with\n  what the iteration makes true for the domain — its *Goal*, the rules it serves —\n  before any command output or tree state. A close that says only \"commands green,\n  tree clean\" has buried the point.\n- **Never trust the checkbox** — re-run the finished iteration's acceptance commands\n  and show the output.\n- **The plan must equal reality** before you emit the handoff: every claim true,\n  every changed file accounted for, ripple propagated to later iterations.\n- **In manual mode, never stage** — `\u002Fgoal:next` only **verifies and reports** the working\n  tree; `git add`\u002F`git reset`\u002Fcommitting is the developer's review job. A clean tree\n  is expected only under `commit+pr` (where the iteration was committed). Never\n  auto-stage to \"make it safe\": safety in manual mode is work-on-disk + plan-on-disk.\n- **You cannot self-clear or self-launch** — the final output is a prompt the\n  developer runs in a fresh session; do not pretend to have cleared or continued.\n- **Policy comes from the plan \u002F handoff, not you** — if undiscoverable, **assume\n  manual** and just verify\u002Freport; do not stage to \"stay safe\".\n","## Portability\n\nThis skill degrades gracefully outside Claude Code:\n\n- Shared fallbacks: read `\u003Croot>\u002Fshared\u002Fportability.md`.\n- No `pbcopy` → print the content instead of copying it to the clipboard.\n\n## Host\n\n`\u003Croot>` is Claude Code's substituted `${CLAUDE_PLUGIN_ROOT}`. A host that leaves it literal\n(Copilot CLI) reads `\u003Croot>` as two levels above `Base directory for this skill:`.\nA host that injects no base-directory line and reads `SKILL.md` itself (Codex CLI) takes `\u003Croot>` as two levels\nabove that file's directory.\n`$ARGUMENTS` left literal is the text typed after the command (empty when none).\nUse `\u003Croot>` wherever a command below says `${CLAUDE_PLUGIN_ROOT}`.\n\nWhen `\u003Croot>\u002Fsrc\u002Fartifacts.ts` or a shared file this skill names is missing, print\n`cannot locate the goal plugin scripts`, the host, and the install commands, run nothing and write nothing:\n`copilot plugin marketplace add \u003Crepository>` then\n`copilot plugin install goal@fabien-claude-marketplace` under Copilot,\n`codex plugin marketplace add \u003Crepository>` then\n`codex plugin add goal@fabien-claude-marketplace` under Codex,\n`\u002Fplugin install goal@fabien-claude-marketplace` under Claude Code.\n\nThen read `\u003Croot>\u002Fshared\u002Fhost.md`.\n\n# \u002Fgoal:next — Iteration checkpoint + next-\u002Fgoal handoff\n\nYou are the **handoff between two `\u002Fgoal` iterations**. An iteration just ran in\nthis session; before the developer clears the context and starts the next one in\na **fresh session**, you guarantee three things and then hand off:\n\n1. the finished iteration **really is done** (re-run its checks, don't trust the box);\n2. the **plan on disk reflects reality** (every adjustment made while coding is in it);\n3. **nothing will be lost** across the clear (work committed, or left intact on disk and reported — in **manual** mode you never stage, that is the developer's review);\n\nthen you print the **exact `\u002Fgoal` prompt** for the next iteration.\n\nYou do **not** write production code, and you **cannot** clear the context or launch\n`\u002Fgoal` yourself — Claude Code has no way to self-clear or self-chain commands. Your\nfinal act is to print the next `\u002Fgoal` prompt for the developer to paste in a fresh\nsession.\n\n## Project artifact root\n\nBefore resolving the source, run the existing resolver from the installed goal plugin:\n\n```bash\nproject=\"$(git rev-parse --show-toplevel)\"\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fsrc\u002Fartifacts.ts\" \"$project\"\n```\n\nThen read `\u003Croot>\u002Fshared\u002Fartifact-root.md`.\n\nUse the effective value without asking for a location. If no value is supplied,\nuse the returned default; location selection belongs to `\u002Fgoal:spec`.\n\n## Resolve the plan\n\nPlan: `$ARGUMENTS`\n- A full path → use exactly it; fail clearly if missing or unreadable.\n- An identifier → resolve it as `\u003Croot>\u002Fshared\u002Fplan-argument.md` words it.\n- Empty → find it: the `\u003Cplans>\u002F*-spec.md` most recently modified, or the one\n  referenced by the active goal. Ambiguous (several candidates) → list them and ASK.\n  None → ask for the full path and wait.\n\nHosted in Copilot or Codex, a manual plan stops `\u002Fgoal:next`: say manual mode needs Claude Code's `\u002Fgoal`, and change nothing.\n\nRead the plan and locate:\n- **the finished iteration** = the last `[x]` before the first `[ ]`.\n  (No `[x]` at all → nothing has run yet: skip Phase 1, go straight to Phase 5 and\n  emit the iteration-1 handoff.)\n- **the next iteration** = the first `[ ]`.\n- **No `[ ]` left** → all iterations done: run the plan's **global** Definition of\n  Done, report completion and (per policy) the commit\u002FPR guidance, then STOP. There\n  is no next handoff to emit.\n\n## Phase 1 — Verify the finished iteration is actually done\n\nLaunch the **finished iteration's own acceptance commands** from the plan (its test\ncommand, lint\u002FQA) **in the background** — use Bash's `run_in_background`, since these\nare exactly the commands whose wall-clock a developer should never sit through twice.\nNever trust the `[x]` or memory; the replay's real output is what you show once it\njoins.\n\nOpen the verification with the iteration's **intent**: one line restating its *Goal* —\nwhat it was meant to make true, and for whom — and, for each command you replay, the\nbusiness rule it proves (the plan already maps rule → command; read the mapping back,\nnever invent it). A green command only means something attached to the rule it covers.\n\nWhile the replay runs in the background, move straight into **Phase 2**, then\n**Phase 4** — both only read the plan and the git history of already-finished work,\nnever the live tree the replay can still be writing into. **Join the replay before\nPhase 3 and Phase 5**: Phase 3 reports the working tree, and Phase 5 hands off the\nnext iteration — both would be reporting on a tree, or an outcome, that the\nstill-running replay had not finished settling. Collect its output, then continue as\nbelow.\n\nIf anything fails → **restore `[ ]` on that iteration in the plan, then STOP**. Report\nwhat failed: the iteration is not done, so there is nothing to hand off. The un-tick\nmatters because `\u002Fgoal` implements the next *unchecked* iteration: leaving `[x]` on a\nfailed slice makes the next run skip it and build on top of broken work. Fix it (or let\nthe developer) before re-running `\u002Fgoal:next`.\n\n## Phase 2 — Reconcile the plan with the codebase\n\nThe plan is the contract; any drift makes the next cold session act on lies. Verify\nand **edit the plan in place** so every statement is true:\n\n- **Files:** `git status` + `git diff --stat` — do the changed files match the\n  finished iteration's declared *Files to touch*? Renamed \u002F added \u002F removed files\n  mean the plan's list is stale or scope leaked. Update the list to reality, or flag\n  a genuine scope leak and ask.\n- **Claims:** scan the finished iteration's *Goal*, decisions and acceptance for\n  anything the code no longer backs (renamed file, changed approach, dropped\n  attribute\u002Ffield, a helper that moved). Grep the repo for each name the plan still\n  uses to confirm it exists. Correct every stale claim.\n- **Durable vs volatile:** a plan statement must stay true as long as the **iteration**\n  has not changed. If an event outside the iteration's scope can falsify it, it has no\n  place in the plan — delete it rather than update it.\n  - **Durable, record it:** the branch, the commit's **subject** (its conventional\n    message), which business rules are covered, which gates are green and which are red,\n    which files were touched, the decisions and trade-offs, the implementation traps.\n  - **Volatile, never record it as a plan claim:** the hash of a commit on the working\n    branch (upstream hashes already pushed stay citable — they are not rewritten), test\n    counts, assertion counts, coverage percentages, and test method names cited as proof\n    that a rule is covered. One rebase rewrites the hash; a commit from another feature\n    adding a test to the same file moves the counts; both have happened, and each left the\n    plan asserting something false about work nobody had touched.\n- **Ripple:** an adjustment in the finished iteration often invalidates *later*\n  iterations (a rename, a moved data source, a new island\u002Fformat). Propagate it into\n  iterations 2..N and the global DoD so they stay executable.\n\n- **Delivery:** if the plan carries a `## Delivery strategy` (or the iteration a\n  **Delivery** line), check the diff honoured it — the flag exists with the declared name\n  and defaults to off, an expand step added rather than replaced, nothing existing was\n  removed in a slice that was supposed to only add. A slice that quietly dropped the old\n  path took the rollback with it, and a checkpoint is the last cheap moment to notice.\n  Load `product:delivery` if the strategy needs re-deciding rather than just verifying.\n\nSummarize every edit you made to the plan.\n\n## Phase 3 — Account for the working tree (in manual mode, never stage)\n\nThe next iteration runs in a new session whose only durable memory is **the repo +\nthe plan**. This iteration's work must not be lost — but **how** the tree is made\nsafe depends on the commit policy, and in **manual** mode staging is the\n**developer's** job, not yours.\n\n- If the iteration was **committed** (policy `commit+pr`) → verify the tree is\n  clean. If it is not, the commit is incomplete: report it, don't paper over it.\n- Otherwise (**manual** — the default, nothing committed) → **do NOT stage. Never run\n  `git add`, `git reset`, or otherwise touch the index on your own initiative.**\n  Staging is the developer's review step: they alone decide what is OK and add it\n  manually. Your job is only to **verify and report**:\n  ```bash\n  git status --short      # report what is modified \u002F staged \u002F untracked\n  git diff --stat         # show the shape of the change\n  ```\n  Confirm nothing is lost (every piece of the iteration's work is present on disk —\n  staged or not), then **list plainly what remains for the developer to review and\n  stage manually**. The selected plan stays at its original path; Git ignore rules determine\n  whether it is tracked. Do not stage its update in manual mode.\n  - If a prior step (or you) already staged something in manual mode, follow `git:git`\n    §I (Manual mode (index)) — it is the sole owner of what may and may not touch the\n    index here.\n\nNothing is destroyed by leaving changes unstaged: they live in the working tree and\nthe plan lives on disk. In manual mode, safety = **work-on-disk + plan-on-disk + a\nclear report**, not a staged index.\n\nThe commit **policy comes from the plan \u002F the original `\u002Fgoal` handoff, not from you**\n— if you cannot determine it, **assume manual** (the safe default: verify and report,\nnever stage), and note which policy you assumed.\n\n## Phase 4 — Confirm the next iteration is doable cold\n\nRead the next `[ ]` iteration and confirm it is **fully self-contained** for a\ncontext-free start:\n- *Goal*, *Files to touch*, *Business rules covered*, and its `gate` block are all\n  present and concrete in the plan.\n- Nothing it needs exists **only in this conversation** — a decision, a value, a name\n  you introduced but never wrote into the plan or the code. If you find such a thing,\n  write it into the plan now.\n- Its `gate` commands run as-is (paths\u002Ftargets exist), and `test_files` + `impl_files`\n  still match what the slice really touches after the ripple you just reconciled.\n\nUnder-specified for a cold start → fix the plan (add the missing detail) before\nemitting the handoff; if it needs a human decision, say so and ASK.\n\n## Phase 5 — Pick the continuation, then emit it\n\nThe plan's `Policy:` decides how the rest of the work runs, and this is the moment to say\nso — a developer who chose `commit+pr` chose autonomy, and handing them a\nper-iteration prompt anyway makes them drive a loop they asked to be driven for them.\n\nRead `Policy:` from the spec header, then check the **remaining unchecked** iterations for\nany that cannot be gated: a missing `gate` block, a block with no `gate1`, or a **Not\nmachine-verifiable** line carrying the slice's core deliverable. `\u002Fgoal:supervise` halts on the\nfirst of these rather than run, so naming them now saves a run that would stop at iteration\none.\n\nRead `\u003Croot>\u002Fshared\u002Fhandoff.md` for the routing table and follow it.\n\n**Always pass the plan path explicitly** in the `\u002Fgoal:supervise` line. Bare `\u002Fgoal:supervise`\nresolves the most recently modified `*-spec.md`, which is whichever plan was last touched —\na follow-up tracks plan, a plan for another work-id. The path removes the guess.\n\nWhen you offer `\u002Fgoal:supervise`, state in one line what it will do: how many iterations remain,\nthat it halts hard on the first failing gate without attempting the rest, and — under\n`commit+pr` — that the first green iteration already pushes and opens a draft PR the rest\nkeep updating, so a halt is still reviewable. The developer is choosing to walk away; they\nshould know where it stops.\n\n**Under `commit+pr` with every remaining iteration gateable, do not build the per-iteration\n`\u002Fgoal` block and do not print it.** That is this phase's own opening rule applied: handing\nthem the prompt anyway makes them drive a loop they asked to be driven for them, and a\n3000-character block buries the one line they actually have to run. Nothing is lost by\nomitting it — this same phase emits it again the moment a remaining iteration stops being\ngateable, and on request at any time. Say that in one line, and stop there.\n\nIn the two rows that do call for it — `manual`, and `commit+pr` with a non-gateable\niteration — emit the canonical `\u002Fgoal` handoff from `templates\u002Fgoal-handoff.template`, filled\nper that file's **\"How to fill it\"** section: `\u003Cplan path>` = the resolved plan path,\n« Done » line 1 = the **next iteration's** acceptance test command, line 2 = the\nproject lint\u002FQA command, `\u003Cpolicy>` = the plan's policy verbatim, `\u003Cdelivery-mode>` =\nthe plan's `Delivery mode:` line verbatim. Fold the policy and delivery-mode blocks to\nthe single active branch of each. Respect its **≤ 4000-character hard limit**: write\nthe filled block to a file, run `wc -m \u003C \u003Cfile>`, compress and re-count while it\nexceeds 4000, and print the count with the block. **That file is only a counter** —\n`cat`-ing it in a tool call does not count as having shown the block, since tool output\ngoes to the model and not reliably to the developer. The filled block goes **in full into\nyour final message**, as one copy-paste block.\n\n**Under `manual`, offer the clipboard before printing**, as `\u003Croot>\u002Fshared\u002Fhandoff.md` words it.\n\n- **yes** (recommended) → `pbcopy \u003C \u003Cfile>` (macOS; `xclip -selection clipboard` or\n  `wl-copy` where `pbcopy` does not exist). The block is in the clipboard, so do **not**\n  print it again: emit the context-hygiene reminder alone — run `\u002Fcontext`, `\u002Fclear` if\n  usage is non-trivial, then paste from the clipboard — and name the counter file, the\n  recovery copy if the clipboard is overwritten before the paste.\n- **no**, or the policy is `commit+pr` with a non-gateable iteration → print it: prepend the context-hygiene reminder\n  (you cannot run these — the developer does), then the filled template as **one\n  copy-paste block**:\n\n```text\n# In THIS session first: run \u002Fcontext; if usage is non-trivial, run \u002Fclear.\n# Then paste the following into the fresh session:\n\n\u003Cfilled templates\u002Fgoal-handoff.template>\n```\n\nExpand the placeholder: what you print is the filled text itself, never a reference to it\nnor a path to the file you measured. The clipboard branch is the one exception: there the\npaste buffer carries the block, and the file is named only for recovery.\n\n**When no unchecked iteration remains**, there is no handoff to emit and the plan is done.\nEmit the checklist from `templates\u002Fpost-merge.template` instead, filled per that file's\n**\"How to fill it\"** section, and say plainly which of its lines are already true. Under\n`commit+pr` the PR still has to be merged by the developer, so the checklist describes what\nthat merge will leave behind; under `manual` the same leftovers exist minus the remote\nbranch. This is the only moment the workflow reaches the end of a plan, so it is the only\nplace the leftovers can be named before the context is gone.\n\nThen close, métier first: one line on what the finished iteration **made true** for the\ndomain (its *Goal*, the business rules it covered), one on what the next iteration\n**will make true**. Only then the bookkeeping: the finished iteration is **verified**\n(name it), the plan is **reconciled** (list the edits you made), the tree is **safe**\n(clean \u002F staged — say which), and the next iteration is **cold-start ready** — run the\n`\u002Fgoal:supervise` line when that is what you emitted, otherwise clear and paste the\nblock above or from the clipboard.\n\n## Rules for THIS command\n\n- **No production code.** This is a checkpoint, not an implementation step.\n- **Lead with the business intent.** Every synthesis this command prints opens with\n  what the iteration makes true for the domain — its *Goal*, the rules it serves —\n  before any command output or tree state. A close that says only \"commands green,\n  tree clean\" has buried the point.\n- **Never trust the checkbox** — re-run the finished iteration's acceptance commands\n  and show the output.\n- **The plan must equal reality** before you emit the handoff: every claim true,\n  every changed file accounted for, ripple propagated to later iterations.\n- **In manual mode, never stage** — `\u002Fgoal:next` only **verifies and reports** the working\n  tree; `git add`\u002F`git reset`\u002Fcommitting is the developer's review job. A clean tree\n  is expected only under `commit+pr` (where the iteration was committed). Never\n  auto-stage to \"make it safe\": safety in manual mode is work-on-disk + plan-on-disk.\n- **You cannot self-clear or self-launch** — the final output is a prompt the\n  developer runs in a fresh session; do not pretend to have cleared or continued.\n- **Policy comes from the plan \u002F handoff, not you** — if undiscoverable, **assume\n  manual** and just verify\u002Freport; do not stage to \"stay safe\".\n",{"name":5,"description":7},"main","479b264ec17cc5fafbf36287a1087472d3a386d3","plugins\u002Fgoal\u002Fskills\u002Fnext",2,"https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace","https:\u002F\u002Fgithub.com\u002FFabienSalles","https:\u002F\u002Ffabiensalles.com","2026-10-13 04:33:22",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add FabienSalles\u002Fclaude-marketplace --skill next",{"tool":57,"command":58},"bunx","bunx skills add FabienSalles\u002Fclaude-marketplace --skill next",{"tool":60,"command":61},"pnpm","pnpm dlx skills add FabienSalles\u002Fclaude-marketplace --skill next","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgoal\u002Fskills\u002Fnext\u002FSKILL.md",true,[],[66,93,109,129,151,168],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6DW2YS1MGF65JNS1QQ15QHS","vitest-test-conventions","ACTIVATE when writing Vitest tests, creating test files, using vi.fn()\u002Fvi.mock()\u002Fvi.spyOn(), or test factories. ACTIVATE for 'Vitest', 'it.each', 'NestJS testing module', 'supertest', 'vi.fn', 'vi.mock', 'spyOn'. Provides Vitest\u002FNestJS-specific testing patterns; cross-language testing principles (DAMP, AAA, spy over mock, what NOT to test) live in craft:testing-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), TDD workflow\u002Fiterations (see vitest:vitest-tdd-workflow), PHP\u002FPHPUnit tests (see phpunit:php-test-conventions).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvitest\u002Fskills\u002Fvitest-test-conventions\u002FSKILL.md",[],[73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],"test","vitest","conventions","vitest test conventions","testing","writing","tdd","workflow","file","testing patterns","use","files","nestjs","activate","do","project","tests","module","fn","testing principles",{"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":38},"01M6DW2VFE6NPFCGQKQ68P1MVZ","vitest-tdd-workflow","ACTIVATE when building new features, endpoints, or user stories using TDD with Vitest in a TypeScript\u002FNestJS context. ACTIVATE for '\u002Ffeature-tdd-dev', 'TDD', 'red-green-refactor' in TS context. Provides Vitest\u002FNestJS-specific TDD examples and commands; cross-language TDD workflow (cross-layer iterations, RED-GREEN-REFACTOR, working app, bug-fix-first-test, mocks-hiding-bugs) lives in craft:tdd-workflow-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), test writing conventions (see vitest:vitest-test-conventions), PHP TDD (see phpunit:php-tdd-workflow).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvitest\u002Fskills\u002Fvitest-tdd-workflow\u002FSKILL.md",[],[79,80,100,74,101,78,102,81,103,104,83,105,84,86,87,106,88,89,107,108],"tdd workflow","vitest tdd workflow","dev","examples","fix","red-green-refactor","green","feature","app",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":38},"01M6DW2RGMQE10D8C5Z5MA2RMY","ts-refactoring","ACTIVATE when refactoring TypeScript code. ACTIVATE for 'refactor', 'extract', 'redesign', 'simplify', or 'clean up' in a TypeScript \u002F Node \u002F NestJS context. This skill provides TS-specific examples for the cross-language refactoring rules defined in craft:refactoring-principles. DO NOT use for: writing new features from scratch, general OOP patterns (see ts-oop).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-refactoring\u002FSKILL.md",[],[116,117,78,118,32,103,119,120,121,122,123,83,124,125,126,85,127,86,87,128],"refactoring","ts refactoring","typescript","refactor","simplify","Rules","node","redesign","up","general","clean","craft","patterns",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":38},"01M6DW2MHYXNBBVYEGB058Y48J","ts-ports-adapters","ACTIVATE when a TypeScript codebase with no dependency-injection container has to declare a port and wire its adapter — a repository, a clock, an id generator, an event dispatcher the domain depends on. ACTIVATE for 'port', 'adapter', 'SPI', 'dependency inversion' or 'composition root' in a codebase that wires its dependencies by hand. Covers: the port as a type of functions in the domain layer, the adapter as an object literal annotated with it, the handler that takes its dependencies first and its data second, the composition root in the infrastructure layer, and the in-memory stub that substitutes for the adapter in a unit test. DO NOT use for: NestJS, or any container-based DI with decorators and tokens (see nest-ddd-conventions), aggregate operations and smart constructors (see ddd-ts-fp), the Result type itself (see ts-functional).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-ports-adapters\u002FSKILL.md",[],[136,137,138,73,139,140,83,141,142,85,143,86,87,144,145,146,147,148,149,150],"ports","ts ports adapters","memory","ddd","Composition","container","functions","Literal","dependency-injection","domain","tokens","as","type","id","adapter",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":38},"01M6DW2GRXZFYT05HEDB26C9B8","ts-oop","ACTIVATE when designing TypeScript classes, and the value objects or collections modelled as classes, or when the user asks about object design, encapsulation, Tell Don't Ask, or Symbol.iterator. Provides TS-specific examples for the cross-language OOP rules defined in craft:oop-principles, plus TS-specific patterns (Symbol.iterator, branded types for primitive identifiers). DO NOT use for: a value object or an aggregate modelled as an immutable record rather than a class (see ddd-ts-fp), refactoring methodology (see ts-refactoring).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-oop\u002FSKILL.md",[],[158,159,160,118,139,103,161,162,116,121,163,83,164,127,86,87,165,166,167,147],"oop","ts oop","design","methodology","immutable","ask","refactoring methodology","objects","record","collections",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":38},"01M6DW2D26XG5MJMTP9MSE43S2","ts-layer-boundaries","ACTIVATE when wiring a Worker entry point, a Router, a controller, or a domain event consumer in a TypeScript CQRS codebase, or when deciding where a port belongs. ACTIVATE for 'composition root', 'layer boundary', 'ESLint zones', 'domain must not import infrastructure'. Covers: the *Worker.ts composition root, the curried consumer, Router wiring of command endpoints, the five-gesture controller, the domain-to-infrastructure import boundary enforced by ESLint, infrastructure-only ports, in-memory doubles for every port, the read-can-reach-write asymmetry, and read endpoints going through a domain handler. DO NOT use for: the port's own shape and adapter binding (see ts-ports-adapters), the Result type (see ts-functional), domain event structure (see ts-ddd-events).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-layer-boundaries\u002FSKILL.md",[],[175,138,139,176,177,140,136,83,178,179,180,86,87,181,145,182,183,148,150,184],"ts layer boundaries","controller","boundary","router","only","endpoints","structure","cqrs","worker","import"]