Creates, reviews, and manages specification documents for Spec-Driven Development, guiding full lifecycle workflows from draft to archive for formal features.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standardsThis skill is limited to using the following tools:
Create, review, and manage specification documents before writing code.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Create, review, and manage specification documents before writing code.
在撰寫程式碼前,建立、審查和管理規格文件。
/sdd vs uds spec | 何時使用| Scenario | /sdd | uds spec |
|---|---|---|
| Formal feature development with review cycle | ✅ | ❌ |
| Full spec lifecycle (Draft → Archived) | ✅ | ❌ |
| Quick prototyping / Vibe coding | ❌ | ✅ |
| Small incremental changes | ❌ | ✅ |
| Stakeholder sign-off required | ✅ | ❌ |
| Micro-spec from natural language intent | ❌ | ✅ |
/sdd= Full specification lifecycle for formal developmentuds spec= Lightweight micro-specs for rapid iteration
/sdd= 正式開發的完整規格生命週期uds spec= 快速迭代的輕量微規格
specs/, docs/specs/, or project spec directorySPEC-NNN or kebab-case change IDNew request? | 新需求?
├─ Bug fix restoring spec behavior? → Fix directly | 直接修復
├─ Typo/format/comment? → Fix directly | 直接修復
├─ Dependency update (non-breaking)? → Fix directly | 直接修復
├─ New feature/capability? → Create proposal | 建立提案
├─ Breaking change? → Create proposal | 建立提案
├─ Architecture change? → Create proposal | 建立提案
└─ Unclear? → Create proposal (safer) | 建立提案(較安全)
DISCUSS ──► CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY ──► ARCHIVE
Capture gray areas, establish governing principles, resolve ambiguities before writing spec.
Define requirements, technical design, acceptance criteria, and test plan.
Check for completeness, consistency, and feasibility with stakeholders.
Get stakeholder sign-off before implementation begins.
Develop following the approved spec, referencing requirements and AC.
Ensure implementation matches spec, all tests pass, AC satisfied.
Archive completed spec with links to commits/PRs.
| State | Description | 說明 |
|---|---|---|
| Draft | Work in progress | 草稿中 |
| Review | Under review | 審查中 |
| Approved | Ready for implementation | 已核准 |
| Implemented | Code complete | 已實作 |
| Archived | Completed or deprecated | 已歸檔 |
# [SPEC-ID] Feature: [Name]
## Overview
Brief description of the proposed change.
## Motivation
Why is this change needed? What problem does it solve?
## Requirements
### Requirement: [Name]
The system SHALL [behavior description].
#### Scenario: [Success case]
- **GIVEN** [initial context]
- **WHEN** [action performed]
- **THEN** [expected result]
## Acceptance Criteria
- AC-1: Given [context], when [action], then [result]
## Technical Design
[Architecture, API changes, database changes]
## Test Plan
- [ ] Unit tests for [component]
- [ ] Integration tests for [flow]
#### Scenario: (h4 header) for each scenarioWhen modifying existing specs, use delta sections:
| Operation | Description | 說明 |
|---|---|---|
## ADDED Requirements | New capabilities | 新增功能 |
## MODIFIED Requirements | Changed behavior | 修改行為 |
## REMOVED Requirements | Deprecated features | 移除功能 |
## RENAMED Requirements | Name changes | 重新命名 |
/sdd - Interactive spec creation wizard | 互動式規格建立精靈
/sdd auth-flow - Create spec for specific feature | 為特定功能建立規格
/sdd review - Review existing specs | 審查現有規格
/sdd --sync-check - Check sync status | 檢查同步狀態
After /sdd completes, the AI assistant should suggest:
規格文件已建立。建議下一步 / Specification document created. Suggested next steps:
- 執行
/derive從規格推導測試工件 ⭐ Recommended / 推薦 — Derive test artifacts from spec- 執行
/derive bdd僅推導 BDD 場景 — Derive BDD scenarios only- 執行
/derive tdd僅推導 TDD 骨架 — Derive TDD skeletons only- 審查 AC 完整性,確保所有驗收條件可測試 — Review AC completeness
- 檢查 UDS 規範覆蓋率 → 執行
/audit --patterns— Check UDS standard coverage → Run/audit --patterns
完整的 AI 行為定義請參閱對應的命令文件:
/sddFor complete AI agent behavior definition, see the corresponding command file:
/sdd