tdd

Guide test-driven development with red-green-refactor cycles and vertical slicing.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/hjung3113/vocpage --skill tdd-hjung3113
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/hjung3113/vocpage/tree/main/.agents/skills/tdd
Command: npx skills add https://github.com/hjung3113/vocpage --skill tdd-hjung3113

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill guides developers in adopting test-driven development to improve code quality and maintainability.

Core Features & Use Cases

  • Development Workflow Guidance: Provides best practices for writing tests before implementation.
  • Technique Explanation: Explains core principles like red-green-refactor cycles and vertical slicing.
  • Use Case: Helps a developer implement a new feature by starting with a test, then coding minimally to pass, and refactoring for robustness.

Quick Start

Describe how to begin practicing TDD by writing your first test for a new feature.

Frequently Asked Questions about tdd

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

FAQPage Schema
What is test-driven development and how does it improve code quality?

Test-driven development is a methodology where you write tests before implementation to improve software quality and maintainability. It enforces developer discipline through structured testing cycles, ensuring robust code delivery.

How do I start implementing a new feature using test-driven development?

To implement a new feature using test-driven development, begin by writing a failing test for the desired functionality. Then, write the minimal code required to pass the test, and finally refactor the implementation for robustness.

What is the red-green-refactor cycle in test-driven development?

The red-green-refactor cycle is a core test-driven development technique where you first write a failing test (red), implement minimal code to make it pass (green), and then clean up the codebase (refactor) without changing behavior.

Does test-driven development require testing private implementation details?

Test-driven development focuses only on testing public interfaces rather than private implementation details. This approach supports incremental software delivery and allows internal refactoring without breaking existing tests.

When should I use vertical slicing in test-driven development?

Vertical slicing is used in test-driven development to deliver incremental software features end-to-end. It allows developers to build and test thin, functional slices of an application, ensuring each layer works correctly before expanding.

Can test-driven development help with code refactoring?

Test-driven development significantly aids refactoring by providing a safety net of automated tests. After achieving a passing test, developers can confidently restructure code to improve design and maintainability without introducing regressions.