/universal-dev-standards:spec-derive [all|bdd|tdd|it|e2e|atdd] <spec-file>from universal-dev-standards
Derives BDD scenarios, TDD skeletons, integration and E2E tests, and ATDD tables from an approved specification. Use when a spec is approved and needs test artifacts.
Ships in universal-dev-standards. 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.
Read when SKILL.md points to them.
Generate derived artifacts (BDD scenarios, TDD skeletons, ATDD tables) from approved SDD specifications.
從已批准的 SDD 規格生成衍生工件(BDD 場景、TDD 骨架、ATDD 表格)。
| Subcommand | Description | Output |
|---|---|---|
all | Full derivation pipeline (BDD + TDD + IT + E2E + ATDD + Contracts) | .feature + .test.* + .it.test.* + .e2e.test.* + .md + .json |
bdd | Generate BDD scenarios only | .feature |
tdd | Generate TDD skeletons only | .test.* |
it | Generate Integration test skeletons | .it.test.* |
e2e | Generate E2E test skeletons | .e2e.test.* |
atdd | Generate ATDD test tables | .md (Markdown tables) |
SPEC-XXX.md file | 分析規格檔案| Rule | Description | 說明 |
|---|---|---|
| 1:1 Mapping | Every AC has exactly one test/scenario | 每個 AC 對應一個測試 |
| Traceability | All artifacts reference Spec ID and AC ID | 所有工件引用規格與 AC 編號 |
| No Invention | Do not add scenarios not in the spec | 不新增規格外的場景 |
| Tag | Meaning | 含義 |
|---|---|---|
[Source] | Direct content from spec | 直接來自規格 |
[Derived] | Transformed from source | 從來源轉換 |
[Generated] | AI-generated structure | AI 產生的結構 |
[TODO] | Requires human implementation | 需人工實作 |
/derive all specs/SPEC-001.md - Full derivation pipeline | 完整推演管線
/derive bdd specs/SPEC-001.md - Derive BDD scenarios only | 僅推演 BDD 場景
/derive tdd specs/SPEC-001.md - Derive TDD skeletons only | 僅推演 TDD 骨架
/derive it specs/SPEC-001.md - Derive Integration test skeletons | 推演整合測試骨架
/derive e2e specs/SPEC-001.md - Derive E2E test skeletons | 推演 E2E 測試骨架
/derive atdd specs/SPEC-001.md - Derive ATDD tables | 推演 ATDD 表格
After /derive completes, the AI assistant should suggest:
測試工件已產生。建議下一步 / Test artifacts generated. Suggested next steps:
- 執行
/tdd開始紅綠重構循環 ⭐ Recommended / 推薦 — Start Red-Green-Refactor cycle- 執行
/bdd細化 Gherkin 場景 — Refine Gherkin scenarios- 檢查產生的
[TODO]標記並補齊實作 — Review[TODO]markers and fill in implementations
完整的 AI 行為定義請參閱對應的命令文件:
/deriveFor complete AI agent behavior definition, see the corresponding command file:
/derive
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
spec-derive, forward-derivation, bdd, tdd, atdd, test-generation
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standards57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/adr[UDS] Create, manage, and track Architecture Decision Records (ADR).
Use when: architecture decisions, technology choices, design trade-offs, pattern selection.
Not for: decisions that do not change architecture — record them in the spec or commit; ideas not yet formed enough to decide — use /brainstorm.
Keywords: ADR, architecture decision, decision record, trade-off.
/ai-collaboration-standardsPrevent AI hallucination and ensure evidence-based responses when analyzing code or making suggestions.
Use when: analyzing code, making recommendations, providing options, or when user asks about confidence/certainty.
Not for: authoring the AI instruction files themselves — use /ai-instruction-standards; reviewing a concrete diff — use /code-review.
Keywords: certainty, assumption, inference, evidence, source.
/ai-friendly-architectureDesign AI-friendly architecture with explicit patterns, layered documentation, and semantic boundaries.
Use when: structuring projects for AI collaboration, optimizing codebase for AI analysis, setting up AI context.
Not for: writing the instruction files — use /ai-instruction-standards; language-conventional directory layout — use /project-structure-guide.
Keywords: architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml.
/ai-instruction-standardsCreate and maintain AI instruction files (CLAUDE.md, AGENTS.md, .cursor/rules/, etc.) with proper structure.
Use when: creating AI instruction files, separating universal vs project-specific rules, configuring AI tools.
Not for: shaping the codebase so AI can navigate it — use /ai-friendly-architecture; enforcing evidence-based answers — use /ai-collaboration-standards.
Keywords: CLAUDE.md, AGENTS.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt.
/api-designGuide API design following REST, GraphQL, and gRPC best practices.
Use when: designing APIs, reviewing endpoints, API versioning decisions.
Not for: verifying a running API against its consumers — use /contract-test; schema design behind the API — use /database.
Keywords: API, REST, GraphQL, gRPC, endpoint, versioning.
Other plugins' skills for the same job