cmd-testing-tdd

Automate the test-driven development loop from red to green.

2|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/jlaws/dotfiles --skill cmd-testing-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cmd-testing-tdd
Source: https://github.com/jlaws/dotfiles/tree/main/.agents/skills/cmd-testing-tdd
Command: npx skills add https://github.com/jlaws/dotfiles --skill cmd-testing-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the disciplined test-driven development process, ensuring features are defined by tests before implementation and enabling rapid feedback through a green, linted codebase.

Core Features & Use Cases

  • Write tests first: establish expected behavior prior to coding to prevent regressions.
  • Red-Green-Refactor loop: run tests to observe red, implement minimal code to achieve green, and refactor for clarity.
  • Process discipline: lint and commit with test coverage to maintain quality and traceability.
  • Use Case: When adding a feature or fixing a bug, follow the loop to minimize risk and maximize confidence.

Quick Start

Describe the feature you want, write failing tests first, implement until green, then lint and commit.

Frequently Asked Questions about cmd-testing-tdd

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

FAQPage Schema
How do I automate the test-driven development loop for new features?

You can automate the test-driven development loop by writing failing tests first, running them to observe red, implementing minimal code to achieve green, and refactoring for clarity. This enforces process discipline by ensuring features are defined by tests before implementation to prevent regressions.

What is the red-green-refactor cycle in TDD?

The red-green-refactor cycle in TDD is a disciplined development process where you run tests to observe red, implement minimal code to achieve green, and refactor for clarity. This loop minimizes risk and maximizes confidence when adding features or fixing bugs.

How do I apply TDD to bug fixes in a CI pipeline?

Applying TDD to bug fixes in a CI pipeline involves writing a failing test that reproduces the bug, implementing minimal code to pass the test, linting the codebase, and committing with test coverage. This maintains quality and traceability throughout the development process.

Does this TDD workflow require an existing test suite and linting setup?

This TDD workflow is designed for codebases that rely on TDD, unit tests, and CI pipelines. It supports running tests, implementing minimal code, linting, and committing with test coverage to maintain a green, linted codebase with rapid feedback.

What's the best way to ensure test coverage before committing new code?

The best way to ensure test coverage before committing new code is to follow the test-first approach: write tests defining expected behavior, implement until green, lint, and commit. This maintains quality and traceability while enabling rapid feedback through a green codebase.

When should I use a test-first development approach?

You should use a test-first development approach when adding a feature or fixing a bug to minimize risk and maximize confidence. It establishes expected behavior prior to coding, prevents regressions, and enables rapid feedback through a green, linted codebase.