Chuyển đến nội dung
Skillpedia
Lập trình chung81k · #1538

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

  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
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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự