sparc-implement
하는 일
이 스킬은 SPARC 방법의 설계 단계를 다룹니다. 각 요구 사항에 대한 의사 코드를 쓰고 구조를 정합니다. 구현 전에 명확한 설계를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓기능 요구 사항이 합의되었고 코딩 전에 설계가 필요할 때.
- ✓코드를 쓰기 전에 예외 상황과 오류 경로를 계획하고 싶을 때.
- ✓기능의 모듈 경계와 인터페이스를 정해야 할 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-implement/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“합의된 요구 사항을 바탕으로 새 알림 기능의 의사 코드와 모듈 경계를 설계해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 저장된 명세를 불러와, 오류 경로를 포함한 각 기준에 대해 언어와 무관한 의사 코드를 씁니다. 그다음 구조와 인터페이스를 정합니다. 이후 단계가 사용할 수 있도록 설계를 저장합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
Retrieve specification — call
mcp__plugin_ruflo-core_ruflo__memory_searchwith namespacesparc-phasesand query for the feature's spec. Extract requirements, acceptance criteria, constraints, and edge cases.Retrieve phase state — call
mcp__plugin_ruflo-core_ruflo__memory_retrievewith namespacesparc-stateand exact keycurrent-phase-{feature-slug}to confirm we are in Phase 2 or 3.Search for architectural patterns — call
mcp__plugin_ruflo-core_ruflo__neural_predictwith the feature description to find relevant architectural decisions from past projectsPhase 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_storewith namespacesparc-phases, keypseudo-{feature-slug} - Value:
{ status: "complete", algorithms: [...], dataStructures: [...], controlFlow: [...], complexity: {...} }
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_storewith namespacesparc-phases, keyarch-{feature-slug} - Value:
{ status: "complete", boundedContexts: [...], apiContracts: [...], moduleBoundaries: {...}, infrastructure: {...} }
Update phase state — call
mcp__plugin_ruflo-core_ruflo__memory_storewith namespacesparc-state, exact keycurrent-phase-{feature-slug}; preserve existing state fields, update current phase to 3 (Architecture) with both artifacts recorded, and setupdatedAtto the current ISO timestampRecord trajectory step — call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-stepwith architecture summaryBegin 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 advanceto 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}
자주 묻는 질문
사용하기 전에 무엇이 있어야 하나요?
명세 단계가 완료되어 요구 사항과 인수 기준이 저장되어 있어야 합니다.
최종 코드를 쓰나요?
이 스킬은 설계 후 저장된 계획을 따라 구현으로 넘어갑니다.
단계는 어디에서 추적되나요?
단계 상태는 sparc-state 메모리 네임스페이스에 저장됩니다.
상세 정보
작성자의 원본 설명
Run the SPARC Pseudocode and Architecture phases (2 and 3) — write algorithm pseudocode, design module boundaries and API contracts, then implement
repo: ruvnet/ruflo
인기도
- GitHub 스타
- 81k
- 순위
- #1695
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.