generating-tdd-tests

Generate TDD test guidance and RGRC workflow artifacts for Jest or Vitest.

11|1|Updated Aug 6, 2025
One-click install
npx skills add https://github.com/thkt/claude-config --skill generating-tdd-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-tdd-tests
Source: https://github.com/thkt/claude-config/tree/main/ja/skills/generating-tdd-tests
Command: npx skills add https://github.com/thkt/claude-config --skill generating-tdd-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

TDDの体系的ガイドと実践的なテスト設計を単一の知識ベースから提供します。RGRCサイクルとBaby Stepsに基づく実践的なテスト生成を支援します。

Core Features & Use Cases

  • RGRCサイクルとBaby Stepsの実装パターンを網羅
  • 同値分割・境界値分析・デシジョンテーブルなどの設計技法の適用
  • SOW/要件からテストケースを構築するワークフローの提供

Quick Start

/code コマンドと併用して、仕様に対するテスト足場を自動生成します。

Frequently Asked Questions about generating-tdd-tests

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

FAQPage Schema
How do I generate TDD tests using the Red-Green-Refactor cycle?

Red-Green-Refactor (RGRC) is a core TDD workflow: write a failing test (red), implement minimal code to pass it (green), then refactor for clarity. This Skill generates structured RGRC guidance with baby steps cycles to break feature development into manageable test increments, helping you stay disciplined and ensure code quality.

What test design techniques does this Skill apply?

The Skill applies equivalence partitioning, boundary value analysis, and decision tables to map requirements into precise test cases. These techniques ensure comprehensive coverage by grouping similar inputs, testing edge cases, and validating all decision paths, reducing gaps in your test suite.

Can I use this Skill with Jest or Vitest?

Yes. The Skill detects your framework—Jest or Vitest—and generates test scaffolding tailored to that environment, including AAA (Arrange-Act-Assert) patterns and assertions in the correct syntax for your chosen runner.

How do I apply TDD test design to validation logic?

The Skill generates test cases for validation scenarios by decomposing requirements into equivalence classes and boundary conditions. It produces step-by-step test design guidance that maps input ranges to expected outcomes, ensuring user validation and business rules are thoroughly tested.

What does baby steps mean in TDD, and why use it?

Baby steps is a TDD discipline of writing minimal, incremental tests that drive tiny code changes. The Skill structures your cycles around small, focused increments to reduce complexity, catch errors early, and maintain steady progress without overwhelm.

Can I use this Skill to characterize legacy code with tests?

Yes. The Skill generates test scaffolding for legacy code scenarios, applying test design techniques to establish behavior baselines and coverage targets, helping you safely refactor and understand existing system behavior through test-driven characterization.