본문으로 건너뛰기
Skillpedia
일반 코딩81k · #1695

sparc-implement

하는 일

이 스킬은 SPARC 방법의 설계 단계를 다룹니다. 각 요구 사항에 대한 의사 코드를 쓰고 구조를 정합니다. 구현 전에 명확한 설계를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓기능 요구 사항이 합의되었고 코딩 전에 설계가 필요할 때.
  • ✓코드를 쓰기 전에 예외 상황과 오류 경로를 계획하고 싶을 때.
  • ✓기능의 모듈 경계와 인터페이스를 정해야 할 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-implement/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-implement/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  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_retrieve with namespace sparc-state and exact key current-phase-{feature-slug} 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, 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

  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 /ruflo-sparc:ruflo-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}
자주 묻는 질문

사용하기 전에 무엇이 있어야 하나요?

명세 단계가 완료되어 요구 사항과 인수 기준이 저장되어 있어야 합니다.

최종 코드를 쓰나요?

이 스킬은 설계 후 저장된 계획을 따라 구현으로 넘어갑니다.

단계는 어디에서 추적되나요?

단계 상태는 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