Agent skill

Sparc Implement

by ruvnet in ruvnet/ruflo

Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement

MITAuto-check: notesBackend & APIs

Install Sparc Implement

skills CLI
$ npx skills add ruvnet/ruflo --skill sparc-implement -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo sparc-implement --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-sparc/skills/sparc-implement .claude/skills/sparc-implement && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sparc-implement
GitHub stars
74k
Token cost
~1.3k tokens
SKILL.md length
455 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement

  • Works in 9 steps: Retrieve specification — call… → Retrieve phase state — call… → Search for architectural patterns — call… → …
  • Tasks that involve API design
  • SKILL.md covers When to use, Steps, Output format and Data Structures, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Sparc Implement is an agent skill from ruvnet/ruflo. Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering API design. It works with Model Context Protocol. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Tasks that involve API design

Example prompts

  • “/sparc-implement”

Requirements

  • Pre-approved tools (allowed-tools): mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__memory_retrieve, mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_update, mcp__plugin_ruflo-core_ruflo__task_complete, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__workflow_create, Bash, Read, Write, Edit

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Retrieve specification — call mcpplugin_ruflo-core_ruflomemory_search with namespace sparc-phases and query for the feature's spec…
  2. Retrieve phase state — call mcpplugin_ruflo-core_ruflomemory_search with namespace sparc-state and query for the feature to confirm we are…
  3. Search for architectural patterns — call mcpplugin_ruflo-core_rufloneural_predict with the feature description to find relevant…
  4. Phase 2 — Pseudocode Design
  5. Phase 3 — Architecture Design
  6. Update phase state — call mcpplugin_ruflo-core_ruflomemory_store with namespace sparc-state, updating current phase to 3 (Architecture)…
  7. Record trajectory step — call mcpplugin_ruflo-core_ruflohooks_intelligence_trajectory-step with architecture summary
  8. Begin implementation — if the user confirms, proceed to write production code
  9. Present architecture — display the architecture decision record and suggest running /sparc advance to pass the Phase 3 gate

What it can do on your machine

Read from SKILL.md and the folder at commit de590e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__plugin_ruflo-core_ruflo__memory_store
    • mcp__plugin_ruflo-core_ruflo__memory_search
    • mcp__plugin_ruflo-core_ruflo__memory_retrieve
    • mcp__plugin_ruflo-core_ruflo__task_create
    • mcp__plugin_ruflo-core_ruflo__task_update
    • mcp__plugin_ruflo-core_ruflo__task_complete
    • mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step
    • mcp__plugin_ruflo-core_ruflo__neural_predict
    • mcp__plugin_ruflo-core_ruflo__workflow_create
    • Bash

    …and 3 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sparc Implement loads about 1.3k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 455 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit de590e1, republished under its MIT licence (© ruvnet). 455 words, ~1,331 tokens.

