tdd

Guide test-driven development with pytest, ruff, and mypy checks.

2|2|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/weaties/helmlog --skill tdd-weaties
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/weaties/helmlog/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/weaties/helmlog --skill tdd-weaties

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a disciplined approach to software development by ensuring that new code is always accompanied by automated tests, leading to more robust and maintainable software.

Core Features & Use Cases

  • Test-Driven Development (TDD): Guides users through the Red-Green-Refactor cycle.
  • Automated Testing: Integrates with pytest for running tests.
  • Linting and Type-Checking: Ensures code quality with ruff and mypy.
  • Use Case: When adding a new API endpoint, first write a test that defines the expected behavior and then implement the code to make that test pass.

Quick Start

Follow the test-driven development cycle to implement new functionality.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I start test-driven development for a new Python feature?

Test-driven development starts by writing a failing test that defines the expected behavior, then implementing the minimal code to pass that test, refactoring, and finally running linting and type-checking.

What is the Red-Green-Refactor cycle in software development?

The Red-Green-Refactor cycle is a test-driven development process where you write a failing test, implement minimal code to make it pass, and then refactor the code while keeping tests green.

How do I use pytest and ruff to enforce code quality during development?

You can enforce code quality by using pytest to validate test cases and ruff for linting, ensuring your implementation meets test requirements and adheres to formatting standards.

Does test-driven development work for fixing existing bugs?

Yes, test-driven development works for fixing bugs by first writing a test that reproduces the bug, ensuring it fails, then implementing the fix to make the test pass.

When should I use mypy for type-checking in a development workflow?

You should use mypy for type-checking during the refactoring phase of the development workflow to ensure code quality and maintainability before finalizing new features or bug fixes.