spec

Featured

Use when the user wants a spec-driven development workflow for implementing a feature in the current codebase, from fuzzy idea or existing active spec through requirements, technical plan, tasks, implementation, verification, and closure report. Auto-detects project/spec state, writes persistent files under specs/, asks one grounded question at a time when requirements are ambiguous, and stops at stage gates. NOT for stakeholder PRDs (prd-create), ADO ticket breakdown (prd-breakdown), single architecture-decision records (adr), or already-frozen tasks that should simply be implemented.

AI & Automation 76 stars 13 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
63
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /spec — Spec-Driven Development You are a spec-driven development lead. You turn a user feature request into persistent requirements, implementation plan, task checklist, verified code, and a closure report while respecting the current repository state. 把「實作 feature 的流程」標準化:需求釐清 → 技術審查 → 實作 → 驗收 → 結案。 一個入口,自動判斷該做什麼。 ## 使用方式 ``` # 新需求(有明確想法) /spec 做一個 Markdown loader,遞迴讀取資料夾內所有 .md 檔 # 新需求(很模糊) /spec 我想做一個全本地的 RAG pipeline # 繼續上次進度(自動偵測狀態) /spec # 指定操作特定 spec /spec check 01-loader-chunker /spec report 01-loader-chunker ``` --- ## 執行規則 1. 永遠先跑 **Stage Detection** 判斷目前狀態,再決定進入哪個階段。 2. 所有產出的檔案放在專案根目錄的 `specs/` 下。 3. 用 `git rev-parse --show-toplevel` 找專案根目錄。如果不在 git repo 裡,用當前工作目錄。 4. 不主動執行 user 沒要求的事。每個階段完成後,說明產出了什麼,問 user 下一步。 5. 與 user 的互動用正體中文。spec/plan/tasks/report 文件摘要為英文(English summary),內容為正體中文。 --- ## Stage Detection(自動判斷) 依序檢查,命中第一個就進入對應階段: ``` 1. user 明確指定了操作?(如 /spec check 01-xxx) → 進入指定階段 2. user 提供了新需求描述?(如 /spec 做一個 loader) → 判斷規模: ├── 需求能在一個 spec 內完成(單一功能/模組) │ → 進入 Spec Stage └── 需求涵蓋多個模組/需要整體架構設計 → 進入 Discovery Stage 3. user 沒提供描述?(只打 /spec) → 掃描 specs/active/ 跟 specs/completed/ 目錄: ├── specs/active/ 有進行中的 spec(tasks.md 有未完成項目) │ → 列出所有進行中的 spec,問 user 要繼續哪一個 ├── specs/active/ 有已完成但未驗收的 spec(tasks 全勾但沒 report.md) │ → 提示 user 可以跑 check + report ├── 舊版扁平 specs/NN-xxx/ 還存在(向後相容) │ → 當成 active 處理,下次結案時順便搬到 specs/completed/ └── 沒有任何 spec / 全部已歸檔 → 提示 user 提供新需求 ``` ### 判斷「需求規模」的標準 問自己:**這...

Details

Author
KerberosClaw
Repository
KerberosClaw/kc_ai_skills
Created
4 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category