tdd-red-green-refactor

Guide Red-Green-Refactor cycles for F# domain and C# application layers.

1|Updated Jun 27, 2025
One-click install
npx skills add https://github.com/d-kishi/ubiquitous-lang-mng --skill tdd-red-green-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-red-green-refactor
Source: https://github.com/d-kishi/ubiquitous-lang-mng/tree/main/.claude/skills/tdd-red-green-refactor
Command: npx skills add https://github.com/d-kishi/ubiquitous-lang-mng --skill tdd-red-green-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDDのRed-Green-Refactorサイクルを実践するためのパターンとチェックリストを提供します。

Core Features & Use Cases

  • Red/Green/Refactorの各フェーズガイド
  • unit-test Agent活用の実践パターン
  • カバレッジ管理とセットアップ

Quick Start

新機能実装時にこのSkillを使い、REDを作成してテストを回します。

Frequently Asked Questions about tdd-red-green-refactor

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

FAQPage Schema
How do I implement the Red-Green-Refactor cycle in my F# and C# projects?

The Red-Green-Refactor cycle structures TDD into three phases: write a failing test (Red), write minimal code to pass it (Green), then improve code quality (Refactor). This Skill provides patterns, checklists, and decision criteria to enforce each phase consistently across F# domain and C# application layers, including unit-test orchestration and coverage targets of 80% overall and 100% for Domain code.

What's the best way to manage test coverage while practicing TDD?

Test coverage management in TDD requires setting realistic targets and monitoring them systematically. This Skill guides coverage setup, establishes targets (80% overall, 100% Domain), and integrates with the unit-test agent to validate architectural conformance and naming conventions, ensuring coverage becomes part of your development workflow rather than an afterthought.

Can I use this Skill during bug fixes and refactoring, not just new features?

Yes. The Red-Green-Refactor patterns apply across new feature implementation, bug fixes, and refactoring. This Skill provides use-case-specific checklists and decision criteria for each scenario, helping you maintain consistent TDD practices regardless of whether you're adding functionality or improving existing code.

How do I set up unit testing with dependency injection guidance?

This Skill includes practical patterns for unit-test agent orchestration and dependency injection guidance tailored to F# and C# stacks. It provides setup instructions and best-practice checklists that help you configure testable code structures aligned with architectural conformance requirements and naming conventions.

What naming conventions and architectural standards should I follow in TDD?

TDD effectiveness depends on consistent naming conventions and architectural alignment. This Skill provides checklists for test naming, integrates with ADR_009 and related guiding skills, and includes decision criteria for architectural conformance, ensuring your tests and code organization reinforce each other.