sparc-spec
Skill này làm gì
Skill này chạy giai đoạn đầu của phương pháp SPARC, thu thập yêu cầu, tiêu chí chấp nhận và ràng buộc cho một tính năng. Skill dành cho các nhóm muốn có yêu cầu rõ ràng trước khi phát triển.
Khi nào nên dùng
- ✓Khi bạn bắt đầu một tính năng mới và cần ghi lại yêu cầu trước.
- ✓Khi bạn muốn có tiêu chí chấp nhận rõ ràng trước khi viết mã.
- ✓Khi bạn muốn ghi lại các ràng buộc mà một tính năng phải tuân theo.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-spec/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
“Hãy viết yêu cầu và tiêu chí chấp nhận cho tính năng đặt lại mật khẩu trước khi chúng ta bắt đầu viết mã.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra công việc trước đó về tính năng, xem các đặc tả tương tự trong quá khứ và codebase, rồi liệt kê các yêu cầu chức năng và phi chức năng. Skill lưu đặc tả vào bộ nhớ để các giai đoạn sau dùng.
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 Specification Phase
Run Phase 1 of the SPARC methodology: define what must be built and how success is measured.
When to use
When starting a new feature or project that needs structured requirements gathering before any code is written. This phase produces the foundational specification that all subsequent phases (Pseudocode, Architecture, Refinement, Completion) build upon.
Steps
Initialize phase tracking — call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-startwith metadata{ "phase": "specification", "feature": "$ARGUMENTS" }Check for prior work — call
mcp__plugin_ruflo-core_ruflo__memory_retrievewith namespacesparc-stateand exact keycurrent-phase-{feature-slug}to see if this workflow exists. If it does, retrieve existing artifacts. If not, initialize state at that exact key with phase 1,status: "active", andstartedAtandupdatedAtset to the current ISO timestamp.Search for similar patterns — call
mcp__plugin_ruflo-core_ruflo__neural_predictwith the feature description to find relevant past specifications and learned patternsGather requirements — analyze the feature description and the codebase to identify:
- Functional requirements: what the feature must do (user-facing behaviors)
- Non-functional requirements: performance targets, security constraints, scalability needs
- Integration points: what existing systems or APIs are affected
- Data requirements: what data is created, read, updated, or deleted
Define acceptance criteria — write at least 3 concrete, testable acceptance criteria in Given/When/Then format:
AC-1: Given [precondition], when [action], then [expected result] AC-2: Given [precondition], when [action], then [expected result] AC-3: Given [precondition], when [action], then [expected result]Identify constraints — document:
- Performance constraints (latency, throughput, resource limits)
- Security constraints (authentication, authorization, data sensitivity)
- Compatibility constraints (browser support, API versions, backward compatibility)
- Infrastructure constraints (deployment environment, dependencies)
Map edge cases — list at least 3 edge cases or failure scenarios:
- What happens with invalid input?
- What happens under concurrent access?
- What happens when external dependencies fail?
Store specification — call
mcp__plugin_ruflo-core_ruflo__memory_storewith:- Namespace:
sparc-phases - Key:
spec-{feature-slug} - Value: JSON with
{ status: "complete", requirements, acceptanceCriteria, constraints, edgeCases, integrationPoints }
- Namespace:
Update phase state — call
mcp__plugin_ruflo-core_ruflo__memory_storewith:- Namespace:
sparc-state - Key:
current-phase-{feature-slug} - Value: preserve existing state fields, update artifacts list to include the spec key, and set
updatedAtto the current ISO timestamp
- Namespace:
Record trajectory step — call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-stepwith the specification summaryPresent specification — display the full specification document to the user with a summary table and suggest running
/ruflo-sparc:ruflo-sparc advanceto pass the gate and move to the Pseudocode phase
Output format
# Specification: {Feature Name}
## Requirements
### Functional
- FR-1: ...
- FR-2: ...
### Non-Functional
- NFR-1: ...
## Acceptance Criteria
- AC-1: Given ..., when ..., then ...
- AC-2: Given ..., when ..., then ...
- AC-3: Given ..., when ..., then ...
## Constraints
- Performance: ...
- Security: ...
- Compatibility: ...
## Edge Cases
- EC-1: ...
- EC-2: ...
- EC-3: ...
## Integration Points
- IP-1: ...
---
Phase 1 complete. Run `/ruflo-sparc:ruflo-sparc advance` to pass the gate check.
Câu hỏi thường gặp
Skill có viết mã không?
Không. Giai đoạn này chỉ xác định cần xây gì và đo thành công bằng cách nào.
Đặc tả được lưu ở đâu?
Đặc tả được lưu vào không gian bộ nhớ sparc-phases.
Tôi có thể tiếp tục một đặc tả trước đó không?
Có. Nếu đã có quy trình làm việc cho tính năng, skill lấy lại các sản phẩm đã lưu của nó.
Chi tiết
Mô tả gốc của tác giả
Run the SPARC Specification phase — gather requirements, define acceptance criteria, identify constraints, and store the spec in memory
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1697
- 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á.