sparc-methodology
它能做什么
这个技能引导 AI 使用 SPARC 方法:规格、伪代码、架构、细化和完成。适合希望有一套清晰、循序渐进的软件构建方式的开发者。
适用场景
- ✓当你希望在编写任何代码之前,逐步规划一个新功能的时候。
- ✓当你需要把大型项目拆分为清晰的阶段,并且测试先行的时候。
- ✓当你希望多个 AI 助手分别处理项目的不同部分的时候。
技能链接
https://github.com/ruvnet/RuView/blob/main/.claude/skills/sparc-methodology/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用 SPARC 方法规划并构建一个简单的预订系统,从需求开始。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 依次经历五个阶段,从需求开始,然后是伪代码、设计、细化后的代码和最终检查。过程中它会使用测试和审查来保持高质量。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
SPARC Methodology - Comprehensive Development Framework
Overview
SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) is a systematic development methodology integrated with Claude Flow's multi-agent orchestration capabilities. It provides 17 specialized modes for comprehensive software development, from initial research through deployment and monitoring.
Table of Contents
- Core Philosophy
- Development Phases
- Available Modes
- Activation Methods
- Orchestration Patterns
- TDD Workflows
- Best Practices
- Integration Examples
- Common Workflows
Core Philosophy
SPARC methodology emphasizes:
- Systematic Approach: Structured phases from specification to completion
- Test-Driven Development: Tests written before implementation
- Parallel Execution: Concurrent agent coordination for 2.8-4.4x speed improvements
- Memory Integration: Persistent knowledge sharing across agents and sessions
- Quality First: Comprehensive reviews, testing, and validation
- Modular Design: Clean separation of concerns with clear interfaces
Key Principles
- Specification Before Code: Define requirements and constraints clearly
- Design Before Implementation: Plan architecture and components
- Tests Before Features: Write failing tests, then make them pass
- Review Everything: Code quality, security, and performance checks
- Document Continuously: Maintain current documentation throughout
Development Phases
Phase 1: Specification
Goal: Define requirements, constraints, and success criteria
- Requirements analysis
- User story mapping
- Constraint identification
- Success metrics definition
- Pseudocode planning
Key Modes: researcher, analyzer, memory-manager
Phase 2: Architecture
Goal: Design system structure and component interfaces
- System architecture design
- Component interface definition
- Database schema planning
- API contract specification
- Infrastructure planning
Key Modes: architect, designer, orchestrator
Phase 3: Refinement (TDD Implementation)
Goal: Implement features with test-first approach
- Write failing tests
- Implement minimum viable code
- Make tests pass
- Refactor for quality
- Iterate until complete
Key Modes: tdd, coder, tester
Phase 4: Review
Goal: Ensure code quality, security, and performance
- Code quality assessment
- Security vulnerability scanning
- Performance profiling
- Best practices validation
- Documentation review
Key Modes: reviewer, optimizer, debugger
Phase 5: Completion
Goal: Integration, deployment, and monitoring
- System integration
- Deployment automation
- Monitoring setup
- Documentation finalization
- Knowledge capture
Key Modes: workflow-manager, documenter, memory-manager
Available Modes
Core Orchestration Modes
orchestrator
Multi-agent task orchestration with TodoWrite/Task/Memory coordination.
Capabilities:
- Task decomposition into manageable units
- Agent coordination and resource allocation
- Progress tracking and result synthesis
- Adaptive strategy selection
- Cross-agent communication
Usage:
mcp__claude-flow__sparc_mode {
mode: "orchestrator",
task_description: "coordinate feature development",
options: { parallel: true, monitor: true }
}
swarm-coordinator
Specialized swarm management for complex multi-agent workflows.
Capabilities:
- Topology optimization (mesh, hierarchical, ring, star)
- Agent lifecycle management
- Dynamic scaling based on workload
- Fault tolerance and recovery
- Performance monitoring
workflow-manager
Process automation and workflow orchestration.
Capabilities:
- Workflow definition and execution
- Event-driven triggers
- Sequential and parallel pipelines
- State management
- Error handling and retry logic
batch-executor
Parallel task execution for high-throughput operations.
Capabilities:
- Concurrent file operations
- Batch processing optimization
- Resource pooling
- Load balancing
- Progress aggregation
Development Modes
coder
Autonomous code generation with batch file operations.
Capabilities:
- Feature implementation
- Code refa
常见问题
SPARC 中每个字母代表什么?
分别是 Specification(规格)、Pseudocode(伪代码)、Architecture(架构)、Refinement(细化)和 Completion(完成)。
它有多少种模式?
该技能描述了 17 种针对不同开发阶段的专门模式。
它需要多个 AI 智能体吗?
该技能是围绕多智能体协作构建的,因此多个助手是其设计的一部分。
详情
作者的原始描述
SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration
repo: ruvnet/RuView
热度
- GitHub 星标
- 102k
- 排名
- #839
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
AgentDB Advanced Features
102k帮你的智能体了解 AgentDB 的高级功能,例如在多台机器之间同步数据库,以及把向量搜索与元数据过滤结合起来。
AgentDB Learning Plugins
102k让你的智能体为 AgentDB 构建并训练学习插件,使用能从过去经验中不断改进的强化学习方法。
AgentDB Memory Patterns
102k让你的智能体跨会话记住对话和上下文,并以 AgentDB 作为其持久记忆存储。
AgentDB Performance Optimization
102k帮你的智能体提升 AgentDB 的搜索速度并减少内存占用,借助压缩、快速搜索索引和缓存。