TDG Test-Driven Generation

Automate red-green-refactor loops for test and code generation.

1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/kingdonb/home-lab-terraform --skill tdg-test-driven-generation-kingdonb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TDG Test-Driven Generation
Source: https://github.com/kingdonb/home-lab-terraform/tree/main/.github/skills/tdg
Command: npx skills add https://github.com/kingdonb/home-lab-terraform --skill tdg-test-driven-generation-kingdonb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Test-Driven Generation enables teams to structure and automate the red-green-refactor loop, generating tests and code in a disciplined workflow to reduce bugs and accelerate development.

Core Features & Use Cases

  • Guided TDD workflow: leads you through red, green, and refactor phases with governance around commit messages and phase checks.
  • Issue-driven traceability: integrates an issue number reference and branch hints to link code changes to work items.
  • Phase enforcement: provides a helper script to detect the current TDD phase and ensure changes align with the right stage before committing.
  • Extensible scaffolding: supports optional scripts/references/assets to extend TDG capabilities and provide context for tests and implementation.

Quick Start

Initialize the TDG workflow in your project and follow the guided red, green, and refactor prompts to drive tests and code.

Frequently Asked Questions about TDG Test-Driven Generation

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

FAQPage Schema
How do I automate the test-driven development red-green-refactor loop in my workflow?

Automating the test-driven development red-green-refactor loop requires a structured workflow that guides you through each phase and enforces commit-message discipline before code generation. This approach reduces bugs and accelerates software development.

How does phase detection work for test-driven development workflows?

Phase detection for test-driven development workflows uses a helper script to identify the current TDD stage and ensure code changes align with the correct red, green, or refactor phase before committing. This enforces structured phase governance.

Can I link test-driven development code changes to issue tracking numbers?

Yes, you can link test-driven development code changes to issue tracking numbers by integrating issue number references and branch hints into the workflow. This provides issue-driven traceability for linking code changes to work items.

What is the best way to enforce commit-message discipline during TDD cycles?

The best way to enforce commit-message discipline during TDD cycles is using an automated structured workflow that provides governance around commit messages and performs phase checks before allowing changes to be committed.

Do I need any external dependencies to set up a guided red-green-refactor workflow?

No external dependencies are required to set up a guided red-green-refactor workflow. You only need to initialize the workflow in your project and follow the guided prompts to drive tests and implementation code.

How can I extend test-driven generation capabilities with custom scripts and references?

You can extend test-driven generation capabilities by adding optional scripts, references, and assets to your project. This extensible scaffolding provides additional context for tests and implementation to enhance the core workflow.