gantisstorm/essentials-claude-code/plan-schema
Claude Code and agent skill by gantisstorm/essentials-claude-code
- community
Checking that the SKILL.md file is still in the repository.
Plan file (.claude/plans/*-plan.md) reference — sections, per-file format, dependency graph, and converter mappings
Install
npx vskill@latest install gantisstorm/essentials-claude-code/plan-schemaSKILL.md
Plan file schema reference for architectural plans created by /plan-creator, /bug-plan-creator, and /code-quality-plan-creator. Use this when creating, editing, or reviewing .claude/plans/*-plan.md files.
When to Use
Invoke /plan-schema before manually editing any plan file. Invoke /plan-schema validate <path> to check an existing plan.
Core Concepts
Plans are markdown files in .claude/plans/ that specify HOW to implement a feature, fix, or improvement. They are consumed by:
/plan-loopand/plan-swarm— execute plans directly/tasks-converter— converts to prd.json for/tasks-loop,/tasks-swarm, or RalphTUI/beads-converter— converts to beads for/beads-loop,/beads-swarm, or RalphTUI
Conversion Pipeline
Plans are the intermediate representation between creators and executors:
Direct execution (/plan-loop, /plan-swarm) reads the plan file and implements each file entry in dependency order. No intermediate format needed.
Converted execution (/tasks-converter, /beads-converter) transforms the plan into prd.json or beads. Each task/bead gets a 100% self-contained description — the executor agent receives only the task description, never the source plan. All code, requirements, and verification commands are copied verbatim from the plan.
File Naming
| Creator | Pattern | Example | |
|---|---|---|---|
/plan-creator | {feature-slug}-{hash5}-plan.md | oauth2-authentication-a3f9e-plan.md | |
/bug-plan-creator | bug-plan-creator-{identifier}-{hash5}-plan.md | bug-plan-creator-auth-null-pointer-4k2m7-plan.md | |
/code-quality-plan-creator | code-quality-{filename}-{hash5}-plan.md | code-quality-auth_service-3m8k5-plan.md |
Slug: kebab-case, concise. Hash: 5-char lowercase alphanumeric.
Required Sections
Every plan must have these sections in order:
| Section | Purpose | Converter Use | |
|---|---|---|---|
## Summary | 2-3 sentence executive summary | name and description fields | |
## Files | Canonical list of files to edit/create | Task/bead count | |
## Code Context | Raw investigation findings with file:line refs | Copied into task descriptions | |
## External Context | API docs, library references, best practices | Copied into task descriptions | |
## Architectural Narrative | Architecture, approach, requirements, constraints | Requirements → acceptanceCriteria | |
## Implementation Plan | Per-file instructions with full code | Task/bead description body | |
## Dependency Graph | Phase table mapping files to execution order | dependsOn (prd.json) / bd dep add (beads) | |
## Exit Criteria | Test commands and success conditions | acceptanceCriteria / bead exit criteria |
Additional Sections by Plan Type
| Plan Type | Extra Sections | |
|---|---|---|
| Bug plan | ## Error Analysis (Original Error, Root Cause, Code Path), ## Investigation Findings (Evidence, Hypothesis Testing, Root Cause Location) | |
| Code quality plan | ## LSP Analysis Summary (Symbols Found, Reference Analysis) |
Section Details
Summary
Files
Code Context
External Context
Architectural Narrative
Contains these subsections (all required):
| Subsection | Content | |
|---|---|---|
### Task | Detailed task description | |
### Architecture | Current system architecture with file:line references | |
### Selected Context | Relevant files and what they provide | |
### Relationships | Component dependencies and data flow | |
### External Context | Key documentation findings | |
### Implementation Notes | Patterns, edge cases, specific guidance | |
### Ambiguities | Open questions or decisions made | |
### Requirements | Numbered acceptance criteria — ALL must be satisfied | |
### Constraints | Hard technical constraints | |
### Selected Approach | Single chosen approach with rationale (see below) |
Selected Approach format:
Bug plans use ### Fix Strategy instead of ### Selected Approach (same format).
Implementation Plan
Per-file instructions. Each file gets its own subsection:
// COMPLETE implementation — copy-paste ready // ALL imports, ALL functions, ALL logic
// BEFORE (current code at line X): const oldCode = something()
// AFTER (new code): const newCode = somethingBetter()
Dependency Graph
Maps files to phased execution order. Source of truth for converter dependency wiring.
Rules:
- Phase 1 = files with no dependencies on other plan files
- Phase N+1 = files whose deps are ALL in phases <= N
- Same phase = parallel (no inter-dependencies)
- Dependency = real code dependency (imports, extends, uses)
- Every file from
## Filesmust appear in this table
Exit Criteria
[test-command] # e.g., npm test, pytest, go test ./... [lint-command] # e.g., npm run lint, ruff check [typecheck-command] # e.g., npm run typecheck, mypy .
[test-command] && [lint-command] && [typecheck-command]
Converter Mapping
How converters translate plan sections into task/bead fields:
| Plan Section | prd.json Field | Beads (bd) Field | |
|---|---|---|---|
## Summary | name, description | Epic title, description | |
## Files | Task count / boundaries | Bead count / boundaries | |
### Requirements | acceptanceCriteria[] | Bead exit checklist | |
### Reference Implementation | description (full code) | -d body (full code) | |
### Migration Pattern | description (before/after) | -d body (before/after) | |
## Dependency Graph | dependsOn[] (story IDs) | bd dep add commands | |
## Exit Criteria | acceptanceCriteria[] | Bead exit criteria | |
Per-file Dependencies | Maps to dependsOn via file→ID | Maps to bd dep add via file→bead ID | |
Per-file Provides | Validates dependency consistency | Validates dependency consistency |
Banned Anti-Patterns
These phrases are forbidden in plans — replace with exact specifications:
Replace with: exact exceptions, specific line numbers, file:line references, explicit lists, exact import statements, complete signatures with types.
Validation Checklist
Structure
- [ ] All required sections exist (Summary, Files, Code Context, External Context, Architectural Narrative, Implementation Plan, Dependency Graph, Exit Criteria)
- [ ] Each per-file entry has: Purpose, Changes (numbered with line numbers), Reference Implementation, Dependencies, Provides
Dependencies
- [ ] Every per-file
Dependencieshas a matchingProvidesin another file - [ ] No circular dependencies
- [ ] Interface signatures are identical everywhere they appear
- [ ] Dependency Graph table includes ALL files from
## Files - [ ] Phase assignments match per-file Dependencies
- [ ] Phase 1 files have no dependencies on other plan files
Consumer Readiness
- [ ] Each file's instructions are implementable without questions
- [ ] All function signatures include full types
- [ ] All imports listed
- [ ] Line numbers provided for edits
- [ ] Full reference implementation code included (not patterns)
Requirements Coverage
- [ ] Every requirement maps to at least one file change
- [ ] No requirements are orphaned
Instructions
Parse $ARGUMENTS to determine mode.
If $ARGUMENTS starts with validate:
Extract the path from $ARGUMENTS (e.g., /plan-schema validate .claude/plans/auth-a3f9e-plan.md).
Read the plan file and check against the validation checklist:
- Check all required sections exist
- Check each per-file entry has required subsections
- Check Dependency Graph includes all files from
## Files - Check for banned anti-patterns
- Check Dependencies/Provides consistency
- Report violations with the fix from the schema above
If $ARGUMENTS is empty:
Output the quick reference:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingessentials/skills/plan-schema/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gantisstorm/essentials-claude-code/plan-schema)