skillfed

doc-tdd

doc-tdd generates Layer 7 TDD artifacts that translate component contracts into concrete test cases with quality thresholds. It maps BDD scenarios to unit, integration, functional, and end-to-end tests, establishes coverage targets per type, and sequences the Red-Green-Refactor workflow before implementation begins.

doc-tdd creates a Test-Driven Development guide that maps BDD scenarios to test cases and sets quality thresholds for SPEC components.

AI-generated summary based on this skill's SKILL.md

16 3 MIT updated by vladm3105

Install

vladm3105/aidoc-flow-framework/doc-tdd · repository language: Python

git clone https://github.com/vladm3105/aidoc-flow-framework
cp -r aidoc-flow-framework/platforms/claude-code-plugin/skills/doc-tdd ~/.claude/skills/doc-tdd
npx skillfed install vladm3105/aidoc-flow-framework/doc-tdd

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I create a test-driven development guide from a SPEC component contract?

doc-tdd generates Layer 7 TDD artifacts by translating your SPEC component contract into concrete test cases with defined quality thresholds. The skill maps each contract requirement to specific test scenarios, establishes coverage targets by test type (unit, integration, functional, end-to-end), and sequences the Red-Green-Refactor workflow so you define tests before implementation begins.

How to write TDD test cases from BDD scenarios using doc-tdd?

doc-tdd maps BDD scenarios directly to concrete test cases by extracting inputs, outputs, and edge cases from each scenario. It assigns test cases to appropriate pyramid layers, defines pass/fail criteria for each, and links them back to upstream BDD artifacts for full traceability. This ensures your test-first workflow stays aligned with behavior specifications.

What does doc-tdd include for test pyramid and quality thresholds setup?

doc-tdd establishes a complete test pyramid structure with coverage targets and pass/fail criteria for each layer: unit tests (fastest, highest volume), integration tests (component interaction), functional tests (feature validation), and end-to-end tests (full workflow). It defines quality gates and threshold scores so you know exactly when tests pass and what coverage each type must achieve.

How does doc-tdd validate test traceability before implementation?

doc-tdd generates TDD documentation following Red-Green-Refactor execution order and validates that every test case links back to its upstream SPEC component contract or BDD scenario. It checks artifact element IDs, tagging standards, and traceability chains so you can confirm all requirements are covered before you write a single line of code.

What test types does doc-tdd help define for component testing?

doc-tdd defines unit, integration, functional, and end-to-end test cases tailored to your component contract. It also supports security and performance test types where applicable, assigns each to the correct pyramid layer, and establishes specific pass/fail criteria and coverage targets so your quality gates are measurable and IPLAN-ready.

Can doc-tdd map BDD scenarios to concrete test cases with edge cases?

Yes. doc-tdd extracts inputs, outputs, and edge cases from each BDD scenario and maps them to concrete test cases. It structures test cases with element IDs and tagging standards, defines expected results and failure modes, and links everything back to the originating scenario so your test suite remains fully traceable and comprehensive.

SKILL.md

rendered from the published skill — quoted content, verbatim

doc-tdd

Purpose

Create a Test-Driven Development guide (TDD) — Layer 7 of the SDD flow. A TDD defines test cases validating the SPEC component contract: maps BDD scenarios to concrete tests (inputs, expected outputs, edge cases), sets per-type quality thresholds, declares Red → Green → Refactor order. Test type (unit / integration / functional / perf / security) is a type attribute on each case — no separate artifacts.

Layer: 7 (after SPEC, before IPLAN).

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
platforms/claude-code-plugin/skills/doc-tdd/SKILL.md

Related skills

Tags

test-first-development quality-assurance test-pyramid behavior-validation coverage-targets test-orchestration contract-testing workflow-automation traceability-mapping acceptance-criteria