MCPInstall

plan

Write a plan file for a multi-step task (Step 3 of /task). Runs one brainstorming round then writes ai-workspace/plans/ .md from TEMPLATE.md. Skipped for one-sentence scope. Does NOT review — that is /review (Step 4).

Installs
142
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/camacho/ai-skills --skill plan
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads plan automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

/plan

Write a plan file for the current task. Requires /orient to have run first.

Sequence

  1. Check prerequisites. Confirm a worktree exists and /orient has identified the task. If not, stop and tell the user.
  2. Brainstorm (one round). Invoke /brainstorming with the task description. One round only — capture direction, do not iterate.
  3. Read the template. Read ai-workspace/plans/TEMPLATE.md from the repo root.
  4. Write the plan. Create ai-workspace/plans/<branch-slug>.md with ALL template fields:
FieldHow to fill
BranchCurrent branch name
TargetBranch to merge into. Default: detected via reflog parent (see below), falling back to main. Override only when intentionally retargeting. /ship reads this field.
CreatedToday's date (YYYY-MM-DD)
StatusIn Progress
Threat modelSee selection table below
Scope ceilingKeep template defaults (400/6 soft, 800/10 hard)
Task1-3 sentences: what and why
StepsCheckbox list of concrete implementation steps
Confidence ScaffoldRequired for adversarial. Recommended for complex advisory.
Outcomes & LearningsLeave empty — populated by /archive
  1. Commit the plan. Stage and commit the plan file before handing off to /review:

    git -C "$WORKTREE" add ai-workspace/plans/<name>.md
    git -C "$WORKTREE" commit -m "plan: <name>"
    

    Required because /review works against committed state. A session crash or /clear after writing the plan but before /review runs loses the brainstorming work otherwise. See ADR-008 (refs/wip/checkpoints/<branch> Stop-hook backstop) for the recovery path if this step is skipped.

Detecting the Target

The default Target is the branch this branch was cut from, read from the reflog:

TARGET=$(
  git reflog show HEAD --pretty=format:'%gs' \
    | grep "^branch: Created from" \
    | head -1 \
    | sed 's/branch: Created from //' \
    | sed 's|^origin/||'
)
TARGET=${TARGET:-main}

Falls back to main when the reflog is empty (web sessions, detached-HEAD creation). Use this whenever the user hasn't explicitly named a Target. Pure git — works in any environment without tool installs.

Threat model selection

SignalModel
Internal tooling, refactor, docs, tests, configadvisory
Auth, secrets, input validation, CI, hooks, permissionsadversarial
Unsureadversarial

Guardrails

  • Do NOT review the plan. That is /review (Step 4).
  • Do NOT start implementation. The plan is the deliverable.
  • Do NOT skip any template field.
  • Do NOT proceed to /review without committing the plan file first.
  • If brainstorming reveals the task is one-sentence scope, say so and skip.
  • Scope ceiling values are fixed — do not change them.
  • Steps must be concrete actions with checkboxes, not vague phases.
  • Include test steps explicitly. When tests need a separate author (TDD contract), list them as distinct tasks from implementation so /build dispatches test-writer and implementer separately.

Output

After writing, report:

Plan written: ai-workspace/plans/<name>.md
Threat model: advisory|adversarial
Steps: <count>
Next step: /review

FAQ

What does the plan skill do?

Write a plan file for a multi-step task (Step 3 of /task). Runs one brainstorming round then writes ai-workspace/plans/ .md from TEMPLATE.md. Skipped for one-sentence scope. Does NOT review — that is /review (Step 4).

How do I install plan?

Run npx skills add https://github.com/camacho/ai-skills --skill plan in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/plan/ (personal) or .claude/skills/plan/ (project).

Which AI agents can use plan?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is plan safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains plan?

It is published by camacho in camacho/ai-skills. It has 142 recorded installs.

More from camacho/ai-skills

View all →

archive

camacho/ai-skills

Fills Outcomes & Learnings in a plan file and renames it to .done.md.

bail

camacho/ai-skills

Reflects, updates GitHub Issue, closes PR if open, cleans up worktree/branch.

capture

camacho/ai-skills

Creates a draft GitHub Issue with triage label from natural language description.

669 installs

plan-review

camacho/ai-skills

Auto-assembles review panel using deterministic rules, dispatches agents against plan file, collects verdicts.

orient

camacho/ai-skills

Fetches issue context, auto-detects task type, maps to branch prefix, presents brief.

reflect

camacho/ai-skills

Use after merging a branch or completing a task to consolidate learnings into memory layers, close out issues, and verify the phase gate.

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.