codex-plan-writer
/codex-plan-writer
Use for complex coding requests that need a structured implementation plan with dependencies, checkpoints, and verification criteria.
- Author
- Bang-isme ↗
- Repository
- CodexAI---Skills ↗
- Licence
- MIT
- Last repository change
- 23.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use for complex coding requests that need a structured implementation plan with dependencies, checkpoints, and verification criteria.
Original author description
Use for complex coding requests that need a structured implementation plan with dependencies, checkpoints, and verification criteria.
How it works
- TL;DR
- Activation
- Output File Naming
- Output Location
- Scope Check
- Plan Document Header
- Required Plan Structure
- Plan Granularity: Bite-Sized Tasks
- No Placeholders
- Rules
SKILL.md preview
---
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
---
## TL;DR
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. Follow the shared confirmation policy in `skills/codex-workflow-autopilot/references/workflow-routing-contract.json`: for a plan-only request, present the plan and stop; when the user explicitly requested implementation, an internal plan may proceed within the authorized scope. Pause only for an unapproved material decision, risk, or scope change.
# Plan Writer
## Activation
1. Activate during workflow planning phases.
2. Activate on explicit `$codex-plan-writer` or `$plan`.
3. Mandatory for complex requests with scope `medium` or `large`.
**Announce at start:** "I'm using codex-plan-writer to create the implementation plan."
## Output File Naming
- Derive a short kebab-case slug from the task intent (2-3 keywords).
- Maximum 30 characters.
- Examples: `ecommerce-cart.md`, `login-fix.md`, `dark-mode.md`.
## Output Location
Write plan file to project root: `./{task-slug}.md`
## Scope Check
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.
## Plan Document Header
**Every plan MUST start with this header:**
```markdown
# [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]
---
```
## Required Plan Structure
### 1. Overview
- what is being built or changed
- why it matters
### 2. Success Criteria
- measurable "done" conditions
### 3. Tech Stack (if relevant)
- selected technologies and rationale
### 4. File Structure & SILC Integration Seams
**Before defining tasks, map out which files will be created or modified, what each one is responsible for, and where cross-module / cross-domain seams (`SILC-###`) meet.** This is where decomposition decisions and integration contracts get locked in.
- Design units with clear boundaries and well-defined interfaces
- Each file should have one clear responsibility
- Prefer smaller, focused files over large ones
- Files that change together should live together
- Split by responsibility, not by technical layer
- In existing codebases, follow established patterns
- **For multi-module or fullstack work (SILC Rule):** Explicitly state the shared contract between producer and consumer (e.g., DB schema ↔ Backend service ↔ API DTO/Error Envelope ↔ Frontend state/view) and order tasks so the contract and producer are verified before the consumer is wired.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
### 5. Task Breakdown (SDLC + SILC Ordered)
For each task include:
- task name and id
- domain (`frontend | backend | data | devops | qa | mobile | debug`)
- linked `AC-###` and `SILC-###` contract IDs (when a spec or cross-module seam exists)
- priority (`P0 | P1 | P2 | P3`)
- dependencies
- input
- output
- verify method (unit TDD + SILC seam verification when crossing module/API boundaries)
- rollback strategy
### 5.5 Evidence & Monitoring
For medium or high-risk tasks, also include:
- what evidence is required before claiming success
- what signal should be monitored after the change
- what drift or failure would look like
- what fallback path exists if the signal goes red
### 6. Phase X Verification Checklist
- lint passes
- tests pass
- security scan reviewed
- all tasks completed
- `$gate` passes
## Plan Granularity: Bite-Sized Tasks
Each task in an implementation plan should be **completable in 2-5 minutes**. Break down as follows:
1. "Write the failing test" - one step
2. "Run it to verify it fails" - one step
3. "Implement minimal code to pass" - one step
4. "Run tests to verify they pass" - one step
5. "Commit" - one step
### Task Structure
````markdown
### 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:
- **Files:** Exact paths to create/modify/test
- **Code:** Complete code (not "add validation here")
- **Commands:** Exact commands with expected output
- **Verification:** How to confirm this task is done
- **Evidence:** What makes the step specific and believable
## No Placeholders
Every step must contain the actual content an engineer needs. These are **plan failures** — never write them:
- "TBD", "TODO", "implement later", "fill in details"
- "Add appropriate error handling" / "add validation" / "handle edge cases"
- "Write tests for the above" (without actual test code)
- "Similar to Task N" (repeat the code — the engineer may be reading tasks out of order)
- Steps that describe what to do without showing how (code blocks required for code steps)
- References to types, functions, or methods not defined in any task
## Rules
- Do not use vague placeholders in implementation tasks.
- Keep tasks small and verifiable.
- Explain why each task exists, not only what to do.
- Exact file paths always.
- Complete code in every step — if a step changes code, show the code.
- Exact commands with expected output.
- DRY, YAGNI, TDD, frequent commits.
## Self-Review
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 & SILC Seam Consistency:** Do the types, method signatures, API routes, request/response DTO fields, error envelopes, and property names used in consumer tasks (e.g., Frontend UI) match what you defined in producer tasks (e.g., Backend API / DB schema)? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7, or an API returning `userId` while the UI reads `user_id`, is a plan failure.
If you find issues, fix them inline. If you find a spec requirement with no task, add the task.
## Execution Handoff
For a standalone plan-only request, present the plan and offer an execution choice. When the plan supports an already-authorized implementation request, follow that workflow and continue within its scope without asking the user to approve the same work again.
**"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:**
- Use `codex-subagent-execution` skill
- Fresh subagent per task + two-stage review
**If Inline Execution chosen:**
- Execute tasks sequentially in current session
- Run `$gate` after each batch of 3 tasks
## Script Invocation Discipline
1. When plan execution calls scripts from other skills, run `--help` first.
2. Treat scripts as black-box helpers and execute by contract.
3. Read script source only when customization or bug fixing is required.
## Exit Gate
Plan writing is complete only when:
1. plan file exists at `./{task-slug}.md`
2. all required sections exist (including File Structure and No Placeholders)
3. self-review completed (spec coverage, placeholder scan, type consistency)
4. the plan can survive strict deliverable validation via `run_gate.py --output-file <plan.md>` without falling back to generic filler
5. for a plan-only request, the plan is presented and the workflow stops before implementation; an internal plan for an explicit implementation request proceeds within the authorized scope unless a new material decision or risk requires approval
## Reference Files
- `references/plan-document-reviewer-prompt.md`: subagent dispatch template for automated plan quality verification.
## Related Skills
| 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` |
Files in this package (3)
- SKILL.md 10 KB
- agents/openai.yaml 1 KB
- references/plan-document-reviewer-prompt.md 2 KB
Versions
The database has no other skills named codex-plan-writer.
Database snapshot: 13.11.2026 · package version bf7d552cf94b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100plan-writing
Structured task planning with clear breakdowns, dependencies, and verification criteria. Use when implementing features, refactoring, or any multi-step work. - 90panda-plan
Create engineering implementation plans from requirements and existing source when the user needs ordered tasks, dependencies, acceptance criteria, risks, and verification before execution. - 100plan-work
Break down an issue or task into concrete implementation steps with file locations, code changes, and acceptance criteria. Use when the user asks to "plan the implementation", "break down this task", "create an implementation plan", or needs a structured plan before coding. - 100create-plan
Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. All plans MUST be… - 100plan
This skill should be used when the user asks to 'write a plan', 'plan implementation', 'plan milestone', 'create implementation plan', or when planning complex changes — new features, architecture changes, multi-file work, or anything with ambiguous scope. Writes a validated… - 100claude-plan
Ask Claude Code to produce an implementation plan before you write code. Use when the task is complex, touches multiple files, or has unclear requirements. Claude returns a numbered step-by-step plan with file paths and interfaces — you implement it.