TDD Enforcement Algorithm
OfficialEnforce TDD: no code without a failing test first.
Software Engineering#code quality#automation#git#testing#TDD#workflow enforcement#test-driven development
Authorcipherstash
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers (and AI agents) often bypass Test-Driven Development (TDD) under pressure, leading to untested code and technical debt. This Skill provides a strict algorithmic decision tree to enforce test-first development, including mandatory deletion of untested code, ensuring robust, well-tested software.
Core Features & Use Cases
- Test-First Mandate: Algorithmically checks for a failing test before allowing implementation code to be written.
- Untested Code Deletion: Provides a recovery algorithm that mandates deleting any code written without a preceding failing test, overriding "sunk cost" rationalizations.
- Invalid Conditions List: Explicitly invalidates common excuses for skipping TDD (e.g., "too simple," "time pressure"), ensuring compliance.
- Use Case: When an agent is about to write a new function, this Skill ensures it first writes a failing test. If the agent accidentally writes code without a test, the Skill forces deletion, guaranteeing TDD compliance and preventing untested code from entering the codebase.
Quick Start
Before writing any implementation code:
The Skill will check: "Does a failing test exist for this code?"
If NO: STOP writing code. Write the failing test first.
If you've already written code without tests:
The Skill will prompt: "Delete the untested code. Execute: git reset --hard OR rm [files]."
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: TDD Enforcement Algorithm Download link: https://github.com/cipherstash/cipherpowers/archive/main.zip#tdd-enforcement-algorithm Please download this .zip file, extract it, and install it in the .claude/skills/ directory.