Sparc Methodology

ruvnet/ruflo/.agents/skills/sparc-methodology

作者 ruvnet6051f6702b61無授權條款74K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

SPARC development workflow: Specification, Pseudocode, Architecture, Refinement, Completion. A structured approach for complex implementations that ensures thorough planning before coding. Use when: new feature implementation, complex implementations, architectural changes, system redesign, integration work, unclear requirements. Skip when: simple bug fixes, documentation updates, configuration changes, well-defined small tasks, routine maintenance.

AI 產生的概覽

透過 SPARC 階段(規格、虛擬碼、架構、精煉、完成)引導複雜的軟體實作。

功能
此技能將結構化的 SPARC 工作流程套用於複雜的軟體實作,依序經過規格、虛擬碼、架構、精煉與完成階段。它提供透過 @claude-flow/cli 工具路由的各階段命令、一個協調者代理的啟動命令,以及兩個輔助指令碼,用於初始化工作流程與執行階段審查清單。它也指向介紹此方法論與階段範本的參考文件。
適用情境
適用於新功能實作、複雜實作、架構變更、系統重新設計、整合工作或需求不明確的情況。對於簡單的錯誤修正、文件更新、設定變更、定義明確的小任務與例行維護,則應略過。
執行需求
需要 npx 命令與 @claude-flow/cli 套件(除非已快取,否則需連線呼叫);隨附兩個可執行 shell 指令碼(sparc-init.sh 與 sparc-review.sh)。

Sparc Methodology Skill

Purpose

SPARC development workflow: Specification, Pseudocode, Architecture, Refinement, Completion. A structured approach for complex implementations that ensures thorough planning before coding.

When to Trigger

  • new feature implementation
  • complex implementations
  • architectural changes
  • system redesign
  • integration work
  • unclear requirements

When to Skip

  • simple bug fixes
  • documentation updates
  • configuration changes
  • well-defined small tasks
  • routine maintenance

Commands

Specification Phase

Define requirements, acceptance criteria, and constraints

bash
npx @claude-flow/cli hooks route --task "specification: [requirements]"

Example:

bash
npx @claude-flow/cli hooks route --task "specification: user authentication with OAuth2, MFA, and session management"

Pseudocode Phase

Write high-level pseudocode for the implementation

bash
npx @claude-flow/cli hooks route --task "pseudocode: [feature]"

Example:

bash
npx @claude-flow/cli hooks route --task "pseudocode: OAuth2 login flow with token refresh"

Architecture Phase

Design system structure, interfaces, and dependencies

bash
npx @claude-flow/cli hooks route --task "architecture: [design]"

Example:

bash
npx @claude-flow/cli hooks route --task "architecture: auth module with service layer, repository, and API endpoints"

Refinement Phase

Iterate on the design based on feedback

bash
npx @claude-flow/cli hooks route --task "refinement: [feedback]"

Example:

bash
npx @claude-flow/cli hooks route --task "refinement: add rate limiting and brute force protection"

Completion Phase

Finalize implementation with tests and documentation

bash
npx @claude-flow/cli hooks route --task "completion: [final checks]"

Example:

bash
npx @claude-flow/cli hooks route --task "completion: verify all tests pass, update API docs, security review"

SPARC Coordinator

Spawn SPARC coordinator agent

bash
npx @claude-flow/cli agent spawn --type sparc-coord --name sparc-lead

Scripts

ScriptPathDescription
sparc-init.agents/scripts/sparc-init.shInitialize SPARC workflow for a new feature
sparc-review.agents/scripts/sparc-review.shRun SPARC phase review checklist

References

DocumentPathDescription
SPARC Overviewdocs/sparc.mdComplete SPARC methodology guide
Phase Templatesdocs/sparc-templates.mdTemplates for each SPARC phase

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings

來源與署名

來源:ruvnet/ruflo位於.agents/skills/sparc-methodology提交6051f67

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架