home / skills / ctsstc / get-shit-done-skills / tdd

npx playbooks add skill ctsstc/get-shit-done-skills --skill tdd

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
667 B
---
name: gsd:reference:tdd
description: Test-Driven Development patterns for GSD
version: 1.0.0
triggers: [tdd, testing, test-driven]
tools: [Bash, Glob, Grep, Write]
---

# GSD TDD Reference

Test-Driven Development patterns and practices.

## When to Use

- Writing new functionality
- Refactoring existing code
- Ensuring test coverage

## TDD Cycle

1. Red - Write failing test
2. Green - Make test pass
3. Refactor - Improve code

## Best Practices

- Write smallest test first
- Test one thing at a time
- Use descriptive test names
- Maintain fast test execution
- Achieve high coverage

## Success Criteria

Tests written before implementation, all passing.