Agent skill · software engineering · aiskillstore

devflow-tdd-enforcer

Enforces TDD order in TASKS.md - Tests MUST be marked complete before Implementation tasks. Blocks violations in real-time.

Why this skill is useful

Adds a custom enforcement mechanism for TDD compliance in project task management that the AI wouldn't generate on its own.

What it needs

About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

DevFlow TDD Enforcer Purpose Enforce Test-First Development (TDD) order by preventing users from marking implementation tasks complete before their corresponding test tasks. Trigger: PreToolUse hook when editing devflow/requirements//TASKS.md Enforcement Rule Source: Extracted from planner agent's TDD mandate + Constitution Article VI ❌ BLOCKED Pattern (Violation) Problem: Implementation marked done BEFORE test Regex Pattern: \[x\].Implementation.\n.\[ \].Test ✅ CORRECT Pattern (TDD Sequence) Or after completion: Blocking Message When violation detected, PreToolUse hook returns exit code 2 (blocks file save): Constitutional Basis Article VI: Test-First Development planner agent enforces Generates TASKS.md with correct TDD order Phase 2: All tests listed first Phase 3+: Each user story has Test task before Implementation task Inserts "⚠️ TEST VERIFICATION CHECKPOINT" between Phase 2 and Phase 3 devflow-tdd-enforcer guardrail prevents Users from manually reversing that order Implementation tasks marked complete before test tasks Real-time detection during file editing Additional Violation Patterns Pattern 2: Phase 3+ User Story TDD Order Regex Pattern: \[x\].\[US\d+\].Implement.\n.\[ \].\[US\d+\].Test Pattern 3: Implementation without Test Skip Conditions Users can bypass TDD enforcer in specific scenarios: 1. Session Skip (One-time per session) Mechanism: sessionSkillUsed: true in skill-rules.json Behavior: Guardrail only triggers once per Claude session Use case: User acknowledged TDD violation, wants to continue 2. File Marker (Permanent skip for specific file) Marker: Add @skip-tdd-check comment anywhere in TASKS.md Example: Use case: Emergency hotfix, tests to be added later 3. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/devflow-tdd-enforcer

View the source on GitHub

Browse the @skills marketplace