sparc

sparc is a command for Claude Code from nmime/motiv-buy. It costs 12 tokens per session (1,280 once invoked), scanned A, a copy of sparc, MIT.

A workflow guide for SPARC, a step-by-step software development method covering specification, design, coding, testing, refinement, and completion. It assigns these stages to specialist modes such as debugging, security review, documentation, and DevOps.

In plain words
What is it for?
Plan systems, write code, use test-driven development, debug problems, review security, write documentation, integrate changes, and monitor deployments.
Why use it?
It breaks large development tasks into defined stages and specialist activities, helping teams avoid skipping planning, testing, or review.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Good fit Plan systems, write code, use test-driven development, debug problems, review security, write documentation, integrate changes, and monitor deployments.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nmime/motiv-buy/sparc
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.

Clone the repo
git clone --depth 1 https://github.com/nmime/motiv-buy

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 sparc

README.md
[![agentmods](https://agentmods.dev/badge/commands/nmime/motiv-buy/sparc.svg)](https://agentmods.dev/commands/nmime/motiv-buy/sparc)
Your own site
<a href="https://agentmods.dev/commands/nmime/motiv-buy/sparc"><img src="https://agentmods.dev/badge/commands/nmime/motiv-buy/sparc.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 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,280 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 100% copy Near-identical to another mod 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.00012 $0.01280
Opus 5 $0.00006 $0.00640
Sonnet 5 $0.00002 $0.00256
Haiku 4.5 $0.00001 $0.00128

Measured 2d ago against content hash 841cd98e789e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

sparc 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.

Origin

This is a copy

100% identical to sparc — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/sparc.md · 175 lines

How it starts

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

⚡️ SPARC Development Methodology

You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.

SPARC Workflow

Follow SPARC:

  1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.
  2. Pseudocode: Request high-level logic with TDD anchors.
  3. Architecture: Ensure extensible system diagrams and service boundaries.
  4. Refinement: Use TDD, debugging, security, and optimization flows.
  5. Completion: Integrate, document, and monitor for continuous improvement.

Use new_task to assign:

  • spec-pseudocode

Available SPARC Modes

  • /sparc-architect - 🏗️ Architect
  • /sparc-code - 🧠 Auto-Coder
  • /sparc-tdd - 🧪 Tester (TDD)
  • /sparc-debug - 🪲 Debugger
  • /sparc-security-review - 🛡️ Security Reviewer
  • /sparc-docs-writer - 📚 Documentation Writer
  • /sparc-integration - 🔗 System Integrator
  • /sparc-post-deployment-monitoring-mode - 📈 Deployment Monitor
  • /sparc-refinement-optimization-mode - 🧹 Optimizer
  • /sparc-ask - ❓Ask
  • /sparc-devops - 🚀 DevOps
  • /sparc-tutorial - 📘 SPARC Tutorial
  • /sparc-supabase-admin - 🔐 Supabase Admin
  • /sparc-spec-pseudocode - 📋 Specification Writer
  • /sparc-mcp - ♾️ MCP Integration
  • /sparc-sparc - ⚡️ SPARC Orchestrator

Quick Start

Option 1: Using MCP Tools (Preferred in Claude Code)

// Run SPARC orchestrator (default)
mcp__claude-flow__sparc_mode {
  mode: "sparc",
  task_description: "build complete authentication system"
}

// Run a specific mode
mcp__claude-flow__sparc_mode {
  mode: "architect",
  task_description: "design API structure"
}

// TDD workflow
mcp__claude-flow__sparc_mode {
  mode: "tdd",
  task_description: "implement user authentication",
  options: {workflow: "full"}
}

Option 2: Using NPX CLI (Fallback when MCP not available)

# Run SPARC orchestrator (default)
npx claude-flow sparc "build complete authentication system"

# Run a specific mode
npx claude-flow sparc run architect "design API structure"
npx claude-flow sparc run tdd "implement user service"

# Execute full TDD workflow
npx claude-flow sparc tdd "implement user authentication"

# List all modes with details
npx claude-flow sparc modes --verbose

# For alpha features
npx claude-flow@alpha sparc run <mode> "your task"

Read the full file on GitHub · 175 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 · 175 lines · 12 tokens per session scan A 841cd98e789e

Subscribe to this mod's changes

sparc is a command published in the GitHub repository nmime/motiv-buy (0 stars, last pushed 7mo ago), licensed MIT. It adds 12 tokens to every session and 1,280 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to sparc, differing in 0 lines, and is treated as a copy.