Skip to content
Skillpedia
General coding81k · #1538

sparc-methodology

What it does

This skill walks an agent through a structured development method with five stages: specification, pseudocode, architecture, refinement and completion. It is for people building complex features who want planning before coding.

When to use it

  • ✓When you are building a new feature that has several parts.
  • ✓When requirements are unclear and need to be worked out first.
  • ✓When you are planning a change that affects the overall system design.

Skill link

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Use the SPARC method to plan our new billing feature, starting with the specification.”

5 new skills a week. 1 minute to read.

How it works

The agent works through each stage in turn, writing requirements, pseudocode, design and then the refined implementation, and records each step.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Sparc Methodology Skill

Purpose

SPARC development workflow: Specification, Pseudocode, Architecture, Refinement, Completion. A structured approach for complex implementations that ensures thorough planning before coding.

When to Trigger

  • new feature implementation
  • complex implementations
  • architectural changes
  • system redesign
  • integration work
  • unclear requirements

When to Skip

  • simple bug fixes
  • documentation updates
  • configuration changes
  • well-defined small tasks
  • routine maintenance

Commands

Specification Phase

Define requirements, acceptance criteria, and constraints

npx @claude-flow/cli hooks route --task "specification: [requirements]"

Example:

npx @claude-flow/cli hooks route --task "specification: user authentication with OAuth2, MFA, and session management"

Pseudocode Phase

Write high-level pseudocode for the implementation

npx @claude-flow/cli hooks route --task "pseudocode: [feature]"

Example:

npx @claude-flow/cli hooks route --task "pseudocode: OAuth2 login flow with token refresh"

Architecture Phase

Design system structure, interfaces, and dependencies

npx @claude-flow/cli hooks route --task "architecture: [design]"

Example:

npx @claude-flow/cli hooks route --task "architecture: auth module with service layer, repository, and API endpoints"

Refinement Phase

Iterate on the design based on feedback

npx @claude-flow/cli hooks route --task "refinement: [feedback]"

Example:

npx @claude-flow/cli hooks route --task "refinement: add rate limiting and brute force protection"

Completion Phase

Finalize implementation with tests and documentation

npx @claude-flow/cli hooks route --task "completion: [final checks]"

Example:

npx @claude-flow/cli hooks route --task "completion: verify all tests pass, update API docs, security review"

SPARC Coordinator

Spawn SPARC coordinator agent

npx @claude-flow/cli agent spawn --type sparc-coord --name sparc-lead

Scripts

Script Path Description
sparc-init .agents/scripts/sparc-init.sh Initialize SPARC workflow for a new feature
sparc-review .agents/scripts/sparc-review.sh Run SPARC phase review checklist

References

Document Path Description
SPARC Overview docs/sparc.md Complete SPARC methodology guide
Phase Templates docs/sparc-templates.md Templates for each SPARC phase

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings
FAQ

What does SPARC stand for?

It stands for Specification, Pseudocode, Architecture, Refinement and Completion.

When should I skip it?

The skill says to skip it for simple bug fixes, documentation updates and small configuration changes.

Does it need special tools?

The skill uses claude-flow commands to route each stage, so those tools need to be available.

Details

Original description by the author

SPARC development workflow: Specification, Pseudocode, Architecture, Refinement, Completion. A structured approach for complex implementations that ensures thorough planning before coding. Use when: new feature implementation, complex implementations, architectural changes, system redesign, integration work, unclear requirements. Skip when: simple bug fixes, documentation updates, configuration changes, well-defined small tasks, routine maintenance.

repo: ruvnet/ruflo

Popularity

GitHub stars
81k
Ranking position
#1538
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills