agentleFS
josephneumannjosephneumann/claude-corps/skills/deep-plan/SKILL.md

deep-plan

Skill4 starsChanged 8 months agoMITView on GitHub

Use when starting a new feature or idea that needs thorough pre-execution planning. Use instead of calling /product-review, /spec, and review skills individually.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 6 are distinctive, and 18 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 18

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If $FEATURE is empty, ask: "What feature or idea do you want to plan?"

    line 23
  2. Distinctive:

    Do not proceed without a feature description.

    line 25
  3. Very specific:

    Run /product-review via Skill tool with $FEATURE as arguments.

    line 29
  4. Distinctive:

    Wait for completion. The sub-skill handles its own internal checkpoints (interrogation, DVF gate, mode selection).

    line 31
  5. Very specific:

    If --yes: proceed automatically.

    line 35
  6. Very specific:

    If user stops: output "Pipeline stopped after product review.

    line 41
  7. Very specific:

    If --yes: skip this phase (default = skip for opt-in).

    line 45
  8. Very specific:

    If yes: Run /design-shotgun via Skill tool with $FEATURE as arguments.

    line 51
  9. Very specific:

    After /spec finishes, identify the plan file path.

    line 61
  10. Very specific:

    If --yes: proceed to Phase 4 (unless --skip-reviews, then jump to Phase 7).

    line 68
  11. Distinctive:

    If "Skip reviews": jump to Phase 7.

    line 74
  12. Distinctive:

    If "Stop here": jump to Pipeline Summary.

    line 75
  13. Very specific:

    If --skip-reviews: skip to Phase 7.

    line 79
  14. Very specific:

    If --yes: run automatically.

    line 81
  15. Very specific:

    If continue: Run /plan-eng-review via Skill tool with $PLAN_PATH as arguments.

    line 87
  16. Very specific:

    If --no-decompose: skip to Pipeline Summary.

    line 121
  17. Very specific:

    Check if Linear MCP is available (try calling list_teams).

    line 123
  18. Very specific:

    Check if /spec already decomposed during Phase 3 (look for Linear issues associated with the plan).

    line 125
  19. Very specific:

    If --yes: run decomposition automatically.

    line 127
  20. Very specific:

    If yes: Run /spec via Skill tool with $PLAN_PATH as arguments.

    line 133
  21. Distinctive:

    NEVER duplicate sub-skill content.

    line 166
  22. Very specific:

    ALWAYS pass $FEATURE or $PLAN_PATH to sub-skills so they have context.

    line 167
  23. Very specific:

    NEVER skip Phase 1 (product review) or Phase 3 (spec).

    line 168
  24. Distinctive:

    If a sub-skill fails or the user exits it early, stop the pipeline.

    line 170

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/deep-plan $ARGUMENTS

Orchestrate the full planning pipeline in the correct order. Each phase invokes an existing skill via the Skill tool and presents a checkpoint before the next phase.

This skill sequences sub-skills. It does NOT duplicate their content.

Argument Parsing

Arguments: $ARGUMENTS

Parse flags:

  • --yes — Auto-answer all checkpoints with defaults (opt-in phases skip, opt-out phases run). Pass --yes to sub-skills that support it.
  • --skip-reviews — Skip Phases 4-6 (deep eng + design + multi-review). Use when spec's Phase 2.5 inline reviews are sufficient.
  • --no-decompose — Skip Phase 7 (Linear decomposition).
  • Everything else = the feature description. Store as $FEATURE.

If $FEATURE is empty, ask: "What feature or idea do you want to plan?"

Do not proceed without a feature description.

Phase 1: Product Review (always)

Run /product-review via Skill tool with $FEATURE as arguments.

Wait for completion. The sub-skill handles its own internal checkpoints (interrogation, DVF gate, mode selection).

Checkpoint:

If --yes: proceed automatically.

Otherwise, use AskUserQuestion:

  • Question: "Product review complete. Continue to planning?"
  • Options: "Continue to planning" (recommended) / "Stop here — need to rethink"

If user stops: output "Pipeline stopped after product review. Re-run /deep-plan when ready." Then STOP.

Phase 2: Design Exploration (opt-in)

If --yes: skip this phase (default = skip for opt-in).

Otherwise, use AskUserQuestion:

  • Question: "Explore 3-5 different UI directions before writing the spec? Recommended for UI-heavy features."
  • Options: "Yes, explore directions" / "No, go straight to spec" (recommended)

