Slash Command
/derive-tdd
Derive test skeleton files from an approved SDD specification document.
From universal-dev-standardsInstall
1
Run in your terminal$
npx claudepluginhub asiaostrich/universal-dev-standards --plugin universal-dev-standardsCommand Content
/derive-tdd — Derive TDD Skeletons | 推演 TDD 測試骨架
Derive test skeleton files from an approved SDD specification document.
從已核准的 SDD 規格文件推演測試骨架檔案。
Workflow | 工作流程
SPEC-XXX.md ──► Parse AC ──► Generate .test.ts ──► Review
- Read the SDD spec and extract acceptance criteria
- Map each AC to a
describe/itblock with AAA pattern - Generate test file with
[TODO]markers for implementation - Output derivation summary
Output Format | 輸出格式
describe('SPEC-001: [Feature Name]', () => {
describe('AC-1: [AC description]', () => {
it('should [expected behavior]', () => {
// Arrange — [TODO]
// Act — [TODO]
// Assert — [TODO]
});
});
});
Usage | 使用方式
| Command | Purpose | 用途 |
|---|---|---|
/derive-tdd specs/SPEC-001.md | Derive TDD from specific spec | 從特定規格推演 TDD |
/derive-tdd | Interactive — ask for spec file | 互動式 — 詢問規格檔案 |
Reference | 參考
- Parent command: /derive
- Core standard: forward-derivation-standards.md
Other plugins with /derive-tdd
Stats
Parent Repo Stars46
Parent Repo Forks9
Last CommitFeb 9, 2026