/ruflo-sparc:sparc-implementfrom ruflo-sparc
Executes SPARC Pseudocode and Architecture phases: writes algorithm pseudocode, designs module boundaries and API contracts, then implements. Use after specification is complete.
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 Phases 2 and 3 of the SPARC methodology: design algorithms with pseudocode, then establish architecture with module boundaries and API contracts.
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.
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.
Retrieve phase state — call mcp__plugin_ruflo-core_ruflo__memory_retrieve with namespace sparc-state and exact key current-phase-{feature-slug} to confirm we are in Phase 2 or 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
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:
mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key pseudo-{feature-slug}{ status: "complete", algorithms: [...], dataStructures: [...], controlFlow: [...], complexity: {...} }Phase 3 — Architecture Design: a. Define bounded contexts and aggregate roots following DDD patterns:
mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key arch-{feature-slug}{ status: "complete", boundedContexts: [...], apiContracts: [...], moduleBoundaries: {...}, infrastructure: {...} }Update phase state — call mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-state, exact key current-phase-{feature-slug}; preserve existing state fields, update current phase to 3 (Architecture) with both artifacts recorded, and set updatedAt to the current ISO timestamp
Record trajectory step — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step with architecture summary
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
Present architecture — display the architecture decision record and suggest running /ruflo-sparc:ruflo-sparc advance to pass the Phase 3 gate
# 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
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
Phases 2-3 complete. Run /ruflo-sparc:ruflo-sparc advance to pass the gate check.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ruvnet/ruflo --plugin ruflo-sparc3 skills in this plugin
/sparc-refineRun the SPARC Refinement and Completion phases — review code, improve test coverage, validate against specification, and generate documentation/sparc-specRun the SPARC Specification phase — gather requirements, define acceptance criteria, identify constraints, and store the spec in memoryOther plugins' skills for the same job