Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -4% | 0% |
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.
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.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.mcp__plugin_ruflo-core_ruflo__neural_predict with the feature description to find relevant architectural decisions from past projectsa. For each acceptance criterion, write language-agnostic pseudocode that satisfies it b. Define core data structures with type annotations c. Map control flow including:
d. Annotate algorithmic complexity (time and space) for critical paths e. Store pseudocode artifact:
mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key pseudo-{feature-slug}{ status: "complete", algorithms: [...], dataStructures: [...], controlFlow: [...], complexity: {...} }a. Define bounded contexts and aggregate roots following DDD patterns:
b. Design API contracts:
c. Plan module boundaries:
d. Specify infrastructure concerns:
e. Store architecture artifact:
mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key arch-{feature-slug}{ status: "complete", boundedContexts: [...], apiContracts: [...], moduleBoundaries: {...}, infrastructure: {...} }mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-state, updating current phase to 3 (Architecture) with both artifacts recordedmcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step with architecture summarya. 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
/sparc advance to pass the Phase 3 gate# Pseudocode: {Feature Name}
## Core Algorithms
### Algorithm 1: {name}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 Structuresrc/{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.Other measured skills in the registry, with their headline benchmark lift.