If yes: Run /design-shotgun via Skill tool with $FEATURE as arguments. Wait for completion.

If no: Proceed.

Phase 3: Spec (always)

Run /spec via Skill tool with $FEATURE as arguments.

/spec runs Phase 2.5 (lightweight eng + design review) inline and writes a plan file to docs/plans/. Wait for completion.

After /spec finishes, identify the plan file path. Store as $PLAN_PATH:

ls -t docs/plans/*.md 2>/dev/null | head -1

Checkpoint:

If --yes: proceed to Phase 4 (unless --skip-reviews, then jump to Phase 7).

Otherwise, use AskUserQuestion:

  • Question: "Spec written to $PLAN_PATH. Phase 2.5 ran inline eng + design checks. What next?"
  • Options: "Continue to deep reviews" (recommended) / "Skip reviews, go to decompose" / "Stop here — spec is the deliverable"

If "Skip reviews": jump to Phase 7. If "Stop here": jump to Pipeline Summary.

Phase 4: Engineering Review (opt-out)

If --skip-reviews: skip to Phase 7.

If --yes: run automatically.

Otherwise, use AskUserQuestion:

  • Question: "Run deep engineering review? Full interactive review of architecture, code quality, tests, and performance — goes beyond Phase 2.5."
  • Options: "Continue (recommended)" / "Skip"

If continue: Run /plan-eng-review via Skill tool with $PLAN_PATH as arguments.

If skip: Proceed.

Phase 5: Design Review (opt-out)

If --skip-reviews: skip to Phase 7.

If --yes: run automatically.

Otherwise, use AskUserQuestion:

  • Question: "Run deep design review? Scores 7 UI/UX dimensions 0-10 and fixes the plan."
  • Options: "Continue (recommended)" / "Skip"

If continue: Run /plan-design-review via Skill tool with $PLAN_PATH as arguments.

If skip: Proceed.

Phase 6: Multi-Review on Plan (opt-out)

If --skip-reviews: skip to Phase 7.

If --yes: run automatically.

Otherwise, use AskUserQuestion:

  • Question: "Run specialized reviewers (security, performance, architecture) on the plan? Catches issues before code is written."
  • Options: "Continue (recommended)" / "Skip"

If continue: Run /multi-review via Skill tool with --plan $PLAN_PATH as arguments.

If skip: Proceed.

Phase 7: Decompose (opt-out)

If --no-decompose: skip to Pipeline Summary.

Check if Linear MCP is available (try calling list_teams). If unavailable, skip silently. Log: "Linear MCP not available — skipping decomposition."

Check if /spec already decomposed during Phase 3 (look for Linear issues associated with the plan). If already decomposed, skip.

If --yes: run decomposition automatically.

Otherwise, use AskUserQuestion:

  • Question: "Decompose the plan into Linear issues for tracking and dispatch?"
  • Options: "Yes, create issues (recommended)" / "No, plan file is sufficient"

If yes: Run /spec via Skill tool with $PLAN_PATH as arguments. Spec will detect the existing plan and offer decomposition.

If no: Proceed.

Pipeline Summary

Output a completion summary:

═══════════════════════════════════════════
DEEP-PLAN COMPLETE
═══════════════════════════════════════════
Feature: $FEATURE
Plan: $PLAN_PATH

PHASES COMPLETED:
  1. Product Review     ✅
  2. Design Shotgun     ✅ / ⏭ skipped
  3. Spec               ✅  (Phase 2.5 inline review ran)
  4. Eng Review         ✅ / ⏭ skipped
  5. Design Review      ✅ / ⏭ skipped
  6. Multi-Review       ✅ / ⏭ skipped
  7. Decomposition      ✅ / ⏭ skipped / ⚠ Linear unavailable

NEXT STEPS:
  /orient → /dispatch         (parallel execution)
  /start-task <id>            (solo execution)
  /auto-run --through <id>    (autonomous execution)
═══════════════════════════════════════════

Rules

  • NEVER duplicate sub-skill content. This skill sequences, it does not replace.
  • ALWAYS pass $FEATURE or $PLAN_PATH to sub-skills so they have context.
  • NEVER skip Phase 1 (product review) or Phase 3 (spec). They are the backbone. If you don't want product review, use /spec directly.
  • Each sub-skill handles its own internal interaction (questions, modes, outputs). This skill only manages transitions between them.
  • If a sub-skill fails or the user exits it early, stop the pipeline. Do not silently continue.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.