
Strict Tdd
- 42 installs
- 433 repo stars
- Updated August 4, 2026
- proffesor-for-testing/agentic-qe
strict-tdd is a Claude Code skill for ai & agent building.
About
strict-tdd is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- strict-tdd
- AI & Agent Building
- AI-coding skill
Strict Tdd by the numbers
- 42 all-time installs (skills.sh)
- +3 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #8,023 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill strict-tddAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 42 |
|---|---|
| repo stars | ★ 433 |
| Last updated | August 4, 2026 |
| Repository | proffesor-for-testing/agentic-qe ↗ |
How do I helps with ai & agent building tasks.?
Helps with ai & agent building tasks.
Who is it for?
Best when you're working on ai & agent building and need structured help with strict tdd.
Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.
When should I use this skill?
When you need to helps with ai & agent building tasks., or when strict-tdd is a claude code skill for ai & agent building.
What you get
Structured output aligned to strict-tdd: strict-tdd, AI & Agent Building.
Files
Strict TDD Mode
When activated, this skill registers a session-scoped hook that enforces Red-Green-Refactor discipline.
What It Does
Blocks writes to src/ (production code) unless: 1. A test file exists that covers the target module 2. That test has at least one failing assertion (Red phase confirmed)
This prevents the common agent failure of writing test + implementation simultaneously.
Activation
/strict-tddRemains active for the current session only.
Hook Configuration
{
"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}"
}
]
}
}Enforcement Logic
#!/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."
fiGotchas
- Only blocks src/ files — test files and config files are always writable
- During Refactor phase, tests should still pass — this is expected, don't treat as violation
- If test runner isn't installed, hook will error — ensure jest/vitest is available
- Agent may try to write to a different path to bypass — the hook should match all production code paths
#!/bin/bash
# enforce-red-phase.sh — Strict TDD hook
# Blocks writes to src/ unless a corresponding test file exists and has failing tests.
# Called by PreToolUse hook on Write/Edit to src/**/*.{ts,js}
TARGET_FILE="$1"
# Skip non-source files
if [[ ! "$TARGET_FILE" =~ ^src/ ]] || [[ "$TARGET_FILE" =~ \.(test|spec)\.(ts|js|tsx|jsx)$ ]]; then
exit 0
fi
# Derive test file path
TEST_FILE="${TARGET_FILE%.ts}.test.ts"
if [ ! -f "$TEST_FILE" ]; then
TEST_FILE="${TARGET_FILE%.js}.test.js"
fi
if [ ! -f "$TEST_FILE" ]; then
echo "BLOCKED: No test file found for $TARGET_FILE"
echo "Expected: ${TARGET_FILE%.ts}.test.ts"
echo "Write a failing test first (Red phase), then implement."
exit 1
fi
# Check if tests are currently passing (should be failing in Red phase)
npx jest "$TEST_FILE" --passWithNoTests --silent 2>/dev/null
TEST_EXIT=$?
if [ $TEST_EXIT -eq 0 ]; then
echo "WARNING: Tests in $TEST_FILE are all passing."
echo "If adding new behavior, write a failing test first (Red phase)."
echo "If in Green/Refactor phase, this is expected — proceed."
fi
exit 0
Related skills
FAQ
What does strict-tdd do?
strict-tdd is a Claude Code skill for ai & agent building.
When should I use strict-tdd?
When you need to helps with ai & agent building tasks., or when strict-tdd is a claude code skill for ai & agent building.
What are the main capabilities?
strict-tdd; AI & Agent Building; AI-coding skill.