.claude/skills/strict-tdd/SKILL.md
Use when enforcing TDD discipline — blocks writing production code unless a failing test exists first. Activate with /strict-tdd to enable session-scoped Red-Green-Refactor guardrail.
npx skillsauth add proffesor-for-testing/agentic-qe strict-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.
When activated, this skill registers a session-scoped hook that enforces Red-Green-Refactor discipline.
Blocks writes to src/ (production code) unless:
This prevents the common agent failure of writing test + implementation simultaneously.
/strict-tdd
Remains active for the current session only.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit",
"hook": ".claude/skills/strict-tdd/scripts/enforce-red-phase.sh",
"condition": "file matches src/**/*.{ts,js} AND NOT src/**/*.test.{ts,js}"
}
]
}
}
#!/bin/bash
# enforce-red-phase.sh
# Called before any Write/Edit to src/ files
TARGET_FILE="$1"
TEST_FILE="${TARGET_FILE%.ts}.test.ts"
if [ ! -f "$TEST_FILE" ]; then
echo "BLOCKED: No test file found at $TEST_FILE"
echo "Write a failing test first (Red phase), then implement."
exit 1
fi
# Check if tests are currently failing (Red phase)
npx jest "$TEST_FILE" --passWithNoTests 2>/dev/null
if [ $? -eq 0 ]; then
echo "WARNING: Tests are passing. Are you in Green/Refactor phase?"
echo "If adding new behavior, write a failing test first."
fi
development
Apply XP practices including pair programming, ensemble programming, continuous integration, and sustainable pace. Use when implementing agile development practices, improving team collaboration, or adopting technical excellence practices.
development
Warehouse Management System testing patterns for inventory operations, pick/pack/ship workflows, wave management, EDI X12/EDIFACT compliance, RF/barcode scanning, and WMS-ERP integration. Use when testing WMS platforms (Blue Yonder, Manhattan, SAP EWM).
testing
Advanced visual regression testing with pixel-perfect comparison, AI-powered diff analysis, responsive design validation, and cross-browser visual consistency. Use when detecting UI regressions, validating designs, or ensuring visual consistency.
development
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.