[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75B34FRNZAVP9VBZ995SFQK":3,"skill-same:01M75B34FRNZAVP9VBZ995SFQK":88},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75B34FRNZAVP9VBZ995SFQK","staged-plan",null,"Design a self-contained multi-stage plan whose markdown is the operational contract — every execution detail (Execution model, Hand-off conventions, retry rule, working-tree policy, reviewer gate, pre-execution placeholder gate) is encoded in the plan file itself. This is a PLANNING skill — it produces a plan and stops. Use when the user wants to design, scaffold, or decompose work into a staged subagent track. Typical invocations - \"design a staged plan\", \"decompose this into stages\", \"scaffold a multi-stage plan\", \"plan in stages\", \"create a staged execution plan\". Do NOT invoke during Phase 2 execution — the plan markdown is self-sufficient and re-invoking the skill is redundant.","paulocorcino\u002Fralphy","paulocorcino","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7800501?v=4","01M71RWC6WC6HZSF65DC2DRCSA","Paulo Corcino","01M75B1D23HRFZ43GWSV11C37W",6,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: staged-plan\ndescription: Design a self-contained multi-stage plan whose markdown is the operational contract — every execution detail (Execution model, Hand-off conventions, retry rule, working-tree policy, reviewer gate, pre-execution placeholder gate) is encoded in the plan file itself. This is a PLANNING skill — it produces a plan and stops. Use when the user wants to design, scaffold, or decompose work into a staged subagent track. Typical invocations - \"design a staged plan\", \"decompose this into stages\", \"scaffold a multi-stage plan\", \"plan in stages\", \"create a staged execution plan\". Do NOT invoke during Phase 2 execution — the plan markdown is self-sufficient and re-invoking the skill is redundant.\n---\n\n# Staged Plan\n\nA pattern for executing large tracks as a chain of autonomous subagents, each in its own fresh context window, with the parent gating green-to-green. The plan markdown is **the operational contract** — anyone (or any executor) opening it cold should be able to run it correctly.\n\n## Skill scope — planning only\n\nThis skill produces a plan. It does **not** execute code changes, run stages, or modify source files. Even when invoked outside plan mode, behave as a planner: investigate the codebase (read-only), design stages, run the scaffold, fill the markdown, optionally make the Phase 1.5 landing commit (plan + verify scripts + `.gitignore` rule only — no feature work). Stop there. Phase 2 is driven by the plan markdown, not by re-invoking this skill.\n\nIf the user asks to \"execute the plan\" or \"run Stage N\" while this skill is active, the answer is: the plan file already contains the Execution model and hand-off prompts needed; the user (or another agent) follows the plan directly. Do not start launching subagents from inside this skill.\n\n## Pattern taxonomy\n\nThis is **prompt chaining with sectioning + gate checks** in Anthropic's effective-agents taxonomy — NOT orchestrator-workers. Subtasks are pre-planned, run strictly sequentially, and each gate must pass before advancing. Choose this when the decomposition is knowable at plan time (typical for coding tracks). Cost scales roughly linearly with stage count; justified when a single session can't carry the track or contextual isolation between stages materially improves quality.\n\n## When this applies\n\n- User asks to **design** a staged plan, **decompose** a track into subagent stages, or **scaffold** a multi-stage execution plan\n- A track is too large for one session but splits cleanly into 3-7 independent deliverables\n- Each stage benefits from contextual isolation\n- The user has pre-authorized commits (or wants gated commits between stages)\n\n## When NOT to use\n\n- Track fits comfortably in one session — execute inline\n- Subtask shape is unknowable until runtime — use orchestrator-workers\n- No meaningful gates between steps — the green-to-green audit is the main value\n- **Phase 2 (execution) is already underway** — the plan markdown is the contract; do NOT re-invoke this skill to \"remember\" how to launch stages, verify green, or apply retries. Read the plan's `## Execution model` block instead.\n\n## Workflow (overview)\n\n| Phase | Owner | What happens |\n|---|---|---|\n| 1. Plan design | Planner | Read every Critical file end-to-end → run `scaffold.py` → fill `\u003CFILL>` placeholders via `Edit` |\n| 1.5. Plan landing commit | Planner | Commit plan + `_verify.py` + verify scripts + `.gitignore` rule |\n| 2. Execution | Parent + subagents | Pre-execution gate, launch stages, verify green, retry, end-to-end + reviewer |\n\nDetailed Phase 1.5 + Phase 2 mechanics: see `references\u002Fexecution.md`.\n\n## Phase 1 — Plan design\n\n**Investigation discipline (mandatory before designing stages):** read every file that will appear in the cross-stage `## Critical files` index **end-to-end**, not just grep snippets. Plans built from excerpts produce stages with stale line numbers, missed callers, and hidden dependencies. If a file is too large to read fully, that's a signal the stage decomposition is wrong — split further.\n\n**Symbol-fallout scan (mandatory when the plan removes, renames, or changes the signature of any exported symbol):** for each such symbol, run `grep -rn '\u003Csymbol>' \u003Crepo>` (or equivalent). Every hit outside the file declaring the symbol is a call-site that MUST appear in the scope of some stage — either patched, or explicitly deferred with a `\u002F\u002F TODO(slice-N)` shim. If you cannot enumerate the call-sites at plan time, the decomposition is incomplete; do not scaffold yet. The backlog specifies *intent*, not *fallout* — back it with an explicit grep.\n\nAfter investigation, decide the defaults below (slug, title, stage list, working-tree policy, reviewer recommendation, report policy). Then **stop and gate** before any file write (see *Pre-scaffold approval gate* below). On approval, run `scaffold.py` (Bash) to write the plan file at `\u003Crepo-root>\u002Fdocs\u002Fplans\u002F\u003Cslug>.md`, and use `Edit` to replace each `\u003CFILL: ...>` and resolve each `\u003CFILL-OR-DELETE: ...>` block. Never hand-write the plan markdown — the scaffold renders ~60% of the boilerplate deterministically and is the only path that respects the location guard.\n\n### Pre-scaffold approval gate (mandatory, both modes)\n\nPhase 1 investigation is **read-only by contract**. No `Write`, `Edit`, `scaffold.py`, or any file-creating Bash until the user has explicitly approved the materialization. This in-skill gate exists so the skill behaves the same whether or not the harness's plan mode is active — it does not rely on plan mode to prevent premature writes.\n\nWhen investigation is complete, present a short summary (slug, title, stage list, mode, working-tree, reviewer + reason, report-policy) and request approval. **Pick exactly one gate based on context — never call more than one:**\n\n- **Inside plan mode** (detection: the `ExitPlanMode` tool is available in your tool list): call `ExitPlanMode` with the summary. The harness's approval doubles as the gate. On approval, plan mode exits and `scaffold.py` can run. Do NOT dump a hand-written plan markdown into `ExitPlanMode` — the summary is a few lines; scaffold renders the full plan. Do NOT additionally call `AskUserQuestion` — that is double-prompting.\n- **Outside plan mode, interactive** (detection: `ExitPlanMode` is NOT in your tool list AND `STAGED_PLAN_NONINTERACTIVE` is unset or not `1` — check via `Bash`: `echo \"${STAGED_PLAN_NONINTERACTIVE:-0}\"`): call `AskUserQuestion` with the summary and options `[scaffold \u002F adjust \u002F cancel]`. On `scaffold`, proceed; on `adjust`, revise and re-gate; on `cancel`, stop. Do NOT skip this step \"because the plan looks obvious\" — the gate is the user's only checkpoint before the landing commit.\n- **Non-interactive** (detection: `STAGED_PLAN_NONINTERACTIVE=1` in env, set explicitly by the calling harness; e.g. `backlog-claude-runner` invoking the skill via `claude -p`): there is no human to prompt and `AskUserQuestion` would hang. Instead, emit the summary as a single delimited block to stdout BEFORE running `scaffold.py`, then proceed directly to scaffold + fill. The calling harness captures the block for post-hoc review. Emit exactly:\n\n  ```\n  \u003C\u003CPRE_SCAFFOLD_SUMMARY>>\n  slug: \u003Cplan-slug>\n  title: \u003Cplan title>\n  stages:\n    - \u003CStage 1 title>\n    - \u003CStage 2 title>\n    - ...\n  mode: autonomous\n  working-tree: \u003Cclean-required|...>\n  reviewer: \u003Cnone|light|deep>  reason: \u003Creason or \"—\">\n  report-policy: \u003Ccommitted|gitignored>\n  output: \u003Cabsolute path of plan file>\n  \u003C\u003CEND>>\n  ```\n\n  This mode trusts the upstream prompt to have pre-specified the work. It MUST NOT be entered opportunistically (e.g. \"the agent thinks no human is watching\") — only when the env var is set explicitly by the caller. If the env var is unset and no plan-mode tool is available, fall back to `AskUserQuestion` and do not write anything.\n\nThe rule is identical in all three cases: **no file writes in Phase 1 until either the user approves (interactive paths) or the harness has set `STAGED_PLAN_NONINTERACTIVE=1` and the summary block has been emitted (non-interactive path).**\n\n### Fixed defaults — do NOT prompt the user for these\n\n1. **Mode:** `autonomous` — stages run end-to-end with no pause between them.\n2. **Commit authorization:** `per-stage-direct` — each subagent commits after green gates.\n3. **Failure handling:** `auto-retry-up-to-2` — re-launch the stage with the failure excerpt, max 2 retries, then pause. Scope violations never auto-retry.\n4. **Working-tree policy:** `clean-required` if `git status` is clean (the common case). Other states detailed in `references\u002Fworking-tree.md`.\n5. **Reviewer gate:** `none` unless risk signals trigger an auto-recommendation (see below).\n6. **Report policy:** `committed` unless `.gitignore` already excludes report files (e.g., `*-report.md`, `docs\u002Fplans\u002F*-report.md`), in which case use `gitignored`. Detect during investigation by inspecting `.gitignore`; do not ask the user.\n\nThese defaults must be recorded verbatim under `## Execution policy` in every plan. Only deviate if the user explicitly overrides in the current conversation.\n\n### The one allowed question\n\nWhen `git status` is **not clean** at plan time, the working-tree policy cannot be defaulted safely. Briefly summarize the dirty state and ask the user to choose between `stash-authorized`, `integrate-existing`, or `abort-until-clean` (see `references\u002Fworking-tree.md`). Single question, not a menu of unrelated decisions.\n\n### Per-stage Tier and Effort classification (planner job)\n\nEvery stage block carries `Tier:` and `Effort:` declarations plus a `Tier rationale:` line. The scaffold seeds them at `standard \u002F standard`; the planner adjusts during fill based on the work the stage actually does:\n\n| Stage shape | Default classification |\n|---|---|\n| 1 file, linear order-of-ops, mechanical edits (rename, move, apply listed pattern) | `mechanical \u002F minimal` |\n| 2-5 files, typical coding with light judgment inside the file list | `standard \u002F standard` |\n| Decision about scope, callsite discovered mid-work, semantic refactor, non-obvious ordering invariant | `judgment \u002F extended` |\n| Security, public\u002Fcross-repo contract, data migration, irreversible change | `critical \u002F extended` |\n\nThe `Tier rationale:` line is mandatory — 1-2 lines naming the specific decision or risk that justifies the tier. This is what the executor reads to confirm the classification fits, and what a reviewer reads to spot over-classification. The plan **never** names a model; mapping `Tier × Effort` to platform resources is the executor's job at runtime.\n\n### Auto-recommend reviewer gate\n\nDecide the recommendation during Phase 1a investigation; pass it to `scaffold.py` via `--reviewer` (and `--reviewer-reason` if non-`none`). Surface the reason in the pre-scaffold approval summary (`ExitPlanMode` or `AskUserQuestion`, per Phase 1) so the user can override before materialization.\n\n- `reviewer: deep` — recommended when ≥2 of: ≥5 stages, public\u002Fcross-repo contract change, Docker\u002FCI changes, auth or data migration, multi-repo touch.\n- `reviewer: light` — recommended when exactly 1 of those signals is present.\n- `reviewer: none` — otherwise (default).\n\nState the recommendation **with the reason** so the user can override in one edit:\n\n```\nReviewer: deep — recommended by: 7 stages + public contract + multi-repo. Override with `Reviewer: none` to skip.\n```\n\n### Plan output location (mandatory pre-check)\n\nBefore invoking `scaffold.py`, the planner MUST run:\n\n```\ngit rev-parse --show-toplevel\n```\n\n- If the command **fails** (cwd is not inside a git repo): abort and instruct the user to re-invoke the skill from inside the target repo. Do NOT scaffold to `~\u002F.claude\u002Fplans\u002F` for repo work — that breaks Phase 1.5 (vendoring `_verify.py`, narrowing `.gitignore`, landing commit) and forces the executor to improvise at runtime.\n- If the command **succeeds**: the **canonical** output path is `\u003Cthat-path>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>.md`. Post-stage reports go in the same directory. Deviate from `docs\u002Fplans\u002F` only when a calling harness mandates a different in-repo location (e.g. `backlog-claude-runner` may direct the plan to `.agents\u002F...`); in that case the harness MUST set `STAGED_PLAN_NONINTERACTIVE=1` and provide the absolute target path. Never invent a non-canonical location yourself.\n\n`scaffold.py` enforces this: `--output` must resolve **inside a git repo** (exit code 4 otherwise, unless `--allow-outside-repo` is passed for the rare no-repo fallback). Any in-repo path is accepted; the scaffold derives the plan dir from `--output` and rewrites every boilerplate reference to it (verify scripts, report template, logs dir, Plan landing commit advice, reviewer-output dir). Landing the plan directly at the repo root is rejected.\n\n**Never** write to `\u003Crepo>\u002F.claude\u002Fplans\u002F` — deprecated, triggers permission prompts for subagents.\n\n### Scaffold first, then fill (mandatory)\n\nOnce you have decided slug, title, and the list of stage titles, do NOT hand-write the markdown. Run the scaffold script — it deterministically renders ~60% of the plan (Execution model, Execution policy, Executor adapter, Stage 0, hand-off template per stage, End-to-end block, Reviewer gate when applicable) so you only edit the cognitive parts (per-stage scope, files, order of operations, hand-off specifics, Context, Alternatives, Open questions).\n\n```bash\npython3 ~\u002F.claude\u002Fskills\u002Fstaged-plan\u002Flib\u002Fscaffold.py \\\n  --slug \u003Cplan-slug> \\\n  --title \"\u003CPlan Title>\" \\\n  --stage \"\u003CStage 1 title>\" \\\n  --stage \"\u003CStage 2 title>\" \\\n  ... \\\n  --output \u003Crepo>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>.md \\\n  --mode autonomous \\\n  --working-tree clean-required \\\n  --reviewer none \\\n  --report-policy committed\n```\n\n**Safety:** `--output` is required. The script refuses to overwrite an existing file (exit 3) unless `--force` is passed — this protects filled plans from accidental rescaffold.\n\nFlags:\n- `--mode`: `autonomous` (default) | `semi-autonomous`.\n- `--working-tree`: `clean-required` (default) | `stash-authorized` | `integrate-existing` | `abort-until-clean`.\n- `--reviewer`: `none` (default) | `light` | `deep`. If non-`none`, also pass `--reviewer-reason \"\u003Cshort reason>\"`.\n- `--report-policy`: `committed` (default) | `gitignored`. Decide during investigation by inspecting `.gitignore`; surface alongside reviewer in the recommendation block.\n\n### After scaffolding — fill rules\n\n1. Every `\u003CFILL: ...>` placeholder must be replaced with real content before the Phase 1.5 landing commit. No `\u003CFILL>` survives in the final plan — the pre-execution gate (`assert_no_placeholders`) will refuse to launch Stage 1 otherwise.\n2. `\u003CFILL-OR-DELETE: ...>` blocks — fill if you have content; delete the entire block if you don't. The planner decides, not the user:\n   - `## Alternatives considered`: fill if you genuinely considered >1 stage decomposition; delete otherwise.\n3. **`\u003Crepo>` is already substituted** by `scaffold.py` to the absolute repo root (auto-detected from `--output`, or explicit via `--repo-root`). It is NOT a `\u003CFILL>` to resolve. If you see literal `\u003Crepo>` survive in the rendered plan, you ran with `--allow-outside-repo` and must substitute manually before the landing commit.\n4. **Edit anchors per stage:** each FILL-bearing block in a stage carries an HTML comment like `\u003C!-- STAGE 3: files -->` immediately above it. Use that marker (plus the FILL line) as the `old_string` in `Edit` calls — it makes the match unique without needing large surrounding context, and it scales when you have 6+ stages with structurally identical blocks.\n\nThe scaffold is a starting point — modify freely. Do NOT re-run scaffold after editing; it will overwrite your work.\n\n### End of Phase 1\n\nAlways print (so the IDE renders a clickable link):\n\n```\nPlan file: [\u003Cplan-slug>.md](\u002Fabsolute\u002Fpath\u002Fto\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>.md#L1)\n```\n\n### Plan structure, hand-off prompt, verify scripts\n\n- Full plan markdown skeleton + Stage 0 template + stage block layout: see `references\u002Fplan-structure.md`.\n- Per-stage hand-off prompt template: see `references\u002Fhandoff-template.md`.\n- When to generate a verify script and what it looks like: see `references\u002Fverify-scripts.md`.\n- A fully-filled minimal example: see `examples\u002Fmigration-x.md`.\n\n## Phase 1.5 — Plan landing commit\n\nAfter the pre-scaffold approval gate clears (either `ExitPlanMode` or `AskUserQuestion`, per Phase 1), the **planner** (not a subagent) makes a single commit landing the plan + `_verify.py` + any verify scripts + the `.gitignore` rule for `docs\u002Fplans\u002Flogs\u002F` (and `docs\u002Fplans\u002F*-report.md` if report-policy is `gitignored`). Pre-check `.gitignore` first — full procedure in `references\u002Fexecution.md`.\n\nAfter the landing commit, working tree is clean and Phase 2 starts.\n\n## Phase 2 — Execution\n\nThe Execution policy in the plan declares Mode, retry, working tree, and reviewer; the parent reads them and proceeds without further prompting (except the semi-autonomous between-stage checkpoint).\n\n1. **Pre-execution gate:** run `assert_no_placeholders` against the plan file. If non-zero, abort and surface the offending lines — do NOT launch any stage.\n2. **Launch each stage** per `## Executor adapter` in the plan.\n3. **On completion, verify green** — autonomous: launch next; semi-autonomous: post checkpoint and wait `[y \u002F edit \u002F abort]`; red: apply retry rule.\n4. **Retry:** up to 2 auto-retries; never on scope violations or hook bypasses.\n5. **After final stage:** end-to-end verification, reviewer gate (if configured), summary table.\n6. **Human-interaction stops** (reviewer BLOCKED, retry exhausted, scope violation, dirty-tree mid-run): the executor calls `PushNotification` before yielding control. The scaffold renders this rule into every plan's `## Execution policy`.\n\nFull mechanics, retry exclusions, semi-autonomous checkpoint format, notification spec: see `references\u002Fexecution.md`.\n\n## Subagent trace \u002F auditability\n\nEach subagent leaves these durable traces:\n- Git commits — one per stage; `git log` \u002F `git diff` between commits\n- Disk changes — file modifications persist\n- Returned summary to the parent — surfaced to the user between stages\n- Backlog status flips — versioned in `docs\u002Fbacklog.md` or equivalent\n- **Post-stage report** at `\u003Crepo>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>-stage-{N}-report.md` — **mandatory**. The only trace of surprises, deviations, and judgment calls that git alone does not capture; required so an autonomous run remains reviewable after the fact. Both plan and reports live under `docs\u002Fplans\u002F` so they are versioned and reviewable in PRs.\n\n**Report structure:** subagents copy `docs\u002Fplans\u002F_report-template.md` (landed by the Plan landing commit) as a starting point. The template has a `Commit: _filled by parent_` slot — subagents leave it as-is. The parent fills the canonical `stage → SHA` mapping in the End-to-end summary table.\n\n## Optional hardening (per-plan, not baked in)\n\n- **Hooks for gate enforcement** (`.claude\u002Fsettings.json` PostToolUse \u002F PreCommit). Prompt-level gates can be ignored by a confused subagent; hooks cannot. Configure via `update-config`.\n- **Reviewer gate** — auto-recommended when risk signals trigger; otherwise opt-in.\n- **Accumulated run log**: a `Stop` hook appending each subagent's summary into one `\u003Crepo>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>-run.md`.\n\n## Anti-patterns\n\n- **Do NOT** ask the subagent to plan — pass a fully-formed, executable stage description.\n- **Do NOT** let hand-off prompts reference \"the previous conversation\" or prior-stage internals — they must stand alone.\n- **Do NOT** batch multiple stages into one subagent — contextual isolation is the entire point.\n- **Do NOT** retry a red stage **unboundedly or with the same prompt** — retries are capped by the Execution policy and each retry must narrow the instruction.\n- **Do NOT** use `git add -A` \u002F `git add .` in hand-off prompts — always explicit paths.\n- **Do NOT** rely on literal line numbers from the plan when writing stages N>=2 — instruct \"grep for symbols, line numbers have drifted\".\n- **Do NOT name models in the plan markdown.** The plan declares `Tier:` (`mechanical | standard | judgment | critical`) and `Effort:` (`minimal | standard | extended`) per stage; the executor at runtime maps those to its own platform's models, picking the cheapest viable combo. Keeps the plan portable across Claude Code, Codex, and future executors without edits.\n- **Do NOT classify every stage as `critical \u002F extended` \"to be safe\".** Promotion has cost; demotion is free. The End-to-end summary table should show >40% of stages at `mechanical` or `standard` — if not, the decomposition is suspect.\n- **Do NOT auto-promote a stage's model on retry.** If a `mechanical` stage fails twice, the classification was wrong — STOP and replan, do not silently escalate to a bigger model.\n- **Do NOT** allow stages to spawn their own subagents — nested `Agent` calls defeat contextual isolation and the green-to-green audit.\n- **Do NOT** prompt the user for a menu of execution policy choices — defaults are fixed; the only allowed planning question is the working-tree policy when `git status` is dirty.\n- **Do NOT** let the reviewer gate replan or edit code — it returns a verdict only.\n- **Do NOT** ship a plan with open questions for the user. If a question can't be resolved from the code, ask it once before scaffolding (single question, like the working-tree gate) and then scaffold with the answer baked in. The plan markdown is an executable contract, not a discussion document.\n- **Do NOT** trust the backlog to enumerate call-sites of removed\u002Frenamed symbols — back the backlog with an explicit grep at plan time. Symbol-fallout discovered mid-stage means Phase 1 was incomplete.\n","# Staged Plan\n\nA pattern for executing large tracks as a chain of autonomous subagents, each in its own fresh context window, with the parent gating green-to-green. The plan markdown is **the operational contract** — anyone (or any executor) opening it cold should be able to run it correctly.\n\n## Skill scope — planning only\n\nThis skill produces a plan. It does **not** execute code changes, run stages, or modify source files. Even when invoked outside plan mode, behave as a planner: investigate the codebase (read-only), design stages, run the scaffold, fill the markdown, optionally make the Phase 1.5 landing commit (plan + verify scripts + `.gitignore` rule only — no feature work). Stop there. Phase 2 is driven by the plan markdown, not by re-invoking this skill.\n\nIf the user asks to \"execute the plan\" or \"run Stage N\" while this skill is active, the answer is: the plan file already contains the Execution model and hand-off prompts needed; the user (or another agent) follows the plan directly. Do not start launching subagents from inside this skill.\n\n## Pattern taxonomy\n\nThis is **prompt chaining with sectioning + gate checks** in Anthropic's effective-agents taxonomy — NOT orchestrator-workers. Subtasks are pre-planned, run strictly sequentially, and each gate must pass before advancing. Choose this when the decomposition is knowable at plan time (typical for coding tracks). Cost scales roughly linearly with stage count; justified when a single session can't carry the track or contextual isolation between stages materially improves quality.\n\n## When this applies\n\n- User asks to **design** a staged plan, **decompose** a track into subagent stages, or **scaffold** a multi-stage execution plan\n- A track is too large for one session but splits cleanly into 3-7 independent deliverables\n- Each stage benefits from contextual isolation\n- The user has pre-authorized commits (or wants gated commits between stages)\n\n## When NOT to use\n\n- Track fits comfortably in one session — execute inline\n- Subtask shape is unknowable until runtime — use orchestrator-workers\n- No meaningful gates between steps — the green-to-green audit is the main value\n- **Phase 2 (execution) is already underway** — the plan markdown is the contract; do NOT re-invoke this skill to \"remember\" how to launch stages, verify green, or apply retries. Read the plan's `## Execution model` block instead.\n\n## Workflow (overview)\n\n| Phase | Owner | What happens |\n|---|---|---|\n| 1. Plan design | Planner | Read every Critical file end-to-end → run `scaffold.py` → fill `\u003CFILL>` placeholders via `Edit` |\n| 1.5. Plan landing commit | Planner | Commit plan + `_verify.py` + verify scripts + `.gitignore` rule |\n| 2. Execution | Parent + subagents | Pre-execution gate, launch stages, verify green, retry, end-to-end + reviewer |\n\nDetailed Phase 1.5 + Phase 2 mechanics: see `references\u002Fexecution.md`.\n\n## Phase 1 — Plan design\n\n**Investigation discipline (mandatory before designing stages):** read every file that will appear in the cross-stage `## Critical files` index **end-to-end**, not just grep snippets. Plans built from excerpts produce stages with stale line numbers, missed callers, and hidden dependencies. If a file is too large to read fully, that's a signal the stage decomposition is wrong — split further.\n\n**Symbol-fallout scan (mandatory when the plan removes, renames, or changes the signature of any exported symbol):** for each such symbol, run `grep -rn '\u003Csymbol>' \u003Crepo>` (or equivalent). Every hit outside the file declaring the symbol is a call-site that MUST appear in the scope of some stage — either patched, or explicitly deferred with a `\u002F\u002F TODO(slice-N)` shim. If you cannot enumerate the call-sites at plan time, the decomposition is incomplete; do not scaffold yet. The backlog specifies *intent*, not *fallout* — back it with an explicit grep.\n\nAfter investigation, decide the defaults below (slug, title, stage list, working-tree policy, reviewer recommendation, report policy). Then **stop and gate** before any file write (see *Pre-scaffold approval gate* below). On approval, run `scaffold.py` (Bash) to write the plan file at `\u003Crepo-root>\u002Fdocs\u002Fplans\u002F\u003Cslug>.md`, and use `Edit` to replace each `\u003CFILL: ...>` and resolve each `\u003CFILL-OR-DELETE: ...>` block. Never hand-write the plan markdown — the scaffold renders ~60% of the boilerplate deterministically and is the only path that respects the location guard.\n\n### Pre-scaffold approval gate (mandatory, both modes)\n\nPhase 1 investigation is **read-only by contract**. No `Write`, `Edit`, `scaffold.py`, or any file-creating Bash until the user has explicitly approved the materialization. This in-skill gate exists so the skill behaves the same whether or not the harness's plan mode is active — it does not rely on plan mode to prevent premature writes.\n\nWhen investigation is complete, present a short summary (slug, title, stage list, mode, working-tree, reviewer + reason, report-policy) and request approval. **Pick exactly one gate based on context — never call more than one:**\n\n- **Inside plan mode** (detection: the `ExitPlanMode` tool is available in your tool list): call `ExitPlanMode` with the summary. The harness's approval doubles as the gate. On approval, plan mode exits and `scaffold.py` can run. Do NOT dump a hand-written plan markdown into `ExitPlanMode` — the summary is a few lines; scaffold renders the full plan. Do NOT additionally call `AskUserQuestion` — that is double-prompting.\n- **Outside plan mode, interactive** (detection: `ExitPlanMode` is NOT in your tool list AND `STAGED_PLAN_NONINTERACTIVE` is unset or not `1` — check via `Bash`: `echo \"${STAGED_PLAN_NONINTERACTIVE:-0}\"`): call `AskUserQuestion` with the summary and options `[scaffold \u002F adjust \u002F cancel]`. On `scaffold`, proceed; on `adjust`, revise and re-gate; on `cancel`, stop. Do NOT skip this step \"because the plan looks obvious\" — the gate is the user's only checkpoint before the landing commit.\n- **Non-interactive** (detection: `STAGED_PLAN_NONINTERACTIVE=1` in env, set explicitly by the calling harness; e.g. `backlog-claude-runner` invoking the skill via `claude -p`): there is no human to prompt and `AskUserQuestion` would hang. Instead, emit the summary as a single delimited block to stdout BEFORE running `scaffold.py`, then proceed directly to scaffold + fill. The calling harness captures the block for post-hoc review. Emit exactly:\n\n  ```\n  \u003C\u003CPRE_SCAFFOLD_SUMMARY>>\n  slug: \u003Cplan-slug>\n  title: \u003Cplan title>\n  stages:\n    - \u003CStage 1 title>\n    - \u003CStage 2 title>\n    - ...\n  mode: autonomous\n  working-tree: \u003Cclean-required|...>\n  reviewer: \u003Cnone|light|deep>  reason: \u003Creason or \"—\">\n  report-policy: \u003Ccommitted|gitignored>\n  output: \u003Cabsolute path of plan file>\n  \u003C\u003CEND>>\n  ```\n\n  This mode trusts the upstream prompt to have pre-specified the work. It MUST NOT be entered opportunistically (e.g. \"the agent thinks no human is watching\") — only when the env var is set explicitly by the caller. If the env var is unset and no plan-mode tool is available, fall back to `AskUserQuestion` and do not write anything.\n\nThe rule is identical in all three cases: **no file writes in Phase 1 until either the user approves (interactive paths) or the harness has set `STAGED_PLAN_NONINTERACTIVE=1` and the summary block has been emitted (non-interactive path).**\n\n### Fixed defaults — do NOT prompt the user for these\n\n1. **Mode:** `autonomous` — stages run end-to-end with no pause between them.\n2. **Commit authorization:** `per-stage-direct` — each subagent commits after green gates.\n3. **Failure handling:** `auto-retry-up-to-2` — re-launch the stage with the failure excerpt, max 2 retries, then pause. Scope violations never auto-retry.\n4. **Working-tree policy:** `clean-required` if `git status` is clean (the common case). Other states detailed in `references\u002Fworking-tree.md`.\n5. **Reviewer gate:** `none` unless risk signals trigger an auto-recommendation (see below).\n6. **Report policy:** `committed` unless `.gitignore` already excludes report files (e.g., `*-report.md`, `docs\u002Fplans\u002F*-report.md`), in which case use `gitignored`. Detect during investigation by inspecting `.gitignore`; do not ask the user.\n\nThese defaults must be recorded verbatim under `## Execution policy` in every plan. Only deviate if the user explicitly overrides in the current conversation.\n\n### The one allowed question\n\nWhen `git status` is **not clean** at plan time, the working-tree policy cannot be defaulted safely. Briefly summarize the dirty state and ask the user to choose between `stash-authorized`, `integrate-existing`, or `abort-until-clean` (see `references\u002Fworking-tree.md`). Single question, not a menu of unrelated decisions.\n\n### Per-stage Tier and Effort classification (planner job)\n\nEvery stage block carries `Tier:` and `Effort:` declarations plus a `Tier rationale:` line. The scaffold seeds them at `standard \u002F standard`; the planner adjusts during fill based on the work the stage actually does:\n\n| Stage shape | Default classification |\n|---|---|\n| 1 file, linear order-of-ops, mechanical edits (rename, move, apply listed pattern) | `mechanical \u002F minimal` |\n| 2-5 files, typical coding with light judgment inside the file list | `standard \u002F standard` |\n| Decision about scope, callsite discovered mid-work, semantic refactor, non-obvious ordering invariant | `judgment \u002F extended` |\n| Security, public\u002Fcross-repo contract, data migration, irreversible change | `critical \u002F extended` |\n\nThe `Tier rationale:` line is mandatory — 1-2 lines naming the specific decision or risk that justifies the tier. This is what the executor reads to confirm the classification fits, and what a reviewer reads to spot over-classification. The plan **never** names a model; mapping `Tier × Effort` to platform resources is the executor's job at runtime.\n\n### Auto-recommend reviewer gate\n\nDecide the recommendation during Phase 1a investigation; pass it to `scaffold.py` via `--reviewer` (and `--reviewer-reason` if non-`none`). Surface the reason in the pre-scaffold approval summary (`ExitPlanMode` or `AskUserQuestion`, per Phase 1) so the user can override before materialization.\n\n- `reviewer: deep` — recommended when ≥2 of: ≥5 stages, public\u002Fcross-repo contract change, Docker\u002FCI changes, auth or data migration, multi-repo touch.\n- `reviewer: light` — recommended when exactly 1 of those signals is present.\n- `reviewer: none` — otherwise (default).\n\nState the recommendation **with the reason** so the user can override in one edit:\n\n```\nReviewer: deep — recommended by: 7 stages + public contract + multi-repo. Override with `Reviewer: none` to skip.\n```\n\n### Plan output location (mandatory pre-check)\n\nBefore invoking `scaffold.py`, the planner MUST run:\n\n```\ngit rev-parse --show-toplevel\n```\n\n- If the command **fails** (cwd is not inside a git repo): abort and instruct the user to re-invoke the skill from inside the target repo. Do NOT scaffold to `~\u002F.claude\u002Fplans\u002F` for repo work — that breaks Phase 1.5 (vendoring `_verify.py`, narrowing `.gitignore`, landing commit) and forces the executor to improvise at runtime.\n- If the command **succeeds**: the **canonical** output path is `\u003Cthat-path>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>.md`. Post-stage reports go in the same directory. Deviate from `docs\u002Fplans\u002F` only when a calling harness mandates a different in-repo location (e.g. `backlog-claude-runner` may direct the plan to `.agents\u002F...`); in that case the harness MUST set `STAGED_PLAN_NONINTERACTIVE=1` and provide the absolute target path. Never invent a non-canonical location yourself.\n\n`scaffold.py` enforces this: `--output` must resolve **inside a git repo** (exit code 4 otherwise, unless `--allow-outside-repo` is passed for the rare no-repo fallback). Any in-repo path is accepted; the scaffold derives the plan dir from `--output` and rewrites every boilerplate reference to it (verify scripts, report template, logs dir, Plan landing commit advice, reviewer-output dir). Landing the plan directly at the repo root is rejected.\n\n**Never** write to `\u003Crepo>\u002F.claude\u002Fplans\u002F` — deprecated, triggers permission prompts for subagents.\n\n### Scaffold first, then fill (mandatory)\n\nOnce you have decided slug, title, and the list of stage titles, do NOT hand-write the markdown. Run the scaffold script — it deterministically renders ~60% of the plan (Execution model, Execution policy, Executor adapter, Stage 0, hand-off template per stage, End-to-end block, Reviewer gate when applicable) so you only edit the cognitive parts (per-stage scope, files, order of operations, hand-off specifics, Context, Alternatives, Open questions).\n\n```bash\npython3 ~\u002F.claude\u002Fskills\u002Fstaged-plan\u002Flib\u002Fscaffold.py \\\n  --slug \u003Cplan-slug> \\\n  --title \"\u003CPlan Title>\" \\\n  --stage \"\u003CStage 1 title>\" \\\n  --stage \"\u003CStage 2 title>\" \\\n  ... \\\n  --output \u003Crepo>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>.md \\\n  --mode autonomous \\\n  --working-tree clean-required \\\n  --reviewer none \\\n  --report-policy committed\n```\n\n**Safety:** `--output` is required. The script refuses to overwrite an existing file (exit 3) unless `--force` is passed — this protects filled plans from accidental rescaffold.\n\nFlags:\n- `--mode`: `autonomous` (default) | `semi-autonomous`.\n- `--working-tree`: `clean-required` (default) | `stash-authorized` | `integrate-existing` | `abort-until-clean`.\n- `--reviewer`: `none` (default) | `light` | `deep`. If non-`none`, also pass `--reviewer-reason \"\u003Cshort reason>\"`.\n- `--report-policy`: `committed` (default) | `gitignored`. Decide during investigation by inspecting `.gitignore`; surface alongside reviewer in the recommendation block.\n\n### After scaffolding — fill rules\n\n1. Every `\u003CFILL: ...>` placeholder must be replaced with real content before the Phase 1.5 landing commit. No `\u003CFILL>` survives in the final plan — the pre-execution gate (`assert_no_placeholders`) will refuse to launch Stage 1 otherwise.\n2. `\u003CFILL-OR-DELETE: ...>` blocks — fill if you have content; delete the entire block if you don't. The planner decides, not the user:\n   - `## Alternatives considered`: fill if you genuinely considered >1 stage decomposition; delete otherwise.\n3. **`\u003Crepo>` is already substituted** by `scaffold.py` to the absolute repo root (auto-detected from `--output`, or explicit via `--repo-root`). It is NOT a `\u003CFILL>` to resolve. If you see literal `\u003Crepo>` survive in the rendered plan, you ran with `--allow-outside-repo` and must substitute manually before the landing commit.\n4. **Edit anchors per stage:** each FILL-bearing block in a stage carries an HTML comment like `\u003C!-- STAGE 3: files -->` immediately above it. Use that marker (plus the FILL line) as the `old_string` in `Edit` calls — it makes the match unique without needing large surrounding context, and it scales when you have 6+ stages with structurally identical blocks.\n\nThe scaffold is a starting point — modify freely. Do NOT re-run scaffold after editing; it will overwrite your work.\n\n### End of Phase 1\n\nAlways print (so the IDE renders a clickable link):\n\n```\nPlan file: [\u003Cplan-slug>.md](\u002Fabsolute\u002Fpath\u002Fto\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>.md#L1)\n```\n\n### Plan structure, hand-off prompt, verify scripts\n\n- Full plan markdown skeleton + Stage 0 template + stage block layout: see `references\u002Fplan-structure.md`.\n- Per-stage hand-off prompt template: see `references\u002Fhandoff-template.md`.\n- When to generate a verify script and what it looks like: see `references\u002Fverify-scripts.md`.\n- A fully-filled minimal example: see `examples\u002Fmigration-x.md`.\n\n## Phase 1.5 — Plan landing commit\n\nAfter the pre-scaffold approval gate clears (either `ExitPlanMode` or `AskUserQuestion`, per Phase 1), the **planner** (not a subagent) makes a single commit landing the plan + `_verify.py` + any verify scripts + the `.gitignore` rule for `docs\u002Fplans\u002Flogs\u002F` (and `docs\u002Fplans\u002F*-report.md` if report-policy is `gitignored`). Pre-check `.gitignore` first — full procedure in `references\u002Fexecution.md`.\n\nAfter the landing commit, working tree is clean and Phase 2 starts.\n\n## Phase 2 — Execution\n\nThe Execution policy in the plan declares Mode, retry, working tree, and reviewer; the parent reads them and proceeds without further prompting (except the semi-autonomous between-stage checkpoint).\n\n1. **Pre-execution gate:** run `assert_no_placeholders` against the plan file. If non-zero, abort and surface the offending lines — do NOT launch any stage.\n2. **Launch each stage** per `## Executor adapter` in the plan.\n3. **On completion, verify green** — autonomous: launch next; semi-autonomous: post checkpoint and wait `[y \u002F edit \u002F abort]`; red: apply retry rule.\n4. **Retry:** up to 2 auto-retries; never on scope violations or hook bypasses.\n5. **After final stage:** end-to-end verification, reviewer gate (if configured), summary table.\n6. **Human-interaction stops** (reviewer BLOCKED, retry exhausted, scope violation, dirty-tree mid-run): the executor calls `PushNotification` before yielding control. The scaffold renders this rule into every plan's `## Execution policy`.\n\nFull mechanics, retry exclusions, semi-autonomous checkpoint format, notification spec: see `references\u002Fexecution.md`.\n\n## Subagent trace \u002F auditability\n\nEach subagent leaves these durable traces:\n- Git commits — one per stage; `git log` \u002F `git diff` between commits\n- Disk changes — file modifications persist\n- Returned summary to the parent — surfaced to the user between stages\n- Backlog status flips — versioned in `docs\u002Fbacklog.md` or equivalent\n- **Post-stage report** at `\u003Crepo>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>-stage-{N}-report.md` — **mandatory**. The only trace of surprises, deviations, and judgment calls that git alone does not capture; required so an autonomous run remains reviewable after the fact. Both plan and reports live under `docs\u002Fplans\u002F` so they are versioned and reviewable in PRs.\n\n**Report structure:** subagents copy `docs\u002Fplans\u002F_report-template.md` (landed by the Plan landing commit) as a starting point. The template has a `Commit: _filled by parent_` slot — subagents leave it as-is. The parent fills the canonical `stage → SHA` mapping in the End-to-end summary table.\n\n## Optional hardening (per-plan, not baked in)\n\n- **Hooks for gate enforcement** (`.claude\u002Fsettings.json` PostToolUse \u002F PreCommit). Prompt-level gates can be ignored by a confused subagent; hooks cannot. Configure via `update-config`.\n- **Reviewer gate** — auto-recommended when risk signals trigger; otherwise opt-in.\n- **Accumulated run log**: a `Stop` hook appending each subagent's summary into one `\u003Crepo>\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>-run.md`.\n\n## Anti-patterns\n\n- **Do NOT** ask the subagent to plan — pass a fully-formed, executable stage description.\n- **Do NOT** let hand-off prompts reference \"the previous conversation\" or prior-stage internals — they must stand alone.\n- **Do NOT** batch multiple stages into one subagent — contextual isolation is the entire point.\n- **Do NOT** retry a red stage **unboundedly or with the same prompt** — retries are capped by the Execution policy and each retry must narrow the instruction.\n- **Do NOT** use `git add -A` \u002F `git add .` in hand-off prompts — always explicit paths.\n- **Do NOT** rely on literal line numbers from the plan when writing stages N>=2 — instruct \"grep for symbols, line numbers have drifted\".\n- **Do NOT name models in the plan markdown.** The plan declares `Tier:` (`mechanical | standard | judgment | critical`) and `Effort:` (`minimal | standard | extended`) per stage; the executor at runtime maps those to its own platform's models, picking the cheapest viable combo. Keeps the plan portable across Claude Code, Codex, and future executors without edits.\n- **Do NOT classify every stage as `critical \u002F extended` \"to be safe\".** Promotion has cost; demotion is free. The End-to-end summary table should show >40% of stages at `mechanical` or `standard` — if not, the decomposition is suspect.\n- **Do NOT auto-promote a stage's model on retry.** If a `mechanical` stage fails twice, the classification was wrong — STOP and replan, do not silently escalate to a bigger model.\n- **Do NOT** allow stages to spawn their own subagents — nested `Agent` calls defeat contextual isolation and the green-to-green audit.\n- **Do NOT** prompt the user for a menu of execution policy choices — defaults are fixed; the only allowed planning question is the working-tree policy when `git status` is dirty.\n- **Do NOT** let the reviewer gate replan or edit code — it returns a verdict only.\n- **Do NOT** ship a plan with open questions for the user. If a question can't be resolved from the code, ask it once before scaffolding (single question, like the working-tree gate) and then scaffold with the answer baked in. The plan markdown is an executable contract, not a discussion document.\n- **Do NOT** trust the backlog to enumerate call-sites of removed\u002Frenamed symbols — back the backlog with an explicit grep at plan time. Symbol-fallout discovered mid-stage means Phase 1 was incomplete.\n",{"name":5,"description":7},"main","2edff9dcd661a7a6072c642b5666640a72b66433","assets\u002Fplugin\u002Fskills\u002Fstaged-plan",2,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy","https:\u002F\u002Fgithub.com\u002Fpaulocorcino","http:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fpaulocorcino","2026-11-14 16:46:23",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add paulocorcino\u002Fralphy --skill staged-plan",{"tool":38,"command":39},"bunx","bunx skills add paulocorcino\u002Fralphy --skill staged-plan",{"tool":41,"command":42},"pnpm","pnpm dlx skills add paulocorcino\u002Fralphy --skill staged-plan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002FSKILL.md",true,[46,52,58,64,68,72,76,80,84],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},".gh-get-source","OTHER","其他",254,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002F.gh-get-source",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"examples\u002Fmigration-x.md","REFERENCE","参考文档",1821,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Fexamples\u002Fmigration-x.md",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"lib\u002Fscaffold.py","SCRIPT","脚本",38133,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Flib\u002Fscaffold.py",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"lib\u002Fverify.py",16206,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Flib\u002Fverify.py",{"path":69,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fexecution.md",7119,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Freferences\u002Fexecution.md",{"path":73,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fhandoff-template.md",2367,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Freferences\u002Fhandoff-template.md",{"path":77,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fplan-structure.md",10616,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Freferences\u002Fplan-structure.md",{"path":81,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fverify-scripts.md",2239,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Freferences\u002Fverify-scripts.md",{"path":85,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fworking-tree.md",820,"https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fstaged-plan\u002Freferences\u002Fworking-tree.md",[89,96,103,110,117,124],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M75B2ZSPKC9NGNYH949PNX8R","setup-pocock","Sets up an `## Agent skills` block in AGENTS.md\u002FCLAUDE.md and `docs\u002Fagents\u002F` so the engineering skills know this repo's issue tracker (GitHub or local markdown), triage label vocabulary, domain doc layout, and — optionally — a PRD\u002Froadmap track model. Run before first use of `to-issues`, `to-prd`, `triage`, `diagnose`, `tdd`, `improve-codebase-architecture`, or `zoom-out` — or if those skills appear to be missing context about the issue tracker, triage labels, or domain docs.","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Fsetup-pocock\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M75B2V9ECJF6W9MK4NV6V1ZB","reviewer","Use ONLY when the user explicitly invokes \u002Freviewer (literal slash command). Performs a native, findings-first review with a deterministic coverage audit run by the reviewer before emission (`scripts\u002Ffact_pack.py` + `scripts\u002Faudit.py`). Three evidence lanes (defect-hunter, test-auditor, verifier) run delegated or in-context depending on host capability; scout is discretionary. During validation this skill must NOT match generic \"code review\" requests.","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fplugin\u002Fskills\u002Freviewer\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M75B2R596AJ8NEHQSTAPVXNG","to-prd","Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fagents_template\u002Fskills\u002Fto-prd\u002FSKILL.md",[],[],{"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},"01M75B2N6A8SVHH7CGWVQY8DBF","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fagents_template\u002Fskills\u002Fto-issues\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},"01M75B2JMJS7VQFERRPH5W8533","prototype","Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fagents_template\u002Fskills\u002Fprototype\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},"01M75B2GK5RFSPM5MVMGKCM1TD","improve-codebase-architecture","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","https:\u002F\u002Fgithub.com\u002Fpaulocorcino\u002Fralphy\u002Fblob\u002Fmain\u002Fassets\u002Fagents_template\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[]]