[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76WAV6A7VA51042ZBR5DMF4":3,"skill-same:01M76WAV6A7VA51042ZBR5DMF4":86},{"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":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M76WAV6A7VA51042ZBR5DMF4","writing-plans",null,"Use when an approved specification or settled requirements need to become an executable multi-step implementation plan.","HarleyBartles\u002Fagent-asset-marketplace","HarleyBartles","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F32537371?v=4","01M7590KP2F50J1QPVEK7V7071","Harley Bartles","01M7590KQ4B141665T2GDDCWQX",0,"MIT","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: writing-plans\ndescription: Use when an approved specification or settled requirements need to become an executable multi-step implementation plan.\nmetadata:\n  source-id: writing-plans\n  source-path: skills\u002Fwriting-plans\u002FSKILL.md\n  provenance-name: Writing Plans first-party skill\n  source-category: first_party\n  status: active\n  owner: Harley Bartles\n  use_when:\n    - an approved spec exists for a multi-step task.\n    - the goal fits a single tight implementation plan.\n    - implementation code has not yet been changed.\n  do_not_use_when:\n    - the spec covers multiple independent subsystems; invoke writing-roadmaps to create a roadmap before writing plans.\n    - implementation has already started.\n    - a substitute for brainstorming.\n  related_skills:\n    - brainstorming\n    - handoff-gates\n    - executing-plans\n    - subagent-driven-development\n    - writing-roadmaps\nlicense: MIT\n---\n\n## Provenance\n\nThis marketplace-maintained derivative is based on `obra\u002Fsuperpowers` v6.4.1 commit `5bf4e78011075bcfc0dc295f0724994cd123ee71` under the MIT License. Upstream source is not vendored; this directory contains the maintained Superpowers+ implementation.\n\n# Writing Plans\n\n## Overview\n\nWrite comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.\n\nAssume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.\n\n**Announce at start:** \"I'm using the writing-plans skill to create the implementation plan.\"\n\n**First step:** If you were not already routed here by `using-superpowers-plus`, invoke `using-superpowers-plus` first. Then read this skill's baseline (`references\u002Fplanning-baseline.md`) and consult repository-resident planning guidance when the repository declares it, following its own entrypoints and paths. If no applicable local guidance exists, continue with the portable baseline.\n\n**Context:** If working in an isolated worktree, it should have been created via the `using-git-worktrees` skill at execution time.\n\n**Save plans to:** the repository-declared in-flight plan home. Use `.agents\u002Fplans\u002F` only when the repository adopts it or declares no other home.\n\n- (User preferences for plan location override this default)\n\n## Scope Check\n\nIf the spec covers multiple independent subsystems, invoke `writing-roadmaps` to create a sequenced roadmap before writing any plan. If brainstorming already produced a roadmap, write Plan 1 from the roadmap and leave remaining subsystems as pending future plans. Each plan should produce working, testable software on its own.\n\n## When to stop and ask\n\nBefore drafting a task, decide what to do when a plan item is missing scope or detail. Use this decision table:\n\n| Situation                                                                                | Use                                              |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------ |\n| Plan item has no acceptance criteria and the answer is not in durable source or the spec | `asking-clarifying-questions`                    |\n| The whole shape of the solution is unknown                                               | `brainstorming` to update the spec first         |\n| Plan item has acceptance criteria but is large                                           | Write the plan as a high-level draft and iterate |\n| Scope is in the spec but not yet broken into tasks                                       | Write the plan, then review                      |\n\nIf a single missing fact blocks the next step, invoke `asking-clarifying-questions` before guessing.\n\n## Plan Lifecycle\n\nPlans are committed, in-flight execution artifacts. The active plan governs the work across sessions, but it is not durable repository truth.\n\n- **In-flight home:** the repository-declared plan location, preserving its conventions for ordinary and epic plans. If no location is declared, use `.agents\u002Fplans\u002F`. Off-repo scratch is for transient session artifacts only; the plan itself lives in the in-flight plan home.\n- **Commit before handoff:** A plan must exist and be committed before it can be handed to `executing-plans` or `subagent-driven-development`. Execution skills read the saved, committed file, not unsaved editor state.\n- **Completion:** Follow the repository's planning-artifact policy. When it adopts `completed-artifact-custody`, resolve the immutable subscription revision and read its definition and local certification before using `completing-planning-artifacts`. Follow that version's retirement timing and status-recording requirements; the standard ID alone does not upgrade an older subscription. If a human requests the lifecycle without a subscription, apply the current definition only to that request. Under the current semantic definition, promote enduring decisions, retain governing artifacts through the completing PR, and retire eligible artifacts from the current base in the first substantive commit of the next slice; a marker is not required for discovery or retirement. Otherwise, follow local policy; ambient skill availability is not adoption.\n- **Completion boundary:** Checklist items describe work the executing agent can finish in the current slice. Human-owned post-handoff actions such as final approval, changing a PR from Draft to Ready, or merge must not remain as unchecked plan items. When the requested handoff is a fully reviewable Draft PR, complete the agent-owned publication and verification items and close the plan; record later human actions in the handoff or PR state instead. A Draft may keep a plan open only when the work is explicitly declared incomplete.\n- **Roadmap and index links:** Under the adopted custody standard, preserve live parent roadmaps while assessing completed child plans against their own scope. Do not create a permanent completed-artifact index solely for this lifecycle unless repository policy requires one. Non-adopters follow their local policy.\n\n## File Structure\n\nBefore defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.\n\n- Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.\n- You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.\n- Files that change together should live together. Split by responsibility, not by technical layer.\n- In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.\n\nThis structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.\n\n## Task Right-Sizing\n\nA task is the smallest unit that carries its own test cycle and is worth a fresh reviewer's gate. When drawing task boundaries: fold setup, configuration, scaffolding, and documentation steps into the task whose deliverable needs them; split only where a reviewer could meaningfully reject one task while approving its neighbor. Each task ends with an independently testable deliverable.\n\n## Right-Sizing and Escape Hatches\n\nIf you think \"this is a lot\" or \"the plan is huge\" while writing, you are at a scope sizing decision point. **MUST READ:** `references\u002Fplan-scope-sizing.md` and follow one of the three escape hatches before continuing.\n\nA long plan with well-sliced, independently testable tasks is not a problem. The `subagent-driven-development` execution lane is designed for that shape. A plan is too big only when it crosses independent concerns or one of its tasks cannot fit in one review cycle.\n\n## Bite-Sized Task Granularity\n\n**Each step is one action (2-5 minutes):**\n\n- \"Write the failing test\" - step\n- \"Run it to make sure it fails\" - step\n- \"Implement the minimal code to make the test pass\" - step\n- \"Run the tests and make sure they pass\" - step\n- \"Commit\" - step\n\n## Recipient-relative planning\n\nWrite each plan for the executor and stage that will receive it. Always make the observable goal, exclusions, seams, invariants, interfaces, authority, acceptance evidence, and task exits explicit. For Luna or lower-capability executors, pre-resolve consequential alternatives, name exact evidence homes and commands when known, and use finite decision tables where a choice would otherwise be rediscovered during execution. Exact implementation code is optional unless the code shape itself is the contract; specify behavior, interfaces, and evidence rather than pretending pseudocode is a guarantee.\n\n## Plan Document Header\n\n**Every plan MUST start with this header:**\n\n```markdown\n# [Feature Name] Implementation Plan\n\n> **For agentic workers:** REQUIRED SUB-SKILL: Use `subagent-driven-development` (recommended) or `executing-plans` to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.\n\n**Goal:** [One sentence describing what this builds]\n\n**Architecture:** [2-3 sentences about approach]\n\n**Tech Stack:** [Key technologies\u002Flibraries]\n\n**Spec:** [path to the spec\u002Fdesign doc this plan implements — the plan\nargues from the spec, so the spec travels with it; executors read both]\n\n**Execution Strategy:** `subagent-driven-development` (default for independent tasks) — `executing-plans` (for tightly coupled\u002Fsequential tasks), `dispatching-parallel-agents` (for 2+ independent parallel tracks), or `manual` (for human-driven work). The planner picks the recommended lane.\n\n## Global Constraints\n\n[The spec's project-wide requirements — version floors, dependency limits,\nnaming and copy rules, platform requirements — one line each, with exact\nvalues copied verbatim from the spec. Every task's requirements implicitly\ninclude this section.]\n\n## Review Focus\n\n[Up to five input classes or failure modes the spec implies but the draft\ntasks do not yet exercise, most likely first. Name the condition and the\nbehavior a reasonable user would expect. For every line, add the covering\ntest to the task that owns the code; this section is the index, not a\nsubstitute for tests in the owning task. An empty section means the review\nfound no uncovered case.]\n\n---\n```\n\n## Task Structure\n\n````markdown\n### Task N: [Component Name]\n\n**Files:**\n- Create: `exact\u002Fpath\u002Fto\u002Ffile.py`\n- Modify: `exact\u002Fpath\u002Fto\u002Fexisting.py:123-145`\n- Test: `tests\u002Fexact\u002Fpath\u002Fto\u002Ftest.py`\n\n**Interfaces:**\n- Consumes: [what this task uses from earlier tasks — exact signatures]\n- Produces: [what later tasks rely on — exact function names, parameter\n  and return types. A task's implementer sees only their own task; this\n  block is how they learn the names and types neighboring tasks use.]\n\n- [ ] **Step 1: Write the failing test**\n\n```python\ndef test_specific_behavior():\n    result = function(input)\n    assert result == expected\n```\n\n- [ ] **Step 2: Run test to verify it fails**\n\nRun: `pytest tests\u002Fpath\u002Ftest.py::test_name -v`\nExpected: FAIL with \"function not defined\"\n\n- [ ] **Step 3: Write minimal implementation**\n\n```python\ndef function(input):\n    return expected\n```\n\n- [ ] **Step 4: Run test to verify it passes**\n\nRun: `pytest tests\u002Fpath\u002Ftest.py::test_name -v`\nExpected: PASS\n\n- [ ] **Step 5: Commit**\n\n```bash\ngit add tests\u002Fpath\u002Ftest.py src\u002Fpath\u002Ffile.py\ngit commit -m \"feat: add specific feature\"\n```\n````\n\n## No Placeholders\n\nEvery step must contain the actual content an engineer needs. These are **plan failures** — never write them:\n\n- \"TBD\", \"TODO\", \"implement later\", \"fill in details\"\n- \"Add appropriate error handling\" \u002F \"add validation\" \u002F \"handle edge cases\"\n- \"Write tests for the above\" (without actual test code)\n- \"Similar to Task N\" (repeat the code — the engineer may be reading tasks out of order)\n- Steps that describe what to do without showing how (code blocks required for code steps)\n- References to types, functions, or methods not defined in any task\n\n## Self-review & plan-readiness gate\n\nAfter writing the complete plan, look at the spec with fresh eyes and check the plan against it. Then use `handoff-gates` `plan-readiness` lane as the plan-readiness gate. These are the same step: the self-review produces the plan, and the readiness gate rates it.\n\n**1. Spec coverage:** Skim each section\u002Frequirement in the spec. Can you point to a task that implements it? List any gaps.\n\n**2. Placeholder scan:** Search your plan for red flags — any of the patterns from the \"No Placeholders\" section above. Fix them.\n\n**3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.\n\n**4. Review Focus:** With the spec in front of you, identify up to five untested input classes or failure modes most likely to bite a reasonable user. Put them in `Review Focus`, then add each covering test to the owning task.\n\n**5. Plan Size and Lane Check:** Did you think the plan was too large while writing? If yes, did you apply one of the escape hatches in `references\u002Fplan-scope-sizing.md`? Is the `Execution Strategy` field filled with an allowed value and a clear rationale? Treat the template's `subagent-driven-development (recommended)` parenthetical as a candidate, not proof. After the full task structure is visible, ask which lane you actually recommend and compare it with the nearest credible alternative using the evidence required by `handoff-gates` `plan-readiness`. Do not use plan length or task count alone. After the gate, rewrite the saved `Execution Strategy` field to match its selected lane and add a concise plan-specific reason. The gate result is authoritative for the saved field. Keep the required subskill header unchanged.\n\n**6. Plan-readiness rating:** Use the `handoff-gates` `plan-readiness` lane. Rate the plan for execution confidence (8\u002F10 floor, 9\u002F10 target), report the rating in the current handoff, and do not persist it or execute below 8\u002F10.\n\nIf you find issues during the self-review, fix them inline and re-run the plan-readiness gate. If you find a spec requirement with no task, add the task.\n\n## Execution Handoff\n\nAfter the saved plan meets the readiness floor and its `Execution Strategy` field matches the gate's plan-specific recommendation, link the saved plan for human review before implementation. If the human already explicitly supplied an execution method, preserve it: ask them to review the saved plan and confirm that it captures what they want, without reopening lane selection. Otherwise, report the lane selected by the gate, its nearest alternative, the plan evidence and trade-off, and the execution cost:\n\n> \"Plan complete and saved to `\u003Cdeclared plan path>`. Plan-readiness selected `\u003Cstrategy>` over `\u003Calternative>` because `\u003Cplan-specific evidence and trade-off>`. The plan-readiness rating is `\u003CX>\u002F10`. Do you want to proceed with the selected strategy, or switch to another lane?\"\n\nDescribe the choice accurately: `subagent-driven-development` buys a fresh implementer and reviewer per task plus whole-branch review; Native `executing-plans` keeps implementation inline and buys one fresh whole-branch review. Recommend from task coupling, consequence, and verification burden—not from a blanket preference for either lane.\n\nIf the user chooses a different lane, note it in the handoff and let the executing skill handle the override. Do not re-derive the whole plan from scratch.\n","## Provenance\n\nThis marketplace-maintained derivative is based on `obra\u002Fsuperpowers` v6.4.1 commit `5bf4e78011075bcfc0dc295f0724994cd123ee71` under the MIT License. Upstream source is not vendored; this directory contains the maintained Superpowers+ implementation.\n\n# Writing Plans\n\n## Overview\n\nWrite comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.\n\nAssume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.\n\n**Announce at start:** \"I'm using the writing-plans skill to create the implementation plan.\"\n\n**First step:** If you were not already routed here by `using-superpowers-plus`, invoke `using-superpowers-plus` first. Then read this skill's baseline (`references\u002Fplanning-baseline.md`) and consult repository-resident planning guidance when the repository declares it, following its own entrypoints and paths. If no applicable local guidance exists, continue with the portable baseline.\n\n**Context:** If working in an isolated worktree, it should have been created via the `using-git-worktrees` skill at execution time.\n\n**Save plans to:** the repository-declared in-flight plan home. Use `.agents\u002Fplans\u002F` only when the repository adopts it or declares no other home.\n\n- (User preferences for plan location override this default)\n\n## Scope Check\n\nIf the spec covers multiple independent subsystems, invoke `writing-roadmaps` to create a sequenced roadmap before writing any plan. If brainstorming already produced a roadmap, write Plan 1 from the roadmap and leave remaining subsystems as pending future plans. Each plan should produce working, testable software on its own.\n\n## When to stop and ask\n\nBefore drafting a task, decide what to do when a plan item is missing scope or detail. Use this decision table:\n\n| Situation                                                                                | Use                                              |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------ |\n| Plan item has no acceptance criteria and the answer is not in durable source or the spec | `asking-clarifying-questions`                    |\n| The whole shape of the solution is unknown                                               | `brainstorming` to update the spec first         |\n| Plan item has acceptance criteria but is large                                           | Write the plan as a high-level draft and iterate |\n| Scope is in the spec but not yet broken into tasks                                       | Write the plan, then review                      |\n\nIf a single missing fact blocks the next step, invoke `asking-clarifying-questions` before guessing.\n\n## Plan Lifecycle\n\nPlans are committed, in-flight execution artifacts. The active plan governs the work across sessions, but it is not durable repository truth.\n\n- **In-flight home:** the repository-declared plan location, preserving its conventions for ordinary and epic plans. If no location is declared, use `.agents\u002Fplans\u002F`. Off-repo scratch is for transient session artifacts only; the plan itself lives in the in-flight plan home.\n- **Commit before handoff:** A plan must exist and be committed before it can be handed to `executing-plans` or `subagent-driven-development`. Execution skills read the saved, committed file, not unsaved editor state.\n- **Completion:** Follow the repository's planning-artifact policy. When it adopts `completed-artifact-custody`, resolve the immutable subscription revision and read its definition and local certification before using `completing-planning-artifacts`. Follow that version's retirement timing and status-recording requirements; the standard ID alone does not upgrade an older subscription. If a human requests the lifecycle without a subscription, apply the current definition only to that request. Under the current semantic definition, promote enduring decisions, retain governing artifacts through the completing PR, and retire eligible artifacts from the current base in the first substantive commit of the next slice; a marker is not required for discovery or retirement. Otherwise, follow local policy; ambient skill availability is not adoption.\n- **Completion boundary:** Checklist items describe work the executing agent can finish in the current slice. Human-owned post-handoff actions such as final approval, changing a PR from Draft to Ready, or merge must not remain as unchecked plan items. When the requested handoff is a fully reviewable Draft PR, complete the agent-owned publication and verification items and close the plan; record later human actions in the handoff or PR state instead. A Draft may keep a plan open only when the work is explicitly declared incomplete.\n- **Roadmap and index links:** Under the adopted custody standard, preserve live parent roadmaps while assessing completed child plans against their own scope. Do not create a permanent completed-artifact index solely for this lifecycle unless repository policy requires one. Non-adopters follow their local policy.\n\n## File Structure\n\nBefore defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.\n\n- Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.\n- You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.\n- Files that change together should live together. Split by responsibility, not by technical layer.\n- In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.\n\nThis structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.\n\n## Task Right-Sizing\n\nA task is the smallest unit that carries its own test cycle and is worth a fresh reviewer's gate. When drawing task boundaries: fold setup, configuration, scaffolding, and documentation steps into the task whose deliverable needs them; split only where a reviewer could meaningfully reject one task while approving its neighbor. Each task ends with an independently testable deliverable.\n\n## Right-Sizing and Escape Hatches\n\nIf you think \"this is a lot\" or \"the plan is huge\" while writing, you are at a scope sizing decision point. **MUST READ:** `references\u002Fplan-scope-sizing.md` and follow one of the three escape hatches before continuing.\n\nA long plan with well-sliced, independently testable tasks is not a problem. The `subagent-driven-development` execution lane is designed for that shape. A plan is too big only when it crosses independent concerns or one of its tasks cannot fit in one review cycle.\n\n## Bite-Sized Task Granularity\n\n**Each step is one action (2-5 minutes):**\n\n- \"Write the failing test\" - step\n- \"Run it to make sure it fails\" - step\n- \"Implement the minimal code to make the test pass\" - step\n- \"Run the tests and make sure they pass\" - step\n- \"Commit\" - step\n\n## Recipient-relative planning\n\nWrite each plan for the executor and stage that will receive it. Always make the observable goal, exclusions, seams, invariants, interfaces, authority, acceptance evidence, and task exits explicit. For Luna or lower-capability executors, pre-resolve consequential alternatives, name exact evidence homes and commands when known, and use finite decision tables where a choice would otherwise be rediscovered during execution. Exact implementation code is optional unless the code shape itself is the contract; specify behavior, interfaces, and evidence rather than pretending pseudocode is a guarantee.\n\n## Plan Document Header\n\n**Every plan MUST start with this header:**\n\n```markdown\n# [Feature Name] Implementation Plan\n\n> **For agentic workers:** REQUIRED SUB-SKILL: Use `subagent-driven-development` (recommended) or `executing-plans` to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.\n\n**Goal:** [One sentence describing what this builds]\n\n**Architecture:** [2-3 sentences about approach]\n\n**Tech Stack:** [Key technologies\u002Flibraries]\n\n**Spec:** [path to the spec\u002Fdesign doc this plan implements — the plan\nargues from the spec, so the spec travels with it; executors read both]\n\n**Execution Strategy:** `subagent-driven-development` (default for independent tasks) — `executing-plans` (for tightly coupled\u002Fsequential tasks), `dispatching-parallel-agents` (for 2+ independent parallel tracks), or `manual` (for human-driven work). The planner picks the recommended lane.\n\n## Global Constraints\n\n[The spec's project-wide requirements — version floors, dependency limits,\nnaming and copy rules, platform requirements — one line each, with exact\nvalues copied verbatim from the spec. Every task's requirements implicitly\ninclude this section.]\n\n## Review Focus\n\n[Up to five input classes or failure modes the spec implies but the draft\ntasks do not yet exercise, most likely first. Name the condition and the\nbehavior a reasonable user would expect. For every line, add the covering\ntest to the task that owns the code; this section is the index, not a\nsubstitute for tests in the owning task. An empty section means the review\nfound no uncovered case.]\n\n---\n```\n\n## Task Structure\n\n````markdown\n### Task N: [Component Name]\n\n**Files:**\n- Create: `exact\u002Fpath\u002Fto\u002Ffile.py`\n- Modify: `exact\u002Fpath\u002Fto\u002Fexisting.py:123-145`\n- Test: `tests\u002Fexact\u002Fpath\u002Fto\u002Ftest.py`\n\n**Interfaces:**\n- Consumes: [what this task uses from earlier tasks — exact signatures]\n- Produces: [what later tasks rely on — exact function names, parameter\n  and return types. A task's implementer sees only their own task; this\n  block is how they learn the names and types neighboring tasks use.]\n\n- [ ] **Step 1: Write the failing test**\n\n```python\ndef test_specific_behavior():\n    result = function(input)\n    assert result == expected\n```\n\n- [ ] **Step 2: Run test to verify it fails**\n\nRun: `pytest tests\u002Fpath\u002Ftest.py::test_name -v`\nExpected: FAIL with \"function not defined\"\n\n- [ ] **Step 3: Write minimal implementation**\n\n```python\ndef function(input):\n    return expected\n```\n\n- [ ] **Step 4: Run test to verify it passes**\n\nRun: `pytest tests\u002Fpath\u002Ftest.py::test_name -v`\nExpected: PASS\n\n- [ ] **Step 5: Commit**\n\n```bash\ngit add tests\u002Fpath\u002Ftest.py src\u002Fpath\u002Ffile.py\ngit commit -m \"feat: add specific feature\"\n```\n````\n\n## No Placeholders\n\nEvery step must contain the actual content an engineer needs. These are **plan failures** — never write them:\n\n- \"TBD\", \"TODO\", \"implement later\", \"fill in details\"\n- \"Add appropriate error handling\" \u002F \"add validation\" \u002F \"handle edge cases\"\n- \"Write tests for the above\" (without actual test code)\n- \"Similar to Task N\" (repeat the code — the engineer may be reading tasks out of order)\n- Steps that describe what to do without showing how (code blocks required for code steps)\n- References to types, functions, or methods not defined in any task\n\n## Self-review & plan-readiness gate\n\nAfter writing the complete plan, look at the spec with fresh eyes and check the plan against it. Then use `handoff-gates` `plan-readiness` lane as the plan-readiness gate. These are the same step: the self-review produces the plan, and the readiness gate rates it.\n\n**1. Spec coverage:** Skim each section\u002Frequirement in the spec. Can you point to a task that implements it? List any gaps.\n\n**2. Placeholder scan:** Search your plan for red flags — any of the patterns from the \"No Placeholders\" section above. Fix them.\n\n**3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.\n\n**4. Review Focus:** With the spec in front of you, identify up to five untested input classes or failure modes most likely to bite a reasonable user. Put them in `Review Focus`, then add each covering test to the owning task.\n\n**5. Plan Size and Lane Check:** Did you think the plan was too large while writing? If yes, did you apply one of the escape hatches in `references\u002Fplan-scope-sizing.md`? Is the `Execution Strategy` field filled with an allowed value and a clear rationale? Treat the template's `subagent-driven-development (recommended)` parenthetical as a candidate, not proof. After the full task structure is visible, ask which lane you actually recommend and compare it with the nearest credible alternative using the evidence required by `handoff-gates` `plan-readiness`. Do not use plan length or task count alone. After the gate, rewrite the saved `Execution Strategy` field to match its selected lane and add a concise plan-specific reason. The gate result is authoritative for the saved field. Keep the required subskill header unchanged.\n\n**6. Plan-readiness rating:** Use the `handoff-gates` `plan-readiness` lane. Rate the plan for execution confidence (8\u002F10 floor, 9\u002F10 target), report the rating in the current handoff, and do not persist it or execute below 8\u002F10.\n\nIf you find issues during the self-review, fix them inline and re-run the plan-readiness gate. If you find a spec requirement with no task, add the task.\n\n## Execution Handoff\n\nAfter the saved plan meets the readiness floor and its `Execution Strategy` field matches the gate's plan-specific recommendation, link the saved plan for human review before implementation. If the human already explicitly supplied an execution method, preserve it: ask them to review the saved plan and confirm that it captures what they want, without reopening lane selection. Otherwise, report the lane selected by the gate, its nearest alternative, the plan evidence and trade-off, and the execution cost:\n\n> \"Plan complete and saved to `\u003Cdeclared plan path>`. Plan-readiness selected `\u003Cstrategy>` over `\u003Calternative>` because `\u003Cplan-specific evidence and trade-off>`. The plan-readiness rating is `\u003CX>\u002F10`. Do you want to proceed with the selected strategy, or switch to another lane?\"\n\nDescribe the choice accurately: `subagent-driven-development` buys a fresh implementer and reviewer per task plus whole-branch review; Native `executing-plans` keeps implementation inline and buys one fresh whole-branch review. Recommend from task coupling, consequence, and verification burden—not from a blanket preference for either lane.\n\nIf the user chooses a different lane, note it in the handoff and let the executing skill handle the override. Do not re-derive the whole plan from scratch.\n",{"name":5,"license":15,"metadata":24,"description":7},{"owner":12,"status":25,"use_when":26,"source-id":5,"source-path":30,"related_skills":31,"do_not_use_when":37,"provenance-name":41,"source-category":42},"active",[27,28,29],"an approved spec exists for a multi-step task.","the goal fits a single tight implementation plan.","implementation code has not yet been changed.","skills\u002Fwriting-plans\u002FSKILL.md",[32,33,34,35,36],"brainstorming","handoff-gates","executing-plans","subagent-driven-development","writing-roadmaps",[38,39,40],"the spec covers multiple independent subsystems; invoke writing-roadmaps to create a roadmap before writing plans.","implementation has already started.","a substitute for brainstorming.","Writing Plans first-party skill","first_party","main","61dfbcb84501e21a9904b55b207485abcb0b2ffa","skills\u002Fwriting-plans","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace","https:\u002F\u002Fgithub.com\u002FHarleyBartles","Full Stack Software Engineer","2026-10-08 23:51:53",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add HarleyBartles\u002Fagent-asset-marketplace --skill writing-plans",{"tool":56,"command":57},"bunx","bunx skills add HarleyBartles\u002Fagent-asset-marketplace --skill writing-plans",{"tool":59,"command":60},"pnpm","pnpm dlx skills add HarleyBartles\u002Fagent-asset-marketplace --skill writing-plans","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002FSKILL.md",true,[64,70,74,78,82],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"agents\u002Fopenai.yaml","REFERENCE","参考文档",391,"https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002Fagents\u002Fopenai.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"plan-document-reviewer-prompt.md",1713,"https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002Fplan-document-reviewer-prompt.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fplan-scope-sizing.md",1924,"https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002Freferences\u002Fplan-scope-sizing.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fplanning-baseline.md",740,"https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002Freferences\u002Fplanning-baseline.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"tests\u002Fpressure\u002Fcustom-repository-homes.md",830,"https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002Ftests\u002Fpressure\u002Fcustom-repository-homes.md",[87,94,101,108,114,121],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M76WCC1A6JQP15DX8HPZ5C5J","writing","Use when drafting, revising, or reviewing prose for human readers and clarity, an authorised voice, or reader-fatigue concerns may interact.","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M76WC4DSHYD15E8BDPQ433XF","writing-with-clarity","Use when drafting, revising, or reviewing prose intended for human readers, including documentation, README files, reports, explanations, UI copy, errors, comments, commit messages, and pull request text.","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-with-clarity\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M76WBZ9MYM991K6QKY1DN4MK","writing-style","Use when revising or reviewing human-facing prose against an authorised voice card or a contextual reader-fatigue profile.","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-style\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M76WBVKC1Y158TTZJR400A4J","skill","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002Ftemplates\u002Fskill\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M76WBFD4D1XY20075H00AGYK","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment.","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":122,"name":36,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M76WB8S7XZZFTFFCFYW1J9CW","Use when a goal is too large for one writing-plans plan and requires a sequenced roadmap of consecutive plans.","https:\u002F\u002Fgithub.com\u002FHarleyBartles\u002Fagent-asset-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-roadmaps\u002FSKILL.md",[],[]]