tdd

Guide test-driven development with integration-style tests for system behavior.

Updated Jun 6, 2026
One-click install
npx skills add https://github.com/guille-gallo/auth-kit --skill tdd-guille-gallo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/guille-gallo/auth-kit/tree/main/.agents/skills/tdd
Command: npx skills add https://github.com/guille-gallo/auth-kit --skill tdd-guille-gallo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers implement test-driven development (TDD) practices more effectively by providing structured guidelines and workflows for writing and maintaining tests.

Core Features & Use Cases

  • Test-Driven Development Philosophy: Offers guidance on the core principles of TDD, emphasizing the importance of tests verifying behavior through public interfaces.
  • Vertical Slicing: Encourages a step-by-step approach to TDD, focusing on one test and its corresponding implementation at a time.
  • Mocking Guidelines: Provides best practices for designing interfaces that are easy to mock and when to use mocks effectively.
  • Refactoring Strategies: Offers suggestions for refactoring code after a TDD cycle to improve maintainability and performance.

Quick Start

Apply the TDD skill to your project by following the structured approach outlined in the 'tdd' skill unit.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start implementing test-driven development in a new codebase?

Apply test-driven development by creating integration-style tests for system behavior, verifying functionality through public interfaces. Use a vertical slicing approach to focus on one test and its implementation at a time.

What are the best practices for mocking dependencies during software testing?

Best practices for mocking in software testing involve designing interfaces that are easy to mock and knowing exactly when to use mocks effectively. This ensures tests remain robust and maintainable.

Does test-driven development work for projects with complex logic and multiple dependencies?

Test-driven development works effectively for projects with complex logic and multiple dependencies by emphasizing integration-style tests for system behavior. It requires understanding core TDD principles to apply successfully.

When should I refactor code after a test-driven development cycle?

Refactor code after a test-driven development cycle to improve maintainability and performance once the test passes. This ensures the system behavior remains verified while you optimize the internal structure.

Why write integration-style tests instead of unit tests for system behavior?

Writing integration-style tests for system behavior verifies that multiple components interact correctly through public interfaces. This approach aligns with structured test-driven development workflows better than isolated unit tests.

What do I need to know before applying a TDD workflow to my project?

Before applying a TDD workflow, you need an understanding of core test-driven development principles and the ability to apply them. This ensures you can effectively implement structured testing practices.