/ruflo-sparc:ruflo-sparcfrom ruflo-sparc
Manages SPARC methodology workflows — initialize features, track phase progress, advance through gates, and generate reports. Supports init, status, advance, and report subcommands.
Ships in ruflo-sparc. Installing the plugin adds it to Claude Code.
$ARGUMENTS
Handle SPARC methodology commands based on the subcommand:
/ruflo-sparc:ruflo-sparc init <feature>Initialize a new SPARC workflow for the given feature:
mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-state, key current-phase-{slug}, value { "phase": 1, "phaseName": "Specification", "feature": "<feature>", "startedAt": "<ISO timestamp>", "status": "active", "updatedAt": "<ISO timestamp>", "gateAttempts": 0, "artifacts": [] }mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key spec-{slug}, value { "status": "pending", "requirements": [], "acceptanceCriteria": [], "constraints": [], "edgeCases": [] }/ruflo-sparc:ruflo-sparc status to view progress or begin the specification phase with /ruflo-sparc:sparc-spec <feature-description>."/ruflo-sparc:ruflo-sparc statusShow current SPARC phase and gate check results using exact reads:
mcp__plugin_ruflo-core_ruflo__memory_list with namespace sparc-state, limit: 50, offset: 0. Continue with offset += entries.length until offset reaches total. A listing error or an empty page before total means incomplete status; report it, never claim no workflows.current-phase-. For each key call mcp__plugin_ruflo-core_ruflo__memory_retrieve with that exact key and namespace sparc-state. Listing metadata is not phase state. Decode the returned value if JSON-encoded and display the feature, slug, current phase, start time, gate attempts, and completion status. A missing/malformed value is unavailable, not a pending workflow. Do not infer the current phase from a gate or artifact.
Exclude records with status === "complete" from active status. Legacy records without status remain active. Do not infer completion from phase 5 alone. Sort active records newest first by valid state updatedAt; for legacy/malformed timestamps fall back to listing metadata updatedAt, then storedAt (parse ISO strings or numeric epoch milliseconds). Put unknown timestamps last, breaking ties by exact key.sparc-gates with the same limit, offset, and total pagination. For each feature keep only keys matching gate-{phase}-{exact-slug}-{timestamp} (phase 1–5, complete slug match, timestamp suffix). Retrieve each matching key exactly from sparc-gates; sort chronologically. Do not mix a slug with its prefix neighbors.current-phase-{slug} defines current state. Report retrieval failures and concurrent changes as incomplete; a multi-call read is not an atomic snapshot.[=====> ] Phase 3/5 — Architecture./ruflo-sparc:ruflo-sparc advanceAttempt to pass the current gate and advance to the next phase:
mcp__plugin_ruflo-core_ruflo__memory_retrieve in sparc-state with exact key current-phase-{slug}. Decode state; if status === "complete", refuse advance without writing state or another gate. Stop on missing/malformed state.sparc-phases namespacesparc-gates namespace with key gate-{phase}-{slug}-{timestamp}sparc-state, exact key current-phase-{slug}, using mcp__plugin_ruflo-core_ruflo__memory_store; set now = new Date().toISOString().status: "active", updatedAt: now. Display the next phase.{ ...state, phase: 5, phaseName: "Completion", status: "complete", completedAt: now, updatedAt: now } once to that same exact key. Keep phase 5, never increment to 6. Display completion only after the state write succeeds.gateAttempts, and set updatedAt to the current ISO timestamp in sparc-state at exact key current-phase-{slug} via mcp__plugin_ruflo-core_ruflo__memory_store. Do not mark state complete or set completedAt./ruflo-sparc:ruflo-sparc phase <phase-name>Jump to a specific phase (for re-entry or iteration):
specification, pseudocode, architecture, refinement, completion (or spec, pseudo, arch, refine, complete as aliases, or a number 1-5)mcp__plugin_ruflo-core_ruflo__memory_retrieve in sparc-state with exact key current-phase-{slug}current-phase-{slug} in sparc-state via mcp__plugin_ruflo-core_ruflo__memory_store; set updatedAt to the current ISO timestamp. Explicit re-entry reopens the workflow with status: "active" and removes stale completedAt; selecting phase 5 alone does not complete it./ruflo-sparc:ruflo-sparc advance from previous phases to ensure quality."/ruflo-sparc:ruflo-sparc reportGenerate a full SPARC methodology report:
sparc-state and sparc-gates. Retrieve the exact artifact keys recorded in current state from sparc-phases for the selected feature. A report may include completed workflows; the active-only status filter does not apply to reports.# SPARC Report: {Feature}
## Phase Summary
| Phase | Status | Gate | Attempts | Duration |
|-------|--------|------|----------|----------|
| 1 - Specification | Complete | Passed | 1 | 2h |
| 2 - Pseudocode | Complete | Passed | 2 | 3h |
| 3 - Architecture | In Progress | — | 0 | 1h |
| 4 - Refinement | Pending | — | — | — |
| 5 - Completion | Pending | — | — | — |
## Specification
- Requirements: [list]
- Acceptance Criteria: [list]
- Constraints: [list]
## Pseudocode
- Algorithms: [summary]
- Data Structures: [summary]
## Architecture
- Bounded Contexts: [list]
- API Contracts: [summary]
## Gate History
[chronological list of gate attempts with pass/fail details]
## Traceability Matrix
| Acceptance Criterion | Test | Status |
|---------------------|------|--------|
| AC-1: ... | test_xxx | Pass |
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub ruvnet/ruflo --plugin ruflo-sparcOther plugins' commands for the same job