.claude/skills/forward-derivation/SKILL.md
[UDS] 從已批准的 SDD 規格生成衍生工件(BDD/TDD/ATDD)
npx skillsauth add asiaostrich/universal-dev-standards deriveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
語言: English | 繁體中文
從已批准的 SDD 規格生成衍生工件(BDD 場景、TDD 骨架、ATDD 表格)。
| 子命令 | 說明 | 輸出 | Output |
|--------|------|------|--------|
| all | 生成 BDD + TDD(預設) | .feature + .test.* | .feature + .test.* |
| bdd | 僅生成 BDD 場景 | .feature | .feature |
| tdd | 僅生成 TDD 骨架 | .test.* | .test.* |
| atdd | 生成 ATDD 測試表格 | .md(Markdown 表格) | .md (Markdown tables) |
SPEC-XXX.md 檔案| 規則 | 說明 | Rule | Description | |------|------|------|-------------| | 1:1 對應 | 每個 AC 對應一個測試/場景 | 1:1 Mapping | Every AC has exactly one test/scenario | | 可追溯性 | 所有工件引用規格與 AC 編號 | Traceability | All artifacts reference Spec ID and AC ID | | 禁止捏造 | 不新增規格外的場景 | No Invention | Do not add scenarios not in the spec |
| 標籤 | 含義 | Tag | Meaning |
|------|------|-----|---------|
| [Source] | 直接來自規格 | Source | Direct content from spec |
| [Derived] | 從來源轉換 | Derived | Transformed from source |
| [Generated] | AI 產生的結構 | Generated | AI-generated structure |
| [TODO] | 需人工實作 | TODO | Requires human implementation |
/derive all specs/SPEC-001.md - 推演 BDD + TDD/derive bdd specs/SPEC-001.md - 僅推演 BDD 場景/derive tdd specs/SPEC-001.md - 僅推演 TDD 骨架/derive atdd specs/SPEC-001.md - 推演 ATDD 表格/derive 完成後,AI 助手應建議:
測試工件已產生。建議下一步:
- 執行
/tdd開始紅綠重構循環- 執行
/bdd細化 Gherkin 場景- 檢查產生的
[TODO]標記並補齊實作
tools
[UDS] 從規格衍生 BDD 場景、TDD 骨架或 ATDD 表格
development
[UDS] /methodology: 選擇並追蹤開發方法論(SDD/BDD/TDD)。 Use when: 選擇方法論、切換開發模式、查詢當前方法論狀態。 若要查詢各階段對應指令請用 /dev-workflow。
testing
[UDS] Derive BDD scenarios, TDD skeletons, or ATDD tables from specifications
development
[UDS] Create or review specification documents for Spec-Driven Development