sparc-methodology
できること
このスキルは、仕様、擬似コード、アーキテクチャ、リファインメント、完了という5つの段階を持つ構造化された開発の方法を、エージェントに歩ませます。複数の部分がある複雑な機能を作り、コーディングの前に計画したい人のためのものです。
使う場面
- ✓いくつかの部分がある新しい機能を作っているとき。
- ✓要件が不明確で、先に明らかにする必要があるとき。
- ✓システム全体の設計に影響する変更を計画しているとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“SPARCの方法を使って、私たちの新しい請求機能を計画してください。仕様から始めてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは各段階を順に進め、要件、擬似コード、設計、そして洗練された実装を書き、各段階を記録します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
npx @claude-flow/cli hooks route --task "specification: [requirements]"
Example:
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
npx @claude-flow/cli hooks route --task "pseudocode: [feature]"
Example:
npx @claude-flow/cli hooks route --task "pseudocode: OAuth2 login flow with token refresh"
Architecture Phase
Design system structure, interfaces, and dependencies
npx @claude-flow/cli hooks route --task "architecture: [design]"
Example:
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
npx @claude-flow/cli hooks route --task "refinement: [feedback]"
Example:
npx @claude-flow/cli hooks route --task "refinement: add rate limiting and brute force protection"
Completion Phase
Finalize implementation with tests and documentation
npx @claude-flow/cli hooks route --task "completion: [final checks]"
Example:
npx @claude-flow/cli hooks route --task "completion: verify all tests pass, update API docs, security review"
SPARC Coordinator
Spawn SPARC coordinator agent
npx @claude-flow/cli agent spawn --type sparc-coord --name sparc-lead
Scripts
| Script | Path | Description |
|---|---|---|
sparc-init |
.agents/scripts/sparc-init.sh |
Initialize SPARC workflow for a new feature |
sparc-review |
.agents/scripts/sparc-review.sh |
Run SPARC phase review checklist |
References
| Document | Path | Description |
|---|---|---|
SPARC Overview |
docs/sparc.md |
Complete SPARC methodology guide |
Phase Templates |
docs/sparc-templates.md |
Templates for each SPARC phase |
Best Practices
- Check memory for existing patterns before starting
- Use hierarchical topology for coordination
- Store successful patterns after completion
- Document any new learnings
よくある質問
SPARCとは何の略ですか?
Specification、Pseudocode、Architecture、Refinement、Completionの略です。
いつスキップすべきですか?
単純なバグ修正、文書の更新、小さな設定の変更では使わないよう、スキルは述べています。
特別なツールが必要ですか?
スキルは、各段階を振り分けるためにclaude-flowのコマンドを使うため、それらのツールが使える必要があります。
詳細
作者による元の説明
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.
repo: ruvnet/ruflo
人気
- GitHubのスター
- 81k
- ランキング
- #1538
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。