SPARC Architecture + Implementation

VerifiedCaution

Runs the SPARC Architecture and Implementation phases: design pseudocode, define module boundaries and API contracts, implement code, and run tests.

Sby Skills Guide Bot
DevelopmentAdvanced
8/29/2026
Claude Code
#sparc#architecture-design#tdd#pseudocode#claude-flow

Recommended for

Automated summary

Runs the Pseudocode and Architecture phases of the SPARC methodology, then moves into writing production code and tests from the artifacts stored in memory.

Strengths

  • Chains algorithm design, DDD-style architecture design and implementation into one repeatable flow
  • Persists pseudocode and architecture artifacts in claude-flow memory namespaces for later phases
  • Enforces concrete deliverables: typed data structures, algorithmic complexity, TypeScript API contracts, and module dependency rules
  • Plans tests alongside implementation (TDD when possible) and verifies them against acceptance criteria

Limitations

  • Heavily depends on claude-flow MCP tools (memory_search, neural_predict, trajectory-step) and will not work without them
  • Assumes the Specification phase is finished and its gate passed; output quality is bounded by the spec's quality
  • Implementation only begins after user confirmation, so it requires an interactive session
When to use it

Use it when a validated specification exists and you need to design the architecture and then produce code and tests for a feature.

When not to use it

Avoid it for small fixes or when the specification phase has not yet been completed and gated.

Security analysis

Caution
Quality score82/100

The skill is a benign SPARC design-and-implement workflow. No instructions fetch remote payloads, pipe curl to a shell, delete filesystem paths, exfiltrate secrets, decode obfuscated content, or disable safety controls. The only meaningful risk comes from the standard coding capabilities it declares — Bash, Write, and Edit — which allow running commands and modifying source, but these are used for legitimate design/test purposes. Hence caution rather than safe, and certainly not risky.

Findings
  • •Declares Bash, Write, and Edit, enabling arbitrary command execution and file modification during the implementation step
  • •Step 8 (implementation) writes production code and runs tests, which can execute untrusted project code
  • •Depends on claude-flow MCP memory/task/neural tools; data stored in namespaces could be persisted outside the workspace
How this analysis is made

Examples

Design and build a feature
The spec for our order-refund feature passed the gate. Run the SPARC architecture and implementation phases: draft the pseudocode, define the module boundaries and API contracts, then implement the code with unit tests.
Resume from pseudocode
Continue from the architecture artifact stored for the payments feature and start writing the implementation following those module boundaries.
Architecture record only
Walk through Phase 2 and Phase 3 of SPARC for the notifications feature and show me the architecture decision record before we touch any code.

name: sparc-implement description: Run the SPARC Architecture and Implementation phases — design module boundaries, write pseudocode, implement code, and run tests argument-hint: "" allowed-tools: mcp__claude-flow__memory_store mcp__claude-flow__memory_search mcp__claude-flow__memory_retrieve mcp__claude-flow__task_create mcp__claude-flow__task_update mcp__claude-flow__task_complete mcp__claude-flow__hooks_intelligence_trajectory-step mcp__claude-flow__neural_predict mcp__claude-flow__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__claude-flow__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__claude-flow__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__claude-flow__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__claude-flow__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__claude-flow__memory_store with namespace sparc-phases, key arch-{feature-slug}
    • Value: { status: "complete", boundedContexts: [...], apiContracts: [...], moduleBoundaries: {...}, infrastructure: {...} }
  6. Update phase state — call mcp__claude-flow__memory_store with namespace sparc-state, updating current phase to 3 (Architecture) with both artifacts recorded

  7. Record trajectory step — call mcp__claude-flow__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

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.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/sparc-architecture-implementation-mte1li9d' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/sparc-architecture-implementation-mte1li9d/download' --output '.skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md.part' && mv '.skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md.part' '.skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): mcp__claude-flow__memory_store mcp__claude-flow__memory_search mcp__claude-flow__memory_retrieve mcp__claude-flow__task_create mcp__claude-flow__task_update mcp__claude-flow__task_complete mcp__claude-flow__hooks_intelligence_trajectory-step mcp__claude-flow__neural_predict mcp__claude-flow__workflow_create Bash Read Write Edit

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md' && test -s '.skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sparc-implement' && cp -R '.skill-downloads/sparc-architecture-implementation-mte1li9d' '.claude/skills/sparc-implement'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/sparc-architecture-implementation-mte1li9d'

openskills read 'sparc-architecture-implementation-mte1li9d'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/sparc-architecture-implementation-mte1li9d/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills