/ruflo-sparc:sparc-spec <feature-description>from ruflo-sparc
Runs the SPARC Specification phase: gathers requirements, defines acceptance criteria, identifies constraints, and stores the spec in memory. Use before writing code for new features or projects.
Ships in ruflo-sparc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run Phase 1 of the SPARC methodology: define what must be built and how success is measured.
When starting a new feature or project that needs structured requirements gathering before any code is written. This phase produces the foundational specification that all subsequent phases (Pseudocode, Architecture, Refinement, Completion) build upon.
Initialize phase tracking — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-start with metadata { "phase": "specification", "feature": "$ARGUMENTS" }
Check for prior work — call mcp__plugin_ruflo-core_ruflo__memory_retrieve with namespace sparc-state and exact key current-phase-{feature-slug} to see if this workflow exists. If it does, retrieve existing artifacts. If not, initialize state at that exact key with phase 1, status: "active", and startedAt and updatedAt set to the current ISO timestamp.
Search for similar patterns — call mcp__plugin_ruflo-core_ruflo__neural_predict with the feature description to find relevant past specifications and learned patterns
Gather requirements — analyze the feature description and the codebase to identify:
Define acceptance criteria — write at least 3 concrete, testable acceptance criteria in Given/When/Then format:
AC-1: Given [precondition], when [action], then [expected result]
AC-2: Given [precondition], when [action], then [expected result]
AC-3: Given [precondition], when [action], then [expected result]
Identify constraints — document:
Map edge cases — list at least 3 edge cases or failure scenarios:
Store specification — call mcp__plugin_ruflo-core_ruflo__memory_store with:
sparc-phasesspec-{feature-slug}{ status: "complete", requirements, acceptanceCriteria, constraints, edgeCases, integrationPoints }Update phase state — call mcp__plugin_ruflo-core_ruflo__memory_store with:
sparc-statecurrent-phase-{feature-slug}updatedAt to the current ISO timestampRecord trajectory step — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step with the specification summary
Present specification — display the full specification document to the user with a summary table and suggest running /ruflo-sparc:ruflo-sparc advance to pass the gate and move to the Pseudocode phase
# Specification: {Feature Name}
## Requirements
### Functional
- FR-1: ...
- FR-2: ...
### Non-Functional
- NFR-1: ...
## Acceptance Criteria
- AC-1: Given ..., when ..., then ...
- AC-2: Given ..., when ..., then ...
- AC-3: Given ..., when ..., then ...
## Constraints
- Performance: ...
- Security: ...
- Compatibility: ...
## Edge Cases
- EC-1: ...
- EC-2: ...
- EC-3: ...
## Integration Points
- IP-1: ...
---
Phase 1 complete. Run `/ruflo-sparc:ruflo-sparc advance` to pass the gate check.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/sparc-implementRun the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement/sparc-refineRun the SPARC Refinement and Completion phases — review code, improve test coverage, validate against specification, and generate documentationnpx claudepluginhub ruvnet/ruflo --plugin ruflo-sparcOther plugins' skills for the same job