plan

plan is a command for Claude Code from rjmurillo/ai-agents. It costs 23 tokens per session (714 once invoked), scanned A, original, MIT.

A command for turning a software specification into a work plan with milestones, dependencies, and risk controls. A specification describes what should be built and how success will be checked.

In plain words
What is it for?
Planning implementation work after a specification, checking the existing code, splitting work into milestones, and identifying tasks that can happen at the same time.
Why use it?
It prevents developers from breaking an unclear idea into tasks before the requirements and acceptance checks are defined.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Planning implementation work after a specification, checking the existing code, splitting work into milestones, and identifying tasks that can happen at the same time.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rjmurillo/ai-agents/plan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjmurillo/ai-agents/plan/github.svg)](https://agentmods.dev/commands/rjmurillo/ai-agents/plan)
Your own site
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/plan"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/plan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/plan"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 714 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00714
Opus 5.5 $0.00009 $0.00286
Sonnet 5.5 $0.00005 $0.00143
Haiku 4.5 $0.00002 $0.00071

Measured 2mo ago against content hash 93701a56a97c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/plan.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

@CLAUDE.md

Plan: $ARGUMENTS

If $ARGUMENTS is empty, check for recent /spec output in the conversation. If none found, ask the user what to plan.

If you arrived here without a spec, run the front-gate first

Planning a spec that was never gated manufactures work. If there is no /spec output for this work (no requirement, no design, no testable acceptance criteria), do not decompose it into milestones yet. Run /spec first: it applies the front-gate (the six forcing questions, the front-gate-before-pipeline pattern) and confirms a named blocked user, a documented status quo, and a concrete observation before any downstream step runs. Return here once the spec exists. Skip this only when the user explicitly asks to plan an ungated idea and accepts that trade-off.

Process

  1. Read the spec or issue
  2. Map sub-problems to existing code (what already exists? use Grep/Glob to verify)
  3. Task(subagent_type="milestone-planner"): You are a project planner. Break the spec into milestones with clear exit criteria. Each milestone is independently shippable. Sequence by dependencies. Flag parallel opportunities.
  4. Task(subagent_type="task-decomposer"): You are a work breakdown specialist. Decompose each milestone into atomic tasks. Each task is independently verifiable with a clear done definition. Size by complexity (S/M/L), not time.
  5. Invoke Skill(skill="execution-plans") to persist the plan as a versioned artifact.
  6. Task(subagent_type="analyst"): You are a risk analyst. Run a pre-mortem on this plan. What fails first? What dependencies are fragile? What assumptions are untested?
  7. Task(subagent_type="critic"): You are a plan reviewer. Validate: is scope complete? Can tasks execute in the stated sequence? Are estimates credible? Is anything missing?

Evaluation Axes

  1. Scope integrity - Nothing unnecessary, nothing missing
  2. Dependency ordering - Can tasks execute in the stated sequence?
  3. Risk coverage - All P0 risks have mitigations
  4. Estimate confidence - Complexity-based sizing (S/M/L), not time-based
  5. Reversibility - Which steps are hard to undo?

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 50 lines · 23 tokens per session scan A 93701a56a97c

Subscribe to this mod's changes

plan is a command published in the GitHub repository rjmurillo/ai-agents (49 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 714 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.