Skip to content
Back to skills

Writing Plans Codex

ASecurity

Use when you have a spec or requirements for a multi-step task, before touching code. Codex-backed variant.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
developmentgo

Works with

  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add mzored/superpowers-cc-to-codex --skill writing-plans-codex --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Plans Codex?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Writing Plans Codex
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mzored-writing-plans-codex/badge)](https://www.skillsdirectory.com/skills/mzored-writing-plans-codex)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: writing-plans-codex
description: Use when you have a spec or requirements for a multi-step task, before touching code. Codex-backed variant.
disable-model-invocation: true
---
<!--
Upstream source: obra/superpowers skills/writing-plans/SKILL.md
Last synced: 2026-04-03
Divergence: Codex-backed plan drafter for first pass; Claude reviews and finalizes; plugin-local template refs
-->

# Writing Plans

**Announce at start:** "I'm using the writing-plans skill to create the implementation plan."

**Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`
- (User preferences for plan location override this default)

<HARD-GATE>
You MUST call codex_plan in Step 2. You cannot write the plan yourself.
The plan drafter produces the first draft; Claude reviews and refines.
No codex_plan call = cannot proceed to review or saving.
</HARD-GATE>

## Checklist

You MUST create a task for each of these items and complete them in order:

1. **Scope check** — if the spec covers multiple independent subsystems, suggest breaking into separate plans (one per subsystem, each producing working testable software)
2. **Dispatch Codex plan drafter** — call the `codex_plan` MCP tool.
   Pass the approved spec verbatim as the `prompt` body; do not summarize it.
   Start the prompt with:

```json
{
  "tool": "codex_plan",
  "arguments": {
    "prompt": "Turn this approved spec into a detailed implementation plan.\n\nPaste the full approved spec below this line with no omissions or paraphrasing.\n\n<spec goes here>",
    "workspaceRoot": "/absolute/path/to/your/repo"
  }
}
```
3. **Handle the response:**

   - **Success (`result` populated):** the draft conforms to `schemas/plan-draft.schema.json` (`plan_markdown`, `files`, `tasks`, `test_commands`, `commit_boundaries`). Proceed to review (Step 4).
   - **Partial / missing fields:** treat as a draft to refine — re-dispatch `codex_plan` with a sharper prompt naming the missing pieces, or address the gaps inline during review.
   - **Error (no `result`):** inspect `stderrTail` and the resume hint in the error message; resume with `codex_resume(taskId="…")` once the cause is resolved.

4. **Review the draft** — Claude reviews the returned plan against the spec (see Self-Review below)
5. **Fix issues** — edit the plan inline to fix any gaps found in review
6. **Save plan** — write to `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md` using `plan-template.md` header; commit
7. **Offer execution** — present the plan to the user and offer to execute via superpowers-cc-to-codex:subagent-driven-development-codex

## Self-Review (Claude's Job)

After receiving the Codex draft, review with fresh eyes:

**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 the plan for red flags:
- "TBD", "TODO", "implement later"
- "Add appropriate error handling" / "handle edge cases"
- "Write tests for the above" (without actual test code)
- "Similar to Task N" (code must be repeated)
- Steps without code blocks where code is needed

**3. Type consistency:** Do types, method signatures, and property names used in later tasks match what was defined in earlier tasks?

If you find issues, fix them inline. If you find a spec requirement with no task, add the task.

## Execution Handoff

After saving the plan:

> "Plan complete and saved to `<path>`. Execute using superpowers-cc-to-codex:subagent-driven-development-codex — dispatches Codex implementer per task with two-stage review."

Files in this skill

  • SKILL.md3.5 KB
  • plan-template.md279 B
  • prompts/planning-brief.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.