skills/plan-decompose/SKILL.md
Decompose a plan or feature description into a beads epic with lightweight skeleton subtasks
npx skillsauth add tmsjngx0/mindcontext-core plan-decomposeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Decompose a plan into a beads epic with lightweight skeleton subtasks. ALL tasks get minimal descriptions by default. Use /enrich to promote individual tasks to self-contained when ready to implement.
===============================================================
PLAN DECOMPOSED (skeleton)
===============================================================
EPIC_ID: <id>
EPIC_TITLE: <title>
TASKS: <count> (all lightweight)
STRUCTURE:
<id.1>: <title> (ready)
<id.2>: <title> (depends: .1)
<id.3>: <title> (depends: .2)
DEPENDENCY GRAPH:
.1 ──▶ .2 ──▶ .3
QUALITY:
Avg description: ~N lines
Ready: N tasks
Next: /enrich <first-ready-id>
===============================================================
===============================================================
PLAN DECOMPOSE — DRY RUN (skeleton, no beads created)
===============================================================
WOULD CREATE EPIC: <title>
WOULD CREATE SUBTASKS (all lightweight):
1. <title> [P3] — <scope>
2. <title> [P3] — <scope>
WOULD SET DEPENDENCIES:
2 depends on 1
Run without --dry-run to create beads.
===============================================================
❌ Plan decomposition failed: <reason>
Fix: <actionable suggestion>
# From a plan file (default: all tasks lightweight skeleton)
/plan-decompose .claude/plans/my-feature.md
# Preview without creating beads
/plan-decompose .claude/plans/my-feature.md --dry-run
# Legacy: all tasks self-contained with TDD classification
/plan-decompose .claude/plans/my-feature.md --enrich-all
# Skip TDD classification (only relevant with --enrich-all)
/plan-decompose .claude/plans/my-feature.md --enrich-all --skip-tdd
# Opt-in: 3-level feature grouping
/plan-decompose .claude/plans/my-feature.md --with-features
# Opt-in: lifecycle beads
/plan-decompose .claude/plans/my-feature.md --with-release --with-pr
/plan-decompose is Step 3 in the confirmed workflow:
Plan (brainstorm) → OpenSpec → /audit spec → /plan-decompose → /enrich → /impl → archive
| Step | Tool | Purpose |
|------|------|---------|
| 1 | brainstorm / plan | Explore problem space, decide approach |
| 2 | openspec proposal <name> | Formalize into proposal + design + specs + tasks |
| 3 | /audit spec | Validate spec quality before decompose |
| 4 | /plan-decompose | Convert to beads epic with skeleton tasks |
| 5 | /enrich <task-id> | Promote ready tasks to self-contained |
| 6 | /impl | Implement enriched tasks |
| 7 | openspec archive <name> | Archive completed proposal |
Input: OpenSpec change directory or plan file from .claude/plans/.
Output: Beads epic with lightweight subtasks.
ALL tasks get lightweight descriptions:
| Aspect | Default |
|--------|---------|
| Description | Lightweight (5-8 lines: scope + deliverables + depends on) |
| Priority | P3 |
| TDD | Skipped (created later via /enrich) |
| TIDY | Skipped (created later via /enrich) |
| Structure | 2-level: epic → task |
| Lifecycle beads | None |
Use /enrich <task-id> to promote a task to self-contained when ready to implement.
| Flag | Description |
|------|-------------|
| --enrich-all | Legacy: ALL tasks get self-contained descriptions + TDD classification + TIDY beads |
| --skip-tdd | Skip TDD beads — test + tidy (only with --enrich-all) |
| --with-features | Opt-in 3-level: epic → feature → task grouping |
| --with-release | Opt-in: create RELEASE lifecycle bead |
| --with-pr | Opt-in: create PR lifecycle bead |
| --dry-run | Preview structure without creating beads |
tools
Bootstrap a project to use mctx by injecting a managed block into AGENTS.md. Tool-agnostic guidance every agent reads. Runs `mctx init` and shows the diff. Use when starting a new project, onboarding a repo, or asked to "init mctx" / "add mctx guidance" / "set up AGENTS.md".
development
Test-Driven Development workflow following Kent Beck's methodology. Auto-loads when user asks about "tdd", "test driven", "red green refactor", "write tests first".
testing
Analyze current session and generate a self-contained context prompt for the next Claude session. Includes project context, decisions, next steps, and tech stack. Use when ending a work session.
tools
Summarize current project state after a long break. Analyzes recent git history, beads issues, and memory to produce a one-page orientation. Use when returning to a project cold, or when asking "what was I doing", "where did I leave off".