feature-plan

A command that turns a feature specification into a written implementation plan. The plan covers the technical approach, system design, data models, and dependencies.

In plain words
What is it for?
Use it to create, view, or update a plan for a feature identified by an ID. It reads specification files and applies a quality check before producing the plan.
Why use it?
It checks whether the feature specification is complete and identifies vague or missing details before coding begins. This helps expose planning problems early.

Command for Claude Code

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/rand/mnemosyne/feature-plan
Clone the repo
git clone --depth 1 https://github.com/rand/mnemosyne

Made for: Claude Code.

Per session 9 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,829 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.00009 $0.02829
Opus 5 $0.00005 $0.01414
Sonnet 5 $0.00002 $0.00566
Haiku 4.5 $0.00001 $0.00283

Measured 2d ago against content hash 10d7be8cf83f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feature-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 2d 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/feature-plan.md · 393 lines

How it starts

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

I will help you create a detailed implementation plan from a feature specification, including technical approach, architecture decisions, data models, and dependencies.

Usage:

  • /feature-plan <feature-id> - Create implementation plan from spec
  • /feature-plan --show <feature-id> - Display existing plan
  • /feature-plan --update <feature-id> - Update existing plan

Instructions for me:

  1. Load feature spec:

    • Read .mnemosyne/artifacts/specs/<feature-id>.md
    • If not found: "Error: Feature spec '' not found. Use /feature-specify first."
    • Parse YAML frontmatter to get spec memory_id
    • Extract user scenarios, requirements, and constraints
  2. Validate spec quality:

    • Run DSPy validation using optimized v1 ReviewerModule:
      cd src/orchestration/dspy_modules
      uv run python3 specflow_integration.py ../../.mnemosyne/artifacts/specs/<feature-id>.md --json
      
    • Parse JSON output for:
      • completeness_score: 0.0-1.0 quality score
      • is_valid: Overall validation status
      • issues: List of specific problems
      • ambiguities: Detected vague terms
    • Quality gate check:
      • If completeness_score >= 0.8 and is_valid == true: Proceed
      • If completeness_score < 0.8 or is_valid == false:
        ⚠️  Spec quality below recommended threshold (<completeness_score>%)
        
        Issues found:
        - <issue 1>
        - <issue 2>
        
        Ambiguities detected:
        - <ambiguity 1>: <question>
        - <ambiguity 2>: <question>
        
        Recommended actions:
        - Run /feature-validate <feature-id> for detailed analysis
        - Run /feature-clarify <feature-id> to resolve ambiguities
        - Run /feature-validate <feature-id> --fix for specific fixes
        
        Continue anyway? (Creating plan from unclear spec may lead to rework)
        
        • Wait for user confirmation before proceeding
    • Fallback: If DSPy validation fails, warn "DSPy validation unavailable, proceeding without quality check" and continue
  3. Check for existing plan:

    • Look for .mnemosyne/artifacts/plans/<feature-id>-plan.md
    • If exists:
      • Parse version from frontmatter
      • If --show: Display plan summary and exit
      • If --update: Increment version and update
      • Otherwise: Ask if user wants to view, update, or create new version
  4. Load constitution (if exists):

    • Read .mnemosyne/artifacts/constitution/project-constitution.md
    • Extract architecture decisions, constraints, quality gates
    • Use to guide implementation choices
  5. Gather implementation details: Ask user about:

    a) Technical Approach:

    • High-level strategy (e.g., "REST API with JWT auth", "Event-driven with message queue")
    • Why this approach? (rationale)
    • Alternative approaches considered and rejected

    b) Architecture Decisions: For each significant choice:

    • Decision: [What was decided]
    • Rationale: [Why this choice]
    • Trade-offs: [What we gain vs. what we sacrifice]
    • Example: "Use Redis for caching - improves latency (gain) but adds operational complexity (trade-off)"

    c) Data Models (if applicable):

    • Database schema (tables, columns, relationships)
    • Data structures (classes, structs, interfaces)
    • Data flow diagrams

    d) API Design (if applicable):

    • Endpoints and methods
    • Request/response formats
    • Error handling strategy

    e) Dependencies:

    • External libraries/frameworks needed
    • Internal modules that must be modified
    • Services or APIs consumed

    f) Integration Points:

    • What existing systems need to be integrated?
    • How will they communicate? (REST, GraphQL, events, RPC)
    • Authentication/authorization requirements

    g) Testing Strategy:

    • Unit testing approach
    • Integration testing plan
    • E2E testing scenarios
    • Performance testing requirements

    h) Risks and Mitigations:

    • What could go wrong?
    • How will we handle it?

Read the full file on GitHub · 393 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. 2d ago First seen · 393 lines · 9 tokens per session scan A 10d7be8cf83f

Subscribe to this mod's changes

feature-plan is a command published in the GitHub repository rand/mnemosyne (84 stars, last pushed 9mo ago), licensed MIT. It adds 9 tokens to every session and 2,829 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-30.

Related

Other commands, from other repositories