plan

plan is a command for coding agents from benshapyro/cadre-devkit-claude. It costs 7 tokens per session (1,503 once invoked), scanned A, original, MIT.

A planning command for preparing a new feature or task before implementation, including the files, requirements, design, and tests involved.

In plain words
What is it for?
Use it to plan backend APIs, React components, styling, error handling, or test-first development. TDD means writing tests before the implementation.
Why use it?
It reduces guesswork by requiring the existing code and project conventions to be understood first.

Command

Part of the cadre-devkit-claude plugin — 10 skills, 10 commands, 7 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add commands/benshapyro/cadre-devkit-claude/plan
Clone the repo
git clone --depth 1 https://github.com/benshapyro/cadre-devkit-claude

Or install cadre-devkit-claude, the plugin that ships this one along with the rest of its 10 skills, 10 commands, 7 agents, 3 hooks.

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/benshapyro/cadre-devkit-claude/plan.svg)](https://agentmods.dev/commands/benshapyro/cadre-devkit-claude/plan)
Your own site
<a href="https://agentmods.dev/commands/benshapyro/cadre-devkit-claude/plan"><img src="https://agentmods.dev/badge/commands/benshapyro/cadre-devkit-claude/plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,503 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00007 $0.01503
Opus 5 $0.00003 $0.00751
Sonnet 5 $0.00001 $0.00301
Haiku 4.5 $0.00001 $0.00150

Measured 4d ago against content hash 148928498f4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

commands/plan.md · 246 lines

How it starts

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

Plan Command

Plan a new feature or task with proper structure before implementation.

Reference skills based on feature type:

  • API/backend: Read .claude/skills/api-design-patterns/SKILL.md
  • React components: Read .claude/skills/react-patterns/SKILL.md
  • UI styling: Read .claude/skills/tailwind-conventions/SKILL.md
  • Error handling: Read .claude/skills/error-handler/SKILL.md
  • TDD mode: Read .claude/skills/test-generator/SKILL.md

For new projects: Use /greenfield first to define specs, then /plan for implementation.

Flags

  • --tdd - Enable Test-Driven Development mode (write tests first)

Validation

If no feature description provided, ask for one.

Planning Steps

1. Gather Context (REQUIRED)

You MUST read relevant files before creating a plan. Don't plan based on assumptions.

Before planning:

  • Read relevant CLAUDE.md files
  • Read the actual files that will be modified
  • Identify existing patterns and conventions
  • Understand related code and dependencies

Use Explore agent or direct file reads to understand:

  • Current implementation
  • Existing patterns in similar code
  • Test file locations and patterns

2. Requirements Clarification

Ask clarifying questions if needed:

  • What is the expected behavior?
  • What are the edge cases?
  • What are the acceptance criteria?
  • Are there performance requirements?

3. Create Plan

Structure the implementation with specific details:

Detail Level Guidelines:

Change Type Detail Level
Complex/risky changes Line numbers + code snippets
Medium changes Function/method names
Simple/obvious changes File paths only
New files File path + structure outline

Output Format:

## Feature: [description]

### Requirements
- [ ] Requirement 1
- [ ] Requirement 2

### Technical Approach
1. Step 1 - [description]
   - Why: [reasoning for this approach]
2. Step 2 - [description]

### Files to Modify

#### `path/to/file.ts` (lines 45-67)
**Current:** [brief description of current state]
**Change:** [what will change]
```typescript
// Example of the change (for complex modifications)
function existingFunction() {
  // Add: new caching logic here
}
path/to/new-file.ts (NEW)

Purpose: [why this file is needed] Structure:

  • functionA() - [purpose]
  • functionB() - [purpose]

Dependencies

  • [list any new dependencies]

Testing Strategy

  • Unit tests: [specific test cases]
  • Integration tests: [approach]
  • Test file: path/to/tests/file.test.ts

Alternatives Considered

  • [Alternative 1] - [why not chosen]

Risks

  • [potential issue] - [mitigation]

Complexity

  • [low/medium/high] - [justification]

Read the full file on GitHub · 246 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. 4d ago First seen · 246 lines · 0 tokens per session scan A 148928498f4f

Subscribe to this mod's changes

plan is a command published in the GitHub repository benshapyro/cadre-devkit-claude (9 stars, last pushed 9mo ago), licensed MIT. It adds 7 tokens to every session and 1,503 once invoked, about $0.0000 per session on Opus 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-31.