sdd
Skill4 starsChanged 28 days agoMITView on GitHub
[UDS] Create and review specification documents before writing code — spec format, states, and delta operations. Use when: a change needs a written spec first, reviewing a spec for completeness, amending an existing spec with delta sections. Not for: executing a gated SDD lifecycle — that moved to the adoption layer (XSPEC-095); lightweight micro-specs for rapid iteration — use the uds spec command. Keywords: SDD, spec, specification, design document, delta operation, spec review, 規格驅動開發, 規格文件, 變更操作.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- AsiaOstrich/universal-dev-standardsword for word, first seen Nov 4, 2026
- totalfrank/skillstheir own version, first seen Oct 27, 2026
- monaccode/astromesh-sddtheir own version, first seen Oct 20, 2026
- Isabella-a/Skillstheir own version, first seen Oct 19, 2026
- IulaiJedi/sdd-skilltheir own version, first seen Oct 18, 2026
- artimath/effect-skillstheir own version, first seen Oct 17, 2026
Used with
Projects with it also use implement.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 1
- AsiaOstrich/universal-dev-standards★ 84100% same
Edited · 0
None found.
Wrote their own version · 19
- siemens/ix★ 390same name
- SpillwaveSolutions/sdd-skill★ 99same name
- liatrio-labs/spec-driven-workflow★ 92same name
- baekenough/oh-my-customcode★ 42same name
- dewil/ai-toolkit★ 9same name
- dewil/claude-toolkit★ 9same name
- artimath/effect-skills★ 8same name
- kingdon/skills★ 4same name
- totalfrank/skills★ 4same name
- Isabella-a/Skills★ 2same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-coverageSkill
- adrSkill
- ai-collaboration-standardsSkill
- ai-friendly-architectureSkill
- ai-instruction-standardsSkill
- api-designSkill
- atddSkill
- auditSkill
- bddSkill
- brainstormSkill
- changelogSkill
- checkinSkill
- ci-cdSkill
- code-reviewSkill
- commitSkill
- contract-testSkill
- databaseSkill
- deploySkill
- methodologySkill
- dev-workflowSkill
- docgenSkill
- documentation-guideSkill
- durableSkill
- e2eSkill
- error-code-guideSkill
- git-workflow-guideSkill
- incidentSkill
- journey-test-assistantSkill
- knowledge-graphSkill
- logging-guideSkill
- metricsSkill
- migrateSkill
- observabilitySkill
- orchestrateSkill
- planSkill
- prSkill
- discoverSkill
- project-structure-guideSkill
- pushSkill
- refactorSkill
- releaseSkill
- requirementSkill
- retrospectiveSkill
- reverseSkill
- runbookSkill
- securitySkill
- scanSkill
- skill-builderSkill
- sloSkill
- spec-deriveSkill
- sweepSkill
- tddSkill
- coverageSkill
- testing-guideSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Create, review, and manage specification documents before writing code.
- Very specific: line 44
Search existing specs: look in specs/, docs/specs/, or project spec directory
- Very specific: line 47
Write proposal with clear AC (Given/When/Then format)
- Distinctive: line 79
Check for completeness, consistency, and feasibility with stakeholders.
- Distinctive: line 88
Ensure implementation matches spec, all tests pass, AC satisfied.
- Very specific: line 176
Use #### Scenario: (h4 header) for each scenario
- Distinctive: line 177
Every requirement MUST have at least one scenario
- Distinctive: line 178
Use GIVEN/WHEN/THEN format for structured behavior
- Distinctive: line 179
Use SHALL/MUST for normative requirements, SHOULD for recommendations
- Distinctive: line 183
When modifying existing specs, use delta sections:
- Very specific: line 241
After /sdd completes, the AI assistant should suggest:
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- DEPRECATION NOTICE (XSPEC-086 Phase 4, 2026-04-28):
SDD lifecycle orchestration (7-phase state machine, phase transitions, gate checks) relocated to
adoption layer (XSPEC-095, 2026-04-28). This Skill retains: spec format definition, state
descriptions, delta operations, decision tree.
For enforced lifecycle execution, use your adoption layer's toolchain.
-->Spec-Driven Development Assistant | 規格驅動開發助手
Create, review, and manage specification documents before writing code.
在撰寫程式碼前,建立、審查和管理規格文件。
When to Use /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= 快速迭代的輕量微規格
TL;DR Quick Checklist | 快速檢查清單
- Search existing specs: look in
specs/,docs/specs/, or project spec directory - Decide scope: new feature vs modify existing capability
- Pick a unique spec ID:
SPEC-NNNor kebab-case change ID - Write proposal with clear AC (Given/When/Then format)
- Get approval before implementation begins
- Implement tasks sequentially, verify against spec
- Archive spec after completion
Decision Tree | 決策樹
New 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 | 建立提案
├─ Agent/role definition (spans multiple features)? → Use spec-type: agent | 使用 Agent SPEC template
└─ Unclear? → Create proposal (safer) | 建立提案(較安全)Workflow | 工作流程
DISCUSS ──► CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY ──► ARCHIVE0. Discuss - Clarify Scope | 釐清範圍
Capture gray areas, establish governing principles, resolve ambiguities before writing spec.
1. Create - Write Spec | 撰寫規格
Define requirements, technical design, acceptance criteria, and test plan.
2. Review - Validate | 審查驗證
Check for completeness, consistency, and feasibility with stakeholders.
3. Approve - Sign Off | 核准
Get stakeholder sign-off before implementation begins.
4. Implement - Code | 實作
Develop following the approved spec, referencing requirements and AC.
5. Verify - Confirm | 驗證
Ensure implementation matches spec, all tests pass, AC satisfied.
6. Archive - Close | 歸檔
Archive completed spec with links to commits/PRs.
Spec States | 規格狀態
| State | Description | 說明 |
| Draft | Work in progress | 草稿中 |
| Review | Under review | 審查中 |
| Approved | Ready for implementation | 已核准 |
| Implemented | Code complete | 已實作 |
| Archived | Completed or deprecated | 已歸檔 |
Spec Structure | 規格結構
# [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]Agent SPEC Structure | Agent 規格結構(spec-type: agent)
# [SPEC-ID] Agent: [Role Name]
<!-- spec-type: agent -->
<!-- agent-id auto-referenced by feature SPECs -->
## Role Definition
- **Role**: [Agent Name]
- **Responsibility**: [One sentence]
- **Autonomy Level**: L[1-5] (per DEC-065)
## Capability Scope
**Owns:**
- [Capability 1]
- [Capability 2]
**Does NOT own:**
- [Explicit exclusion]
## Interface Contract
### Input
| Message Type | Required Fields | Optional Fields |
|---|---|---|
| [Type] | [fields] | [fields] |
### Output
| Artifact Type | Success Condition | Failure Condition |
|---|---|---|
| [Type] | [condition] | [condition] |
## Agent Interactions
- **Upstream**: [Who calls this agent]
- **Downstream**: [Who this agent calls]
- **Parallel**: [Agents working alongside]
## Related Feature SPECs
- [SPEC-NNN] — [This agent's role in that spec]Scenario Formatting Rules | 場景格式規則
- Use
#### Scenario:(h4 header) for each scenario - Every requirement MUST have at least one scenario
- Use GIVEN/WHEN/THEN format for structured behavior
- Use SHALL/MUST for normative requirements, SHOULD for recommendations
Delta Operations | 變更操作
When modifying existing specs, use delta sections:
| Operation | Description | 說明 |
## ADDED Requirements | New capabilities | 新增功能 |
## MODIFIED Requirements | Changed behavior | 修改行為 |
## REMOVED Requirements | Deprecated features | 移除功能 |
## RENAMED Requirements | Name changes | 重新命名 |
Cross-Artifact Analysis (/sdd analyze) | 跨 artifact 一致性檢查
The executable face of the acceptance-criteria-traceability standard + forward-derivation single-spine principle (XSPEC-262). Validates that every test is a faithful projection of the AC spine across specs. 本命令是 acceptance-criteria-traceability + forward-derivation single-spine 的可執行面,驗證每個測試是否忠實投影 AC 主幹。
| Signal | Meaning | Gate |
| orphan test | @SPEC-NNN @AC-N references an AC no spec defines / 引用不存在的 AC | 🔴 BLOCKING |
| uncovered | an AC has no @SPEC-NNN @AC-N reference / AC 無測試引用 | report only / 僅報告 |
| not_implemented | AC marked so in its .ac.yaml / .ac.yaml 標記 | 🔴 BLOCKING before UAT |
| cross-spec conflict | same AC id defined in >1 spec / 同 AC id 跨多 spec | 🔴 BLOCKING |
| orphan .feature | Gherkin @AC-N tag referencing a non-existent AC / @AC-N 引用不存在 | 🔴 BLOCKING |
| AC w/o scenario | AC has no .feature scenario (when BDD in use) / AC 無 BDD scenario | report only / 僅報告 |
| user-guide drift | user-guide T-N with no matching journey/E2E test id / 手冊 T-N 無對應測試 | 🔴 BLOCKING |
Coverage % uses the acceptance-criteria-traceability formula (not_implemented excluded). --json for CI.
npm run sdd:analyze -- --specs specs --tests tests [--userguide docs] [--json]--userguide <dir> enables user-guide↔E2E drift detection (T-NNN, XSPEC-260/257). / 啟用手冊↔E2E drift 偵測。
vs /ac-coverage: ac-coverage = per-spec detailed AC↔test matrix;/sdd analyze = cross-spec/batch consistency + orphan detection(互補、不取代)。
Spec-vs-Code Convergence Check | 規格與實作漂移偵測(2026-07-10,spec-kit /converge 借鑑)
vs /sdd analyze:/sdd analyze 問「測試有沒有正確引用 AC」(引用完整性,deterministic script);convergence check 問「程式碼的實際行為是否真的符合 spec 描述」(語意漂移,需要讀碼判斷,走 sdd.flow.yaml verify 階段的 spec-match-check ai-check step)——兩者互補、檢查的是不同層次的問題,不重疊。
雖然定義在 7-phase 狀態機的 verify 階段(一次性 gate),這個檢查可以在任何時間點對已歸檔的 spec 獨立重跑——用於偵測 spec 歸檔後、code 持續演進累積出的漂移(例如後續 commit 改了行為但沒回頭更新 spec)。重跑時:
- 落差分類:
missing(spec 要求但沒做)/partial(做一半)/contradicts(行為與描述不同)/unrequested(做了沒被要求的事) - 嚴重度:
CRITICAL(違反 spec 明確 MUST)/HIGH/MEDIUM/LOW - 唯讀比對——只列出發現,不自動修改 spec 或程式碼
- 適合定期(如季度)對重要 spec 抽查,或懷疑特定 spec 已過時時針對性執行
Usage | 使用方式
/sdd - Interactive spec creation wizard | 互動式規格建立精靈
/sdd auth-flow - Create spec for specific feature | 為特定功能建立規格
/sdd review - Review existing specs | 審查現有規格
/sdd analyze - Cross-artifact consistency check | 跨 artifact 一致性檢查
/sdd --sync-check - Check sync status | 檢查同步狀態Next Steps Guidance | 下一步引導
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
Reference | 參考
- Detailed guide: guide.md
- Core standard: spec-driven-development.md
AI Agent Behavior | AI 代理行為
完整的 AI 行為定義請參閱對應的命令文件:
/sddFor complete AI agent behavior definition, see the corresponding command file:
/sdd
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

