Generate a plan for how an agent should accomplish a complex coding task. Use when a user asks for a plan, and optionally when they want to save, find, read, update, or delete plan files in the repo ...
Draft structured plans that clarify intent, scope, requirements, action items, testing/validation, and risks.
Optionally, save plans to disk as markdown files with YAML frontmatter and free-form content. When drafting in chat, output only the plan body without frontmatter; add frontmatter only when saving to disk. Only write to the repo .codex/plans folder; do not modify application code.
This skill can also be used to draft codebase or system overviews.
<repo>/.codex/plans, using CODEX_PROJECT_ROOT, CODEX_PLAN_DIR, or a git root detected from cwd.<repo>/.codex/plans; avoid edits elsewhere in the repo.name and description (single-line values) for on-disk plans.# Plan.<name>.md.scripts/list_plans.py for quick summaries (run with CODEX_PROJECT_ROOT or from the repo).scripts/read_plan_frontmatter.py to validate a specific plan.scripts/create_plan.py.name and filename together.Create a plan file (body only; frontmatter is written for you). Run from the repo root or pass CODEX_PROJECT_ROOT/CODEX_PLAN_DIR:
CODEX_PROJECT_ROOT="$PWD" python /path/to/plan/scripts/create_plan.py \
--name codex-rate-limit-overview \
--description "Scope and update plan for Codex rate limiting" \
--body-file /tmp/plan-body.md
Read frontmatter summary for a plan:
python /path/to/plan/scripts/read_plan_frontmatter.py ./.codex/plans/codex-rate-limit-overview.md
List plan summaries (optional filter; run from the repo root or set CODEX_PROJECT_ROOT):
CODEX_PROJECT_ROOT="$PWD" python /path/to/plan/scripts/list_plans.py --query "rate limit"
Use one of the structures below for the plan body. When drafting, output only the body (no frontmatter). When saving, prepend this frontmatter:
---
name: <plan-name>
description: <1-line summary>
---
# Plan
<1-3 sentences: intent, scope, and approach.>
## Requirements
- <Requirement 1>
- <Requirement 2>
## Scope
- In:
- Out:
## Files and entry points
- <File/module/entry point 1>
- <File/module/entry point 2>
## Data model / API changes
- <If applicable, describe schema or contract changes>
## Action items
[ ] <Step 1>
[ ] <Step 2>
[ ] <Step 3>
[ ] <Step 4>
[ ] <Step 5>
[ ] <Step 6>
## Testing and validation
- <Tests, commands, or validation steps>
## Risks and edge cases
- <Risk 1>
- <Risk 2>
## Open questions
- <Question 1>
- <Question 2>
# Plan
<1-3 sentences: intent and scope of the overview.>
## Overview
<Describe the system, flow, or architecture at a high level.>
## Diagrams
<Include text or Mermaid diagrams if helpful.>
## Key file references
- <File/module/entry point 1>
- <File/module/entry point 2>
## Auth / routing / behavior notes
- <Capture relevant differences (e.g., auth modes, routing paths).>
## Current status
- <What is live today vs pending work, if known.>
## Action items
- None (overview only).
## Testing and validation
- None (overview only).
## Risks and edge cases
- None (overview only).
## Open questions
- None.