TDD Guard automates test-driven development enforcement for Claude Code. It benefits developers and operations teams by ensuring code quality and reducing bugs. It integrates with Git hooks and CI/CD pipelines, connecting to Claude Code workflows.
git clone https://github.com/nizos/tdd-guard.githttps://github.com/nizos/tdd-guard
Enforce test-first development by blocking code implementation until tests are written.
Prevent over-implementation by restricting code changes to only what is necessary for passing tests.
Integrate linting rules to ensure code quality during refactoring processes.
Customize validation rules to align with specific TDD practices and team standards.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/nizos/tdd-guardCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Please analyze the following code snippet for [COMPANY] in the [INDUSTRY] sector and ensure it adheres to TDD principles. Here's the code: [CODE_SNIPPET]. Provide feedback on any violations and suggest improvements.
### Code Review Feedback
**Code Snippet:**
```python
def add(a, b):
return a + b
```
**Feedback:**
- **Test Coverage:** The function `add` lacks corresponding unit tests. Ensure that there are tests verifying its behavior for various inputs, including edge cases (e.g., negative numbers, zero).
- **Improvements:** Consider implementing tests like:
```python
def test_add():
assert add(1, 2) == 3
assert add(-1, 1) == 0
assert add(0, 0) == 0
```
- **Recommendation:** Enforce writing tests before implementing the function to adhere to TDD principles.Your one-stop shop for church and ministry supplies.
AI assistant built for thoughtful, nuanced conversation
Automate your browser workflows effortlessly
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power