ワンクリックで
deepwork-writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when you have a spec or requirements for a multi-step task, before touching code
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use after all implementation tasks complete, after major features are integrated, or before merging to verify work meets requirements
MUST USE when the user asks for deepwork-style planning, multi-agent execution, code review, research, or workflow routing inside Codex.
Use when executing implementation plans with independent tasks in the current session
Use after all implementation tasks complete, after major features are integrated, or before merging to verify work meets requirements
Use when executing implementation plans with independent tasks in the current session
Use before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
SOC 職業分類に基づく
| name | deepwork-writing-plans |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
Write 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.
Assume 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.
Save plans to: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md
Do not write a plan just because a task has more than one step. Use a file-backed plan only when the work is relatively complex and has a clear purpose, and after discovery still has unclear boundaries, dependencies, success criteria, or needs durable coordination across multiple tasks or agents. Examples: multi-file cross-module changes, novel behavior, security/perf/migration work, or any task where a downstream builder would need a durable artifact to stay aligned.
For work with clear boundaries and a single obvious path, a contextual lightweight plan in the notepad or todo list is enough. Do not escalate to a file-backed plan + plan-critic review for trivial or low-uncertainty work.
Planner trigger summary:
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
Before 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.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
A task is the smallest unit that has its own test cycle. Tasks that are too large create context bloat for the implementer and make review harder; tasks that are too small create coordination overhead without value.
Each step is one action (2-5 minutes):
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For agentic workers:** Use the subagent-driven-development skill to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
**Global Constraints:** [Project-level constraints from the spec — version floors, dependency limits, naming/copy rules, platform requirements. Copy verbatim from the spec, one constraint per line. Each task implicitly includes these.]
---
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
**Interfaces:**
- Consumes: [What this task uses from upstream tasks — exact function/type names and signatures, e.g. `parseConfig(path: string): Config` from Task 1]
- Produces: [What downstream tasks depend on — exact function/type names and signatures, e.g. `validateInput(input: Input): Result`]
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
Every step must contain the actual content an engineer needs. These are plan failures — never write them:
After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
1. Spec coverage: Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
2. Placeholder scan: Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.
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.
If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
After self-review passes, submit the plan to the plan-critic agent for a mandatory review loop. A review round covers exactly one saved, complete, current plan revision. A current receipt is valid only when that round returns an explicit [OKAY] or [OKAY-UNAMBIGUOUS]; any plan edit invalidates every earlier receipt.
Timeouts, WORKING, acknowledgements, partial output, a missing verdict, or a review of an older/incomplete plan are not approval. Wait for a complete verdict, follow up, or re-dispatch the critic for the current full plan. Dispatch success is not a receipt.
Loop procedure:
Save the complete plan, then submit that exact plan path to the plan-critic agent.
Dispatch the plan-critic agent and wait for one explicit verdict for the current revision.
Branch on the verdict:
| Verdict | Meaning | Action |
|---|---|---|
[REJECT] | Critical blockers exist; plan not executable as-is | Apply the blocker fixes (max 3), re-run self-review, save the updated complete plan, then begin a fresh critic round. |
[OKAY] | Plan is executable; residual uncertainty/ambiguity remains | Exit the loop. Proceed to user approval (unless delegation applies). |
[OKAY-UNAMBIGUOUS] | Plan is executable AND logically clear with no ambiguity | Exit the loop. Skip user approval. Proceed to Execution Handoff. |
Loop cap (user delegation "review N 次就下一步"):
If the user has delegated with "review N 次就下一步" / "review N times then proceed", cap the loop at N iterations. After N iterations:
[REJECT], or no current receipt exists: record unresolved blockers in the plan (as a "Known Unresolved Blockers" section) and proceed only under the explicit status delegated-without-plan-approval. Do not call this approved, passed, or receipted.[OKAY] or [OKAY-UNAMBIGUOUS] reached before N: exit early.Plan approval conditionality:
After the loop exits, determine whether user approval is required:
Auto-skip if ANY of:
[OKAY-UNAMBIGUOUS].Require user approval otherwise (loop exited with [OKAY], no delegation). Present the plan:
"Plan written to
<path>. plan-critic verdict:[OKAY](executable, residual uncertainty). Please review and approve before execution, or delegate with '你自己决定' / '无需批准自行继续' to proceed."
Wait for the user's response. If they request changes, make them, re-run self-review, and re-run the plan-critic loop for the changed plan. Only proceed once the user approves or delegates.
oracle may provide an optional, independent consultation for a high-risk plan, but it never replaces the current plan-critic receipt and does not create a mandatory dual-review gate.
Proceed to the subagent-driven-development skill only with a current plan-critic receipt, user approval where required, or an explicitly labeled delegated-without-plan-approval exception. Report the current receipt verdict or waiting for receipt; never treat a dispatch timeout or acknowledgement as pass.
Execution:
update_plan.task(...), use the current callable Codex subagent-dispatch tool and preserve the task contract. Treat an agent_type, agent_path, or agent_nickname field as an exact profile selector only when its current schema or documentation explicitly guarantees that behavior; otherwise prefer complete direct composition, then generic/flat dispatch.TASK, ROLE, DELIVERABLE, SCOPE, VERIFY, REQUIRED SKILLS, CONTEXT, and CONSTRAINTS; do not claim it loaded a dw-* profile.