本文へ移動
cccskills
無料GitHub で公開

testing-tdd

Guides agents through Red-Green-Refactor with runner-captured evidence. Use when running /cc-tdd-cycle, writing tests before implementation, or Global TDD required is yes.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Test-Driven Development

Overview

Red (failing test) → Green (minimal code) → Refactor. Evidence comes from npx cc-codeconductor tdd capture, not handmade JSON.

When to Use

  • /cc-tdd-cycle, new behavior, bug fixes, TDD-required OpenSpec items

NOT for docs-only changes or when the Task Card forbids tests.

Process

  1. Write the failing test that encodes one acceptance criterion. Run the suite. It MUST fail (suiteFails === true).
  2. Implement the minimum that turns it green. Do not expand scope.
  3. Refactor only with a green suite.
  4. Capture evidence via the verification runner (openspec done on test/implement when TDD is required).
  5. Cover happy path, edge, and error for each behavior.

Pyramid default: many unit, fewer integration, rare E2E.

Common Rationalizations

RationalizationReality
I'll add tests laterLater means never. Red first.
This is too small to testIf it can break, it needs a failing test first.
I'll write the evidence JSONHandmade TDD JSON is rejected.

Red Flags

  • Tests that assert implementation details instead of behavior
  • Green without a recorded red
  • Skipping error cases

Verification

  • Suite failed before implement
  • Suite passed after implement
  • Runner evidence exists (not handmade)
  • Optional: npx cc-codeconductor scorecard suite-run --suite workflow-gates

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when adding monitoring, metrics, logging, or tracing to Spring AI or LLM integration code. Covers token tracking, latency measurement, cost estimation, and prompt/response logging. Use when user mentions AI monitoring, token costs, or LLM observability.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

android

無料

Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

Design, implement, review, and audit Android Jetpack Compose UI/UX for phone interfaces. Use when a request concerns concrete Compose layout, components, interaction, accessibility, or visual behavior. Do not activate for framework or dependency presence alone; non-UI Android work is excluded.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

Provides expert knowledge for designing, implementing, and managing REST API versioning strategies with deprecation workflows.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

astro

無料

Provides expert knowledge for building Astro 5+ sites with Islands Architecture, Content Collections, TypeScript, and performance-first rendering strategies.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

Audits token storage mechanisms to prevent XSS-based JWT theft.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

lgzarturo のスキルをすべて見る

このスキルの問題を報告する