Here's a structured approach to Test-Driven Development with 42 rules across 8 categories, from critical (red-green-refactor cycle) to low priority (test pyramid strategy). Each rule gets a prefix like cycle-, design-, or isolate-, making it easy to reference specific practices. The guide walks through the full TDD workflow and includes quick references for things like the AAA pattern, test isolation, and data management. It's built for AI agents but reads like a solid developer reference. One honest take: the categorization and priority system actually makes this more useful than most TDD guides that just throw all the rules at you at once. Goes well with the separate vitest and msw skills for framework specifics.

skills.sh installs
415
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill tdd --agent claude-code

Installs into .claude/skills of the current project.

Files

Community Test-Driven Development Best Practices

Comprehensive guide to Test-Driven Development practices, designed for AI agents and LLMs. Contains 42 rules across 8 categories, prioritized by impact to guide test writing, refactoring, and code generation.

When to Apply

Reference these guidelines when:

  • Writing new tests using TDD workflow
  • Implementing the red-green-refactor cycle
  • Designing test structure and organization
  • Creating test data and fixtures
  • Reviewing or refactoring existing test suites

TDD Workflow

  1. RED: Write a failing test that defines desired behavior
  2. GREEN: Write minimal code to make the test pass
  3. REFACTOR: Clean up code while keeping tests green
  4. Repeat for each new behavior

Rule Categories by Priority

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Backend & APIs, Testing & QA, Documentation, Code Review & Quality, Automation & Workflows
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1bobmatnyc avataropenrouterbobmatnyc/claude-mpm-skillsOpenRouter unified AI API - Access 200+ LLMs through single interface with intelligent routing, streaming, cost optimization, and model fallbacks413skills.sh installs
2dpearson2699 avatarmetrickit-diagnosticsdpearson2699/swift-ios-skillsCollect and analyze on-device performance metrics and crash diagnostics using MetricKit. Use when setting up MXMetricManager, handling MXMetricPayload or MXDiag409skills.sh installs
3dpearson2699 avatarmusickit-audiodpearson2699/swift-ios-skillsIntegrate Apple Music playback, catalog search, and Now Playing metadata using MusicKit and MediaPlayer. Use when adding music search, Apple Music subscription 409skills.sh installs
4mblode avatarblog-postmblode/agent-skillsGenerates engaging long-form blog posts from source materials or a topic brief. Supports listicles, editorial tutorials, how-to articles, narrative essays, and 404skills.sh installs
5davila7 avatartelegram-bot-builderdavila7/claude-code-templatesExpert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, us403skills.sh installs
6jwynia avatarsleep-storyjwynia/agent-skillsWrite stories designed to help listeners fall asleep. Use for bedtime podcasts, meditation content, calming narratives, or any content where the goal is gentle 403skills.sh installs