Download SKILL.mdSave it as .claude/skills/sparc-implement/SKILL.md (or your agent's skills folder).
name
sparc-implement
description
Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement
allowed-tools
mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__memory_retrieve, mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_update, mcp__plugin_ruflo-core_ruflo__task_complete, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__workflow_create, Bash, Read, Write, Edit

SPARC Architecture + Implementation

Run Phases 2 and 3 of the SPARC methodology: design algorithms with pseudocode, then establish architecture with module boundaries and API contracts.

When to use

After the Specification phase is complete and its gate has been passed. This skill covers both the Pseudocode and Architecture phases as they are tightly coupled — algorithm design informs module boundaries and vice versa.

Steps

  1. Retrieve specification — call mcp__plugin_ruflo-core_ruflo__memory_search with namespace sparc-phases and query for the feature's spec. Extract requirements, acceptance criteria, constraints, and edge cases.

  2. Retrieve phase state — call mcp__plugin_ruflo-core_ruflo__memory_search with namespace sparc-state and query for the feature to confirm we are in Phase 2 or 3.

  3. Search for architectural patterns — call mcp__plugin_ruflo-core_ruflo__neural_predict with the feature description to find relevant architectural decisions from past projects

  4. Phase 2 — Pseudocode Design: a. For each acceptance criterion, write language-agnostic pseudocode that satisfies it b. Define core data structures with type annotations c. Map control flow including:

    • Happy path
    • Error/exception paths for each edge case
    • Concurrent access handling if applicable d. Annotate algorithmic complexity (time and space) for critical paths e. Store pseudocode artifact:
    • Call mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key pseudo-{feature-slug}
    • Value: { status: "complete", algorithms: [...], dataStructures: [...], controlFlow: [...], complexity: {...} }
  5. Phase 3 — Architecture Design: a. Define bounded contexts and aggregate roots following DDD patterns:

    • Identify entity boundaries and value objects
    • Define aggregate invariants
    • Map domain events b. Design API contracts:
    • Request/response schemas with TypeScript interfaces
    • Error response codes and formats
    • Versioning strategy if applicable c. Plan module boundaries:
    • Directory structure
    • Dependency direction rules (no circular dependencies)
    • Public vs internal interfaces d. Specify infrastructure concerns:
    • Persistence strategy (database, cache, file)
    • Messaging patterns (sync, async, event-driven)
    • Configuration and environment requirements e. Store architecture artifact:
    • Call mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key arch-{feature-slug}
    • Value: { status: "complete", boundedContexts: [...], apiContracts: [...], moduleBoundaries: {...}, infrastructure: {...} }
  6. Update phase state — call mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-state, updating current phase to 3 (Architecture) with both artifacts recorded

  7. Record trajectory step — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step with architecture summary

  8. Begin implementation — if the user confirms, proceed to write production code: a. Create files following the defined module boundaries b. Implement interfaces and types first c. Implement core logic following the pseudocode d. Write unit tests alongside implementation (TDD when possible) e. Run tests to verify acceptance criteria

  9. Present architecture — display the architecture decision record and suggest running /sparc advance to pass the Phase 3 gate

Show full SKILL.md (65 more words)Show less

Output format

# Pseudocode: {Feature Name}

## Core Algorithms
### Algorithm 1: {name}
```pseudocode
FUNCTION processRequest(input):
    VALIDATE input against schema
    IF invalid THEN THROW ValidationError
    result <- TRANSFORM input
    STORE result
    RETURN result

Complexity: O(n) time, O(1) space

Data Structures

  • {StructName}: { field1: type, field2: type }

Architecture: {Feature Name}

Bounded Contexts

  • {ContextName}: {description}
    • Aggregates: {list}
    • Events: {list}

API Contracts

POST /api/{resource}
  • Request: { field1: string, field2: number }
  • Response: { id: string, ...fields }
  • Errors: 400 (validation), 409 (conflict), 500 (internal)

Module Structure

src/{feature}/
  {feature}.types.ts      # Interfaces and types
  {feature}.service.ts     # Business logic
  {feature}.controller.ts  # HTTP handling
  {feature}.repository.ts  # Data access
  {feature}.test.ts        # Tests

Infrastructure

  • Persistence: {strategy}
  • Caching: {strategy}
  • Events: {strategy}

Phases 2-3 complete. Run /sparc advance to pass the gate check.

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-sparc/skills/sparc-implement of ruvnet/ruflo.

Open the folder on GitHubat commit de590e1

Compare with similar skills

Sparc Implement next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sparc Implement compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sparc Implement this skillruvnet/ruflo74k—~1.3kAutomated safety check: NotesMIT
API Designs-morgan-jeffries/apple-mail-fast-mcp104—~876Automated safety check: PassMIT
API DesignIngvarConsulting/unica215—~1.8kAutomated safety check: PassCustom licence
Mas API ContractAUTO-MAS-Project/AUTO-MAS707—~1.9kAutomated safety check: PassAGPL-3.0
Azsdk Common Pipeline FixerAzure/azure-sdk-tools134—~831Automated safety check: PassMIT
LangBot Core Developmentlangbot-app/LangBot18k—~1.4kAutomated safety check: NotesApache-2.0

Similar skills

  • API Design

    s-morgan-jeffries/apple-mail-fast-mcp

    Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server.

    104 GitHub stars~876 tokensUpdated 28 days ago
    Backend & APIsAuto-check passed
  • API Design

    IngvarConsulting/unica

    Проектирование и ревью API 1С: публичный программный интерфейс, служебный интерфейс, переопределяемые модули, совместимость, версионирование и миграция потребителей.

    215 GitHub stars~1.8k tokensUpdated today
    Backend & APIsAuto-check passed
  • Mas API Contract

    AUTO-MAS-Project/AUTO-MAS

    Define backend API contract standards for FastAPI services. An agent skill from AUTO-MAS-Project/AUTO-MAS.

    707 GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Azsdk Common Pipeline Fixer

    Azure/azure-sdk-tools

    Official

    Automatically fix Azure SDK CI/CD pipeline failures by applying code changes and verifying locally.

    134 GitHub stars~831 tokensUpdated today
    Backend & APIsAuto-check passed
  • LangBot Core Development

    langbot-app/LangBot

    Covers developing the LangBot core backend and web UI: dev setup, repo layout, API auth types, adding endpoints, migrations and keeping the MCP server in step.

    18k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Build MCP Server

    anthropics/claude-plugins-official

    Official

    Entry point for building an MCP server: asks about the use case, picks a deployment model and tool-design pattern, then hands off to more specialized skills.

    37k GitHub starsUsed in 1 repo~3k tokens
    Agent WorkflowsAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Categories

Questions about Sparc Implement

What does Sparc Implement do?

Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement. Sparc Implement is an agent skill from ruvnet/ruflo.

When should I use Sparc Implement?

Sparc Implement fits situations like: tasks that involve API design.

How do I install Sparc Implement in Claude Code?

Run `npx skills add ruvnet/ruflo --skill sparc-implement -a claude-code`. Or copy the skill folder (plugins/ruflo-sparc/skills/sparc-implement in ruvnet/ruflo) into .claude/skills/sparc-implement in your project. Claude Code loads it when a task matches its description.

How do I install Sparc Implement in Codex?

Run `npx skills add ruvnet/ruflo --skill sparc-implement -a codex`. Or copy the skill folder (plugins/ruflo-sparc/skills/sparc-implement in ruvnet/ruflo) into .agents/skills/sparc-implement in your project. Codex loads it when a task matches its description.

Can I use Sparc Implement in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill sparc-implement -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sparc-implement, .gemini/skills/sparc-implement, .github/skills/sparc-implement and .opencode/skills/sparc-implement in your project.

What does Sparc Implement need to run?

SKILL.md names no scripts, command-line tools or credentials: Sparc Implement is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__memory_retrieve, mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_update, mcp__plugin_ruflo-core_ruflo__task_complete, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__workflow_create, Bash, Read, Write, Edit.

Does Sparc Implement access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sparc Implement safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Sparc Implement use?

Sparc Implement is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sparc Implement use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sparc Implement?

Skills that share tags, products or a category with Sparc Implement: API Design (s-morgan-jeffries/apple-mail-fast-mcp, 104 stars), API Design (IngvarConsulting/unica, 215 stars), Mas API Contract (AUTO-MAS-Project/AUTO-MAS, 707 stars) and Azsdk Common Pipeline Fixer (Azure/azure-sdk-tools, 134 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sparc Implement?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,012 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 7, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.