tdd-best-practices

Guidelines for effective test-driven development workflows.

Content Preview
# TDD Best Practices

Guidelines for effective test-driven development workflows.

---

## Table of Contents

- [Red-Green-Refactor Cycle](#red-green-refactor-cycle)
- [Test Generation Guidelines](#test-generation-guidelines)
- [Test Quality Principles](#test-quality-principles)
- [Coverage Goals](#coverage-goals)

---

## Red-Green-Refactor Cycle

### RED Phase
1. Write a failing test before any implementation
2. Test should fail for the right reason (not compilation errors)
3. Name tests as sp
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/tdd-best-practices.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering-team/tdd-guide/references/tdd-best-practices.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering-team/tdd-guide/references/tdd-best-practices.md

Related Skills