tdd-fieldguide

Guide Test-Driven Development cycles using Red-Green-Refactor for TypeScript/Bun and Rust.

6|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/outfitter-dev/outfitter --skill tdd-fieldguide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-fieldguide
Source: https://github.com/outfitter-dev/outfitter/tree/main/plugins/fieldguides/skills/tdd-fieldguide
Command: npx skills add https://github.com/outfitter-dev/outfitter --skill tdd-fieldguide

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill guides users through disciplined Test-Driven Development (TDD) cycles, ensuring robust, well-tested code by writing tests first.

Core Features & Use Cases

  • Guided TDD Workflow: Enforces the Red-Green-Refactor cycle for new features and bug fixes.
  • Language Agnostic: Provides examples and guidelines for both TypeScript/Bun and Rust.
  • Quality Standards: Defines clear metrics for code coverage, mutation testing, and test performance.
  • Use Case: When starting a new feature, follow the Skill's stages to write failing tests, implement the minimum code to pass, and then refactor systematically, ensuring high quality and maintainability.

Quick Start

Follow the Red-Green-Refactor cycle to implement a new feature, writing tests before writing any implementation code.

Frequently Asked Questions about tdd-fieldguide

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

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

To start test-driven development, follow the Red-Green-Refactor cycle: write a failing test first, implement the minimum code to make it pass, then refactor systematically to ensure high code quality and maintainability.

What is the Red-Green-Refactor cycle in TDD?

The Red-Green-Refactor cycle is a TDD methodology where you write a failing test, implement the minimum code to pass the test, and then systematically refactor the implementation to improve code quality without changing behavior.

Does this TDD workflow support both TypeScript and Rust?

Yes, this TDD workflow supports both TypeScript/Bun and Rust development environments, providing language-agnostic guidelines and examples to enforce disciplined testing practices across different tech stacks.

How do I fix bugs using a test-first approach?

To fix bugs using a test-first approach, write a failing test that reproduces the specific bug, implement the fix to make the test pass, and then refactor the code to ensure structured workflow management and prevent regressions.

What code quality metrics should I track during refactoring?

During refactoring, you should track code quality metrics such as code coverage, mutation testing, and test performance to ensure your test suite remains robust and your implementation maintains high quality standards.

When should I avoid writing tests before implementation code?

You should avoid writing tests before implementation code only if you are doing rapid prototyping without clear requirements; otherwise, disciplined test-first workflows are enforced for both new features and bug fixes to guarantee maintainability.