skills/tdd/SKILL.md
# Test-Driven Development ## When this skill activates Activate during the **Build sub-phase** of Construction whenever a Beads task is claimed and implementation work is about to begin. This skill governs every line of implementation code written during the Build sub-phase. It does not apply to scaffolding (e.g. `npm init`, directory creation) or config-only tasks, but applies to all logic, handlers, routes, components, services, hooks, and utilities. If the task is infrastructure-only (e.g.
npx skillsauth add pdlc-os/pdlc skills/tddInstall 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.
Activate during the Build sub-phase of Construction whenever a Beads task is claimed and implementation work is about to begin. This skill governs every line of implementation code written during the Build sub-phase. It does not apply to scaffolding (e.g. npm init, directory creation) or config-only tasks, but applies to all logic, handlers, routes, components, services, hooks, and utilities.
If the task is infrastructure-only (e.g. setting up a CI pipeline, configuring environment variables, provisioning infra), pause before writing any code and ask the human for an explicit TDD override before proceeding.
docs/pdlc/prds/PRD_[feature-name]_[YYYY-MM-DD].md.story:[id] label on the task). Read the full Given/When/Then block for that story.Repeat this cycle for each acceptance criterion:
Step 1 — Red: Write a failing test.
given [context], when [action], then [expected outcome]given unauthenticated user, when POST /login with valid credentials, then returns 200 with JWTStep 2 — Green: Write the minimal implementation to pass the test.
Step 3 — Refactor: Clean up without breaking.
Repeat for the next acceptance criterion.
If a test fails after implementation:
docs/pdlc/design/[feature-name]/. Re-run the test.docs/pdlc/memory/STATE.md: task ID, tests written (count), tests passing (count).test1, should work, or handles error.docs/pdlc/memory/STATE.md updated with task ID, test count, and pass status.data-ai
Run a feature autonomously from approved-PRD to shipped, evaluated by a per-turn Sentinel hook. Requires bypass-permissions mode and Agent Teams mode.
development
# Variant Convergence **Topic slug:** `variant-convergence` **Triggers:** - **Inception path — Brainstorm Design Step 10.7:** after Step 10.6 (Design-Laws Audit) completes, before Step 11 (PRD design-doc link updates) and the Step 12 design approval gate. Variants are HTML mockups Muse generates. - **Construction path — Build Review Step 12.5:** after Party Review (Step 12) writes its review file and Muse appends the *As-Built Audit* section to `ux-review.md`, before the Step 13 Review approval
data-ai
Force-release a stuck roadmap-level feature claim (admin command)
devops
Bypass the deploy-before-Operation guardrails block with a single confirmation