mnemosyne: Command for Claude Code

.claude/commands/feature-plan.md

feature-plan is a command for Claude Code from rand/mnemosyne. It costs 9 tokens per session (2,829 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/.

This is rand/mnemosyne's own configuration. It tells Claude Code how to work on mnemosyne 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 mnemosyne configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is uv run python3 specflow_integration.py ../../.mnemosyne/artifacts/specs/<feature-id>.md --json.

Reuse

Borrowing it

Nothing to install: this file belongs to rand/mnemosyne. 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/rand/mnemosyne/main/.claude/commands/feature-plan.md
Clone the repo
git clone --depth 1 https://github.com/rand/mnemosyne

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/rand/mnemosyne/feature-plan"><img src="https://agentmods.dev/badge/commands/rand/mnemosyne/feature-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00009 $0.02829
Opus 5.5 $0.00004 $0.01132
Sonnet 5.5 $0.00002 $0.00566
Haiku 4.5 $0.00001 $0.00283

Measured 1mo ago against content hash 10d7be8cf83f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/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. 1mo 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 (101 stars, last pushed 11mo ago), licensed MIT. It adds 9 tokens to every session and 2,829 once invoked, about $0.0000 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.