sparc-methodology
Skill này làm gì
Skill này dẫn agent qua một phương pháp phát triển có cấu trúc với năm giai đoạn: đặc tả, mã giả, kiến trúc, tinh chỉnh và hoàn thành. Phù hợp với người xây dựng tính năng phức tạp và muốn lên kế hoạch trước khi viết code.
Khi nào nên dùng
- ✓Khi bạn đang xây dựng một tính năng mới có nhiều phần.
- ✓Khi yêu cầu chưa rõ và cần được làm sáng tỏ trước.
- ✓Khi bạn lên kế hoạch cho một thay đổi ảnh hưởng đến thiết kế tổng thể của hệ thống.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dùng phương pháp SPARC để lên kế hoạch cho tính năng thanh toán mới của chúng tôi, bắt đầu từ đặc tả.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent làm từng giai đoạn theo thứ tự, viết yêu cầu, mã giả, thiết kế và sau đó là phần triển khai đã tinh chỉnh, rồi ghi lại từng bước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
SPARC là viết tắt của gì?
Nó là viết tắt của Specification, Pseudocode, Architecture, Refinement và Completion.
Khi nào tôi nên bỏ qua nó?
Skill khuyên bỏ qua với các lỗi nhỏ, cập nhật tài liệu và thay đổi cấu hình nhỏ.
Nó có cần công cụ đặc biệt không?
Skill dùng các lệnh claude-flow để định tuyến từng giai đoạn, nên những công cụ đó cần sẵn sàng.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1538
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.