maestro: Command for Claude Code

.claude/commands/plan-feature.md

plan-feature is a command for Claude Code from CarlosDanielDev/maestro. It costs 0 tokens per session (2,560 once invoked), scanned A, original, MIT.

A feature-planning command that turns a project request into API contracts, milestones, and linked issues. It uses dependency tracking to show which pieces must be completed first.

In plain words
What is it for?
Use it to define a feature, document its API boundaries, break it into milestones and issues, and organize the order of dependent work.
Why use it?
It gives a feature a structured implementation plan before coding begins, reducing unclear scope and missed dependencies.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is CarlosDanielDev/maestro's own configuration. It tells Claude Code how to work on maestro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maestro configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CarlosDanielDev/maestro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CarlosDanielDev/maestro/main/.claude/commands/plan-feature.md
Clone the repo
git clone --depth 1 https://github.com/CarlosDanielDev/maestro

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-feature

README.md
[![agentmods](https://agentmods.dev/badge/commands/carlosdanieldev/maestro/plan-feature/github.svg)](https://agentmods.dev/commands/carlosdanieldev/maestro/plan-feature)
Your own site
<a href="https://agentmods.dev/commands/carlosdanieldev/maestro/plan-feature"><img src="https://agentmods.dev/badge/commands/carlosdanieldev/maestro/plan-feature/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-feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/carlosdanieldev/maestro/plan-feature"><img src="https://agentmods.dev/badge/commands/carlosdanieldev/maestro/plan-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,560 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.00000 $0.02560
Opus 5.5 $0.00000 $0.01024
Sonnet 5.5 $0.00000 $0.00512
Haiku 4.5 $0.00000 $0.00256

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

Security

Grade A, and why

plan-feature 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 1mo 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-feature.md · 269 lines

How it starts

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


command: plan-feature version: 1.0.0 description: Plan a feature across the project, creating API contracts first, then milestones and issues with dependency tracking. placeholders:

  • INCLUDE
  • SUBAGENT_LIST
  • VCS_PROVIDER_CMD includes:
  • core/premises.md
  • core/dependency-graph.md source_provenance: ported_from: .claude/commands/plan-feature.md ported_at: 2026-05-13

Plan Feature

Plan a feature across your project, creating API contracts first, then milestones and issues with dependency tracking.

Usage: /plan-feature <description> or /plan-feature

Premises (Canonical Fragment)

Canonical fragment. Do not edit per-provider — render via manifest.toml. Source of truth ported from .claude/CLAUDE.md § CRITICAL PREMISES.

1. YOU ARE THE ONLY AGENT THAT WRITES CODE

The orchestrator is the ONLY agent authorized to:

  • Write, edit, or create code files
  • Execute bash commands
  • Run tests
  • Create any files (except documentation - see docs-analyst)

ALL subagents are CONSULTIVE ONLY. They:

  • Analyze, research, and plan
  • Provide detailed recommendations with exact file paths and code examples
  • Return blueprints for YOU to implement

Exception: subagent-docs-analyst can create/edit .md files.

2. Subagent Delegation Depends on MODE

In 🤖 Subagents Orchestrator Mode - You are FORBIDDEN from doing these tasks directly:

  • Researching or exploring codebases → delegate to subagents
  • Planning implementations → delegate to subagents
  • Analyzing code or architecture → delegate to subagents
  • Web searches for solutions → delegate to subagents
  • Reading documentation to understand how things work → delegate to subagents

Orchestrator Mode workflow is ALWAYS (TDD ENFORCED):

  1. Receive user request
  2. Pre-check hook (MANDATORY):
    • Run bash .maestro/hooks/implement-gates.sh <issue-number>
    • Abort on any non-zero exit (see exit-code table in /implement)
  3. Delegate to Gatekeeper (MANDATORY):
    • subagent-gatekeeper → structured JSON report (DOR, blockers, contracts, task_type)
    • Parse via .maestro/hooks/parse_gatekeeper_report.py
    • On DOR FAIL → by default, orchestrator prints the proposed comment for human review and STOPs (does NOT auto-post); pass --auto-comment to /implement to auto-post the comment and apply needs-info label
    • On blocker/contract FAIL → STOP with reasons from the report
  4. Delegate to Architect for blueprint - MANDATORY:
    • subagent-architect - For all architecture decisions
    • NEVER skip architecture step - the architect MUST be called
  5. CONTRACT VALIDATION (if task involves API endpoints) - MANDATORY:
    • Run /validate-contracts to check existing models against docs/api-contracts/ schemas
    • If no contract schema exists for the endpoint → STOP and ask user to provide the JSON schema
    • If contract exists but models mismatch → fix models BEFORE proceeding
  6. Delegate to QA for test blueprint - MANDATORY (TDD):
    • subagent-qa - Provides test cases, mocks, and expected behaviors
    • Tests are designed BEFORE implementation
  7. Write tests FIRST (RED) — verify they fail (enforced by /implement Step 6e bash gate)
  8. Implement minimum code (GREEN) — make tests pass (enforced by /implement Step 6g bash gate)
  9. Refactor — clean up while tests stay green
  10. Delegate to Security for review of implemented code
  11. Call docs-analyst at the end

Read the full file on GitHub · 269 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. 1mo ago First seen · 269 lines · 0 tokens per session scan A 95068bbb4c9c

Subscribe to this mod's changes

plan-feature is a command published in the GitHub repository CarlosDanielDev/maestro (31 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,560 tokens. 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-10-02.

Related

plan-feature compared with commands from other repositories

plan-feature next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plan-featureCarlosDanielDev/maestroCommand3120d agoMITA0Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code
speckit.bug.fixgithub/spec-kitCommand148kyesterdayMITA12Claude Code