epic

epic is a command for Claude Code from marcusgoll/Spec-Flow. It costs 20 tokens per session (6,905 once invoked), scanned A, original, MIT.

A command for managing a large feature project made up of multiple development sprints. A sprint is a planned group of related work, and the command guides the project from scoping through deployment.

In plain words
What is it for?
Use it to scope an epic, answer questions during planning, track project state, and continue or advance a multi-sprint workflow.
Why use it?
It helps coordinate complex work with dependencies between sprints, saved progress, and separate workers handling different phases.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is AUTO_SHIP=$(bash .spec-flow/scripts/utils/load-preferences.sh --key "deployment.auto_ship" --default "false" 2>/dev/null || echo "false").

Good fit Use it to scope an epic, answer questions during planning, track project state, and continue or advance a multi-sprint workflow.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow
agentmods
npx agentmods add commands/marcusgoll/spec-flow/epic

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 epic

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/marcusgoll/spec-flow/epic"><img src="https://agentmods.dev/badge/commands/marcusgoll/spec-flow/epic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,905 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.00020 $0.06905
Opus 5.5 $0.00008 $0.02762
Sonnet 5.5 $0.00004 $0.01381
Haiku 4.5 $0.00002 $0.00690

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

Security

Grade A, and why

epic 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/core/epic.md · 853 lines

How it starts

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

Command: /epic [epic description | slug | continue | next]

Runtime ownership note: Epic workflow semantics and state belong to the shared canon. This command is currently a Claude adapter surface while epic runtime behavior converges on the same shared ownership model as the rest of Spec-Flow.

CRITICAL ARCHITECTURE (v7.0 - Domain Memory v2):

This orchestrator is ultra-lightweight. You MUST:

  1. Read state from disk (state.yaml, interaction-state.yaml, domain-memory.yaml)
  2. Spawn isolated phase agents via Task tool - NEVER execute phases inline
  3. Handle user Q&A when agents return questions
  4. Update state.yaml after each phase
  5. NEVER carry implementation details in your context

Key Difference from /feature:

  • Epic creates sprint-level domain-memory.yaml files for parallel execution
  • Implementation spawns multiple workers across sprints simultaneously
  • More sophisticated dependency tracking between sprints

Benefits: Unlimited epic complexity, 3-5x faster delivery via parallelism, observable progress, resumable at any point.

Project State: !test -d docs/project && echo "initialized" || echo "missing"

Git Configuration:

  • Remote: !git remote -v 2>/dev/null | head -1 | grep -q origin && echo "configured" || echo "none"
  • Current branch: !git branch --show-current 2>/dev/null || echo "none"
  • Staging workflow: !test -f .github/workflows/deploy-staging.yml && echo "present" || echo "missing"

Epic Workspace: !ls -d epics/*/ 2>/dev/null | head -3 || echo "none"

Workflow State: @epics/*/state.yaml

Planning Depth Preference: !bash .spec-flow/scripts/utils/load-preferences.sh --key "planning.auto_deep_mode" --default "false" 2>/dev/null || echo "false"

Epic Trigger for Deep Planning: !bash .spec-flow/scripts/utils/load-preferences.sh --key "planning.deep_planning_triggers.epic_features" --default "true" 2>/dev/null || echo "true"

Auto-ship preference: !bash .spec-flow/scripts/utils/load-preferences.sh --key "deployment.auto_ship" --default "false" 2>/dev/null || echo "false"

Auto-merge preference: !bash .spec-flow/scripts/utils/load-preferences.sh --key "deployment.auto_merge" --default "false" 2>/dev/null || echo "false"

Auto-finalize preference: !bash .spec-flow/scripts/utils/load-preferences.sh --key "deployment.auto_finalize" --default "true" 2>/dev/null || echo "true"

Studio context (multi-agent isolation): !bash .spec-flow/scripts/bash/worktree-context.sh studio-detect 2>/dev/null || echo ""

Worktree context: !bash .spec-flow/scripts/bash/worktree-context.sh info 2>/dev/null || echo '{"is_worktree": false}'

<planning_depth>

Planning Depth Mode for Epics

NOTE: Epics automatically trigger ultrathink/deep planning by default via deep_planning_triggers.epic_features: true.

Flags in $ARGUMENTS:

  • --deep → Explicitly force ultrathink (redundant for epics, but explicit)
  • --auto → Use preferences AND continue through ship→finalize without stopping
  • Neither → Interactive mode, still uses deep planning for epics

Epic-specific benefits of ultrathink:

  • Assumption questioning across multiple sprints
  • Codebase soul analysis informs sprint boundaries
  • Minimum viable architecture prevents over-engineering
  • Design alternatives help sprint prioritization

State tracking:

# In epics/NNN-slug/state.yaml
planning:
  mode: deep
  ultrathink_enabled: true
  triggered_by: epic_features  # or explicit_flag

</planning_depth>

<auto_mode>

Read the full file on GitHub · 853 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 · 853 lines · 20 tokens per session scan A de0cf81679de

Subscribe to this mod's changes

epic is a command published in the GitHub repository marcusgoll/Spec-Flow (96 stars, last pushed 24d ago), licensed MIT. It adds 20 tokens to every session and 6,905 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.