spec-workflow
強制執行規範驅動開發工作流程
開發團隊在維護各功能間的一致方法論上遇到困難。此技能自動化執行 TDD 強制實施、驗收標準驗證,以及每個實作任務的範圍管理。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“spec-workflow”。 実装して:specs/001-user-auth/001-01-login/001-01-01-basic-login.md
预期结果:
- 已讀取 Subtask 檔案
- AC 確認:偵測到 5 項驗收標準
- 以下列 AC 進行實作,請確認?
- - 使用正確的認證資訊登入成功
- - 使用錯誤的認證資訊顯示錯誤
正在使用“spec-workflow”。 CI/CD也設定して
预期结果:
- CI/CD 設定不在目前 Subtask 的 AC 中
- 處理方案:1. 不在目前的 Subtask 中實作(建議)
- 2. 定義為新的 Subtask
- 請選擇哪一個?
安全审计
安全This skill contains ONLY documentation and workflow guidance in Markdown format. No executable code, scripts, or network calls exist. All static findings are FALSE POSITIVES: code examples are illustrative pseudocode in Markdown fences, not shell commands; hash identifiers flagged as cryptographic algorithms are content metadata; example dialogues flagged as C2 keywords are user assistance examples; path references are legitimate documentation links. The skill is a pure prompt-based workflow enforcer.
风险因素
🌐 网络访问 (1)
📁 文件系统访问 (9)
⚙️ 外部命令 (43)
质量评分
你能构建什么
維持開發紀律
為每個功能實作一致遵循 TDD 方法論
標準化工作流程
跨團隊成員強制執行驗收標準和範圍邊界
品質閘道強制執行
確保所有實作在建立 PR 前符合 AC 需求
试试这些提示
実装して/spec-workflow:讀取 specs/{epic-id}/{story-id}/{subtask-id}.md 並確認 AC。詢問使用者「是否以此 AC 繼續?」後再開始 TDD 循環。透過 spec-workflow 繼續:檢查目前 Subtask 的進度。建議應該從 AC 的哪個項目繼續。
spec-workflow:確認請求的功能是否包含在目前 Subtask 的 AC 中。如果超出範圍僅提供建議。
透過 spec-workflow 完成處理:確認所有 AC 項目的達成狀態。確認所有測試通過後,建議使用 /subpr 建立 PR。
最佳实践
- 在實作前將需求分解為清晰的驗收標準
- 先撰寫失敗的測試,然後實作最少的程式碼使其通過
- 完成前驗證每個驗收標準是否已滿足
避免
- 實作驗收標準中未定義的功能
- 跳過測試撰寫階段
- 未經 AC 驗證即完成任務