sparc-refine
하는 일
이 스킬은 SPARC 방법의 마지막 두 단계인 검토와 테스트를 통한 코드 개선, 그리고 문서화와 준비 상태 점검을 다룹니다. 기능을 운영 품질까지 끌어올리려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓기능이 완성되어 명세에 맞춰 신중히 검토해야 할 때.
- ✓출시 전에 테스트 커버리지를 높여야 할 때.
- ✓기능에 최종 문서와 준비 상태 점검이 필요할 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-refine/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“알림 기능을 명세에 맞춰 검토하고, 테스트 커버리지를 높이고, 출시를 준비해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 앞선 설계 산출물을 불러와 각 요구 사항, 패턴, 품질 규칙에 맞는지 코드를 확인한 뒤 테스트를 개선합니다. 검증, 문서, 준비 상태 기록으로 마무리하며, 이미 완료로 표시된 작업은 건너뜁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
SPARC Refinement + Completion
Run Phases 4 and 5 of the SPARC methodology: iteratively improve through code review and testing, then finalize with validation, documentation, and deployment readiness.
When to use
After the Architecture phase is complete and its gate has been passed. This skill covers the final two phases that bring a feature from implemented to production-ready.
Steps
Phase 4 — Refinement
Retrieve all prior artifacts — call
mcp__plugin_ruflo-core_ruflo__memory_searchwith namespacesparc-phasesand query for the feature slug. Load spec (acceptance criteria), pseudocode, and architecture.Retrieve phase state — call
mcp__plugin_ruflo-core_ruflo__memory_retrievewith namespacesparc-stateand exact keycurrent-phase-{feature-slug}to confirm we are in Phase 4 (or Phase 5 when resuming completion). Ifstatus === "complete", report the existing completion and do not write again; stop on missing/malformed state.Code review — review the implementation against: a. Specification compliance: does every acceptance criterion have a corresponding code path? b. Architecture adherence: do modules follow the defined boundaries and dependency rules? c. Pseudocode fidelity: does the implementation match the designed algorithms? d. Code quality: naming conventions, single responsibility, error handling, no dead code e. Document findings as review comments
Test coverage analysis: a. Run existing tests and measure coverage b. Identify uncovered acceptance criteria c. Write missing tests:
- Unit tests for each public function
- Integration tests for cross-module interactions
- Edge case tests for each identified edge case from the spec d. Target coverage >= 80% on new code
Performance validation — if the spec includes performance constraints: a. Profile critical paths identified in the pseudocode b. Compare measured performance against constraint thresholds c. Optimize if thresholds are not met
Iterate — repeat steps 3-5 until:
- All acceptance criteria have passing tests
- Code review has no critical or high-severity issues
- Coverage meets the threshold
- Performance constraints are satisfied
Store refinement artifact — call
mcp__plugin_ruflo-core_ruflo__memory_storewith namespacesparc-phases, keyrefine-{feature-slug}, value:{ status: "complete", reviewFindings: [...], coveragePercent: N, performanceResults: {...}, iterations: N }Before moving to Phase 5, evaluate the Phase 4 gate (passing acceptance tests, approved review, coverage >= 80%) and store its evidence in
sparc-gates. On failure preserve phase, increment gateAttempts, refreshupdatedAtwith the current ISO timestamp at the exact current-phase key, report blockers and stop. On pass preserve existing state fields, set phase 5, phaseName "Completion", status "active", andupdatedAtto the current ISO timestamp at the same key insparc-state. When resuming Phase 5, do not repeat the Phase 4 transition.Record trajectory step — call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-stepwith refinement summary
Phase 5 — Completion
Full regression — run the complete test suite to verify no regressions from refinement changes
Traceability matrix — build a matrix mapping every acceptance criterion to:
- The test(s) that verify it
- The code file(s) that implement it
- The current pass/fail status
Documentation: a. Generate API documentation from code comments and type definitions b. Write usage examples for key public interfaces c. Update any existing documentation affected by the changes
Deployment readiness checklist:
- All tests passing
- Documentation complete
- Database migrations prepared (if applicable)
- Configuration changes documented
- Feature flags configured (if applicable)
- Rollback plan defined
- Security review complete (no secrets, inputs validated)
Evaluate the final Phase 5 gate — completion is allowed only when final gate evidence for every criterion passes: full regression actually ran and passed, documentation is complete, deployment checklist is verified, and traceability links every acceptance criterion to passing tests. Store the actual pass/fail evidence at
gate-5-{feature-slug}-{timestamp}in `sparc-ga
자주 묻는 질문
기능이 이미 완료로 표시되어 있으면 어떻게 되나요?
이 스킬은 기존 완료 상태를 보고하며, 다시 쓰지 않습니다.
검토에서 무엇을 확인하나요?
각 인수 기준에 코드가 있는지, 모듈 경계가 지켜졌는지, 코드 품질 규칙을 지켰는지 확인합니다.
기능을 배포하나요?
배포 준비 상태를 갖춰 줍니다. 실제 배포는 별도의 결정입니다.
상세 정보
작성자의 원본 설명
Run the SPARC Refinement and Completion phases — review code, improve test coverage, validate against specification, and generate documentation
repo: ruvnet/ruflo
인기도
- GitHub 스타
- 81k
- 순위
- #1696
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.