一键导入
codex-plan-writer
Use for complex coding requests that need a structured implementation plan with dependencies, checkpoints, and verification criteria.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for complex coding requests that need a structured implementation plan with dependencies, checkpoints, and verification criteria.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codex-plan-writer |
| description | Use for complex coding requests that need a structured implementation plan with dependencies, checkpoints, and verification criteria. |
| load_priority | on-demand |
Create {task-slug}.md plan file for complex requests. Map file structure first. Required sections: Overview, Success Criteria, Tech Stack, File Structure, Task Breakdown (TDD steps, dependencies, verify), Phase X Checklist. No placeholders. Self-review before presenting. Offer execution handoff. Wait for user approval.
$codex-plan-writer or $plan.medium or large.Announce at start: "I'm using codex-plan-writer to create the implementation plan."
ecommerce-cart.md, login-fix.md, dark-mode.md.Write plan file to project root: ./{task-slug}.md
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during the design phase. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For agentic workers:** Use `$sdd` (codex-subagent-execution) or execute inline.
> Follow `$tdd` (RED-GREEN-REFACTOR) for each implementation step.
> 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]
---
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.
For each task include:
frontend | backend | mobile | debug)P0 | P1 | P2 | P3)For medium or high-risk tasks, also include:
$gate passesEach task in an implementation plan should be completable in 2-5 minutes. Break down as follows:
### 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`
- [ ] **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: `python -m 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: `python -m 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"
```
Each task MUST include:
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. If you find a spec requirement with no task, add the task.
After saving the plan, offer execution choice:
"Plan complete and saved to ./{task-slug}.md. Two execution options:
1. Subagent-Driven ($sdd) — I dispatch a fresh subagent per task, review between tasks, fast iteration
2. Inline Execution — Execute tasks in this session, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
codex-subagent-execution skillIf Inline Execution chosen:
$gate after each batch of 3 tasks--help first.Plan writing is complete only when:
./{task-slug}.mdrun_gate.py --output-file <plan.md> without falling back to generic fillerreferences/plan-document-reviewer-prompt.md: subagent dispatch template for automated plan quality verification.| Skill | Integration |
|---|---|
codex-subagent-execution | Executes the plan this skill produces |
codex-test-driven-development | Each task follows TDD cycle |
codex-verification-discipline | Verify before claiming plan is complete |
codex-branch-finisher | After all plan tasks complete, use $finish |
Use for project memory, decisions, handoffs, genome, knowledge index, changelog, and patterns that must persist across sessions.
Use for frontend, backend, mobile, debugging, security, or specialized engineering work that needs focused domain references and strict boundaries.
Use for prototype, MVP, fullstack feature, from-scratch feature, or multi-domain work that needs a SPEC.md before planning or implementation. Do not use for tiny one-file edits.
Use when code changes may require documentation updates; maps git diff to candidate docs without auto-editing documentation.
Use before completion, PR, deploy, handoff, or when verifying code changes. Runs advisory or blocking checks and reports evidence.
Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.