Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

Sparc Spec

  • 640 installs
  • 67k repo stars
  • Updated August 4, 2026
  • ruvnet/ruflo

sparc-spec is a ruflo agent skill that runs SPARC phase 1 to capture requirements, acceptance criteria, and constraints for developers starting structured feature specification inside agent workflows.

About

sparc-spec is a ruvnet/ruflo skill that executes SPARC Specification phase 1 from a feature description argument. It gathers requirements, defines acceptance criteria, identifies constraints, and stores the resulting spec in claude-flow memory using task and hooks intelligence trajectory-start tools plus Bash Read Edit. Developers reach for sparc-spec at the start of a governed feature when success metrics and boundaries must be explicit before pseudocode or coding. The skill pairs with sparc-implement for phases 2 and 3 and fits agent teams using memory-backed planning instead of informal chat prompts.

  • sparc-spec

Sparc Spec by the numbers

  • 640 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #599 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill sparc-spec

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs640
repo stars67k
Last updatedAugust 4, 2026
Repositoryruvnet/ruflo

How do you write a SPARC feature specification?

Use sparc-spec for development tasks

Who is it for?

Developers beginning SPARC-governed features who need agent-persisted specs with clear acceptance criteria before design or code.

Skip if: Trivial edits or bugfixes that do not need formal requirements, constraints, or memory-backed specification artifacts.

When should I use this skill?

A new feature needs structured requirements, acceptance criteria, and constraints captured before SPARC design or implementation.

What you get

Stored feature specification with requirements, acceptance criteria, constraints, and linked claude-flow tasks.

  • stored feature specification
  • acceptance criteria document

By the numbers

  • Covers SPARC phase 1 of the multi-phase SPARC methodology

Files

SKILL.mdMarkdownGitHub ↗

SPARC Specification Phase

Run Phase 1 of the SPARC methodology: define what must be built and how success is measured.

When to use

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.

Steps

1. Initialize phase tracking — call mcp__claude-flow__hooks_intelligence_trajectory-start with metadata { "phase": "specification", "feature": "$ARGUMENTS" }

2. Check for prior work — call mcp__claude-flow__memory_search with namespace sparc-state and query for the feature to see if a SPARC workflow already exists. If it does, retrieve existing artifacts. If not, initialize state with phase 1.

3. Search for similar patterns — call mcp__claude-flow__neural_predict with the feature description to find relevant past specifications and learned patterns

4. Gather requirements — analyze the feature description and the codebase to identify:

  • Functional requirements: what the feature must do (user-facing behaviors)
  • Non-functional requirements: performance targets, security constraints, scalability needs
  • Integration points: what existing systems or APIs are affected
  • Data requirements: what data is created, read, updated, or deleted

5. 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]

6. Identify constraints — document:

  • Performance constraints (latency, throughput, resource limits)
  • Security constraints (authentication, authorization, data sensitivity)
  • Compatibility constraints (browser support, API versions, backward compatibility)
  • Infrastructure constraints (deployment environment, dependencies)

7. Map edge cases — list at least 3 edge cases or failure scenarios:

  • What happens with invalid input?
  • What happens under concurrent access?
  • What happens when external dependencies fail?

8. Store specification — call mcp__claude-flow__memory_store with:

  • Namespace: sparc-phases
  • Key: spec-{feature-slug}
  • Value: JSON with { status: "complete", requirements, acceptanceCriteria, constraints, edgeCases, integrationPoints }

9. Update phase state — call mcp__claude-flow__memory_store with:

  • Namespace: sparc-state
  • Key: current-phase-{feature-slug}
  • Value: updated state with artifacts list including the spec key

10. Record trajectory step — call mcp__claude-flow__hooks_intelligence_trajectory-step with the specification summary

11. Present specification — display the full specification document to the user with a summary table and suggest running /sparc advance to pass the gate and move to the Pseudocode phase

Output format

# 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 `/sparc advance` to pass the gate check.

Related skills

How it compares

Use sparc-spec when a feature needs memory-backed requirements before code; skip it for small changes that do not need formal acceptance criteria.

FAQ

What does sparc-spec produce?

sparc-spec outputs a SPARC phase 1 specification with requirements, acceptance criteria, and constraints stored in claude-flow memory. It accepts a feature-description argument and creates linked tasks for downstream phases.

How does sparc-spec relate to sparc-implement?

sparc-spec handles SPARC phase 1 scoping while sparc-implement covers phases 2 and 3 for pseudocode, architecture, and code. Run sparc-spec first so design and implementation have a persisted requirements baseline.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.