/dev-flow:specfrom dev-flow
建立與管理功能規格文件——提供規格書模板、狀態追蹤、技術設計指南。Use when creating new feature specifications or updating existing ones, "寫規格書", "建規格", "spec new", "更新規格", "功能規格文件".
Ships in dev-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
建立與管理功能規格文件,確保開發前有完整設計規劃。
spec new {feature-name} # 建立新規格書
spec update {feature-name} # 更新現有規格
spec view {feature-name} # 檢視規格
依功能領域分類存放,檔名帶功能名稱:
docs/
├── {domain-a}/{feature}_規格書.md
├── {domain-b}/{feature}_規格書.md
└── {domain-c}/{feature}_規格書.md
| 狀態 | 說明 |
|---|---|
| 草稿 | 正在撰寫中 |
| 審查中 | 等待技術審查 |
| 已批准 | 可開始實作 |
| 已實作 | 功能已完成 |
| 已部署 | 已上線 |
以下模板可直接落檔後填寫,層名與整合面向依專案實際調整:
# {功能名稱} 規格書
## 文件資訊
- **建立日期**: {日期}
- **最後更新**: {日期}
- **版本**: 1.0.0
- **作者**: {作者}
- **狀態**: 草稿 | 審查中 | 已批准 | 已實作
## 1. 功能概述
### 1.1 背景
{功能的業務背景與目的}
### 1.2 目標
{此功能要達成的目標}
### 1.3 範圍
- 包含: {功能包含的內容}
- 不包含: {功能不包含的內容}
## 2. 需求規格
### 2.1 功能需求
1. 系統應該...
2. 使用者可以...
3. 當...時,系統必須...
### 2.2 非功能需求
- **效能**: {回應時間 / 吞吐量目標}
- **可用性**: {上線時間目標}
- **可擴展性**: {擴展策略}
### 2.3 驗收標準
- [ ] 標準 1
- [ ] 標準 2
## 3. 技術設計
### 3.1 架構層級
- **Domain 層**: {實體、值物件、介面}
- **Application 層**: {服務、Commands/Queries、DTOs}
- **Infrastructure 層**: {Repository 實作、外部整合}
- **Presentation 層**: {API 端點、背景工作}
### 3.2 資料模型
{資料表 / 文件結構設計}
### 3.3 整合設計
{外部 API / 訊息 / 背景排程的端點、格式、處理流程、錯誤處理}
## 4. 實作計劃
### 4.1 檔案清單
- [ ] Domain/Entities/{Entity}
- [ ] Application/Services/{Service}
- [ ] Infrastructure/Repositories/{Repository}
- [ ] Tests/{Test}
### 4.2 開發步驟
1. 建立 Domain 實體
2. 實作 Application 服務
3. 建立 Repository
4. 撰寫並執行測試
## 5. 測試計劃
### 5.1 單元測試
{測試案例列表、覆蓋率目標}
### 5.2 整合測試
{整合測試場景、驗證項目}
### 5.3 效能測試
{效能指標、負載測試}
## 6. 風險評估
### 6.1 技術風險
- 風險 1: 描述及緩解措施
### 6.2 已知限制
- 限制 1
## 7. 變更歷史
| 版本 | 日期 | 作者 | 變更內容 |
|------|------|------|---------|
| 1.0.0 | {日期} | {作者} | 初始版本 |
規格文件應包含:
review — 審查規格文件work-on — 依規格執行開發commit — 提交時引用規格文件What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kerryhuang/kerryhuang-plugins --plugin dev-flow17 skills in this plugin
/agent-orchestration適用於多階段 agent chain(≥2 個 agent 接力)、需要用 output file 交棒、把多步工作流展示給使用者確認、偵測到「工作完成」需清理階段性產物、跨 agent 任務串接決策。涵蓋 chain 規範、output 路徑、清理流程、工作流呈現格式、subagent 作為 context 隔離工具的使用時機。觸發語:「召喚某 agent」「多階段流程」「派 subagent」「工作流規劃」「agent 交棒」「orchestration」。/commit建立符合 Conventional Commits 規範的語義化提交訊息,支援 Git Flow + Semantic Release 工作流程。Use when creating git commits, "commit 這些變更", "幫我提交", "建立 commit", "semantic commit"./context-hygieneUse when 對話很長 / context 變長 / context 快滿 / 感覺 Claude 變笨 / 連續修同一錯誤失敗 / 即將切換到無關任務 / 要讀大量檔案探索 / agent 交接(handoff)/ 使用者說「對話太長」「感覺變笨」「context 滿了」「要不要清一下」「clean context」時。Other plugins' skills for the same job