sparc-methodology
SPARC development methodology for systematic test-driven development
от ruvnet★ 850 звёзд на GitHub
Установить sparc-methodology в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SPARC Methodology Skill
Systematic Test-Driven Development using SPARC (Specification, Pseudocode, Architecture, Refinement, Completion).
Quick Commands
# Run complete TDD workflow
npx [email protected] sparc tdd "implement user authentication"
# Run specific phase
npx [email protected] sparc run specification "auth system"
npx [email protected] sparc run pseudocode "auth system"
npx [email protected] sparc run architect "auth system"
npx [email protected] sparc run refinement "auth system"
npx [email protected] sparc run completion "auth system"
# Batch execution
npx [email protected] sparc batch "spec-pseudocode,architect" "feature X"
SPARC Phases
1. Specification (spec)
Define requirements and acceptance criteria.
Agent: specification
Output: Requirements doc, test cases
Command:
npx [email protected] sparc run spec "user login feature"
2. Pseudocode (pseudo)
Design algorithms and logic flow.
Agent: pseudocode
Output: Algorithm design, flow diagrams
Command:
npx [email protected] sparc run pseudo "auth flow"
3. Architecture (arch)
System design and component structure.
Agent: architecture
Output: Component diagram, API design
Command:
npx [email protected] sparc run arch "microservices layout"
4. Refinement (refine)
Iterative TDD implementation.
Agent: refinement
Output: Tests + Implementation
Command:
npx [email protected] sparc run refine "auth module"
5. Completion (complete)
Integration and deployment.
Agent: completion
Output: Integrated system, docs
Command:
npx [email protected] sparc run complete "auth system"
SPARC Modes
Additional specialized modes:
| Mode | Description |
|---|---|
dev |
General development |
api |
API design |
ui |
UI/UX development |
test |
Testing focus |
refactor |
Code improvement |
debug |
Bug investigation |
security |
Security review |
devops |
CI/CD setup |
TDD Workflow
# Full TDD cycle
npx [email protected] sparc tdd "implement OAuth2"
# This runs:
# 1. Specification: Define requirements
# 2. Pseudocode: Design algorithm
# 3. Architecture: Plan structure
# 4. Refinement: Write tests first, then implement
# 5. Completion: Integrate and document
Agent Integration
SPARC uses specialized agents:
// Via Claude Code Task tool
Task("Specification agent", "Define requirements for OAuth", "specification")
Task("Architecture agent", "Design OAuth architecture", "architecture")
Task("Coder agent", "Implement OAuth with TDD", "sparc-coder")
Task("Tester agent", "Verify OAuth implementation", "tester")
Task("Reviewer agent", "Review OAuth code quality", "reviewer")
Best Practices
- Start with specification: Clear requirements first
- Write tests first: TDD in refinement phase
- Iterate small: Small increments
- Document as you go: Keep docs updated
- Review at each phase: Quality gates
- Use parallel execution: Multiple agents
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sparc-methodology?
SPARC development methodology for systematic test-driven development
Как установить скилл sparc-methodology?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sparc-methodology запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…