tdd-rgb

tdd-rgb is a skill for Claude Code from msbaek/msbaek-claude-plugins. It costs 156 tokens per session (7,816 once invoked), scanned A, original, MIT.

A TDD cycle runner for test-driven development, a way of writing tests before or alongside code. It delegates the Red, Green, and Blue stages to agents in sequence.

In plain words
What is it for?
Use it to run a Red/Green/Blue TDD cycle with separate agent handoffs.
Why use it?
It helps organise the main TDD stages in a fixed order.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the msbaek-tdd plugin — 28 skills, 10 agents, 2 hooks shipped together

Good fit Use it to run a Red/Green/Blue TDD cycle with separate agent handoffs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msbaek/msbaek-claude-plugins/tdd-rgb
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add msbaek/msbaek-claude-plugins --skill tdd-rgb
Clone the repo
git clone --depth 1 https://github.com/msbaek/msbaek-claude-plugins

Made for: Claude Code.

Or install msbaek-tdd, the plugin that ships this one along with the rest of its 28 skills, 10 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd-rgb

README.md
[![agentmods](https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-rgb/github.svg)](https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-rgb)
Your own site
<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-rgb"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-rgb/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdd-rgb

Your own site · 80×15
<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-rgb"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-rgb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00156 $0.07816
Opus 5.5 $0.00062 $0.03126
Sonnet 5.5 $0.00031 $0.01563
Haiku 4.5 $0.00016 $0.00782

Measured 2mo ago against content hash 2146716fdaec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd-rgb scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

msbaek-tdd/skills/tdd-rgb/SKILL.md · 413 lines

How it starts

The opening of the file, as written. The whole thing — 413 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TDD RGB 사이클 Skill

Red → Green → Blue 사이클을 조율하여 테스트 목록의 각 항목을 순차적으로 구현합니다.

GOAL

  • 성공 = 테스트 목록의 모든 항목이 - [x]로 완료되고, 모든 테스트가 통과하며, 작업 내역이 마크다운에 반영됨
  • 모든 테스트 케이스가 - [x]로 완료됨
  • 모든 테스트가 통과함
  • 작업 내역이 마크다운 파일에 반영됨
  • (Web App의 경우) 모든 .feature 시나리오의 @pending 해제·green, JPA Repository 완성, DSL 개선까지 완료
  • 검토 지점의 밀도는 기어(low/mid/high)가 정한다 — 아래 "기어(Gears)" 섹션 참조

CONSTRAINTS

Hard Rules

Three Laws of TDD
  1. "Write NO production code except to pass a failing test."
  2. "Write only ENOUGH of a test to demonstrate a failure."
  3. "Write only ENOUGH production code to pass the test."
TDD 핵심 규칙
  • don't write code without a failing test.
  • only write the code necessary to get the test to pass (little golf game).
  • never delete tests without express permission.
  • 테스트를 추가할 때는 반드시 한번에 하나씩 추가. 실패하는 테스트가 있을 때는 절대 새로운 테스트를 추가할 수 없음.
마이크로 사이클

각 단계는 2-3분 이내 작업으로 빠른 피드백을 받습니다.

  • 복잡한 목표를 작은, 집중된, 검증 가능한 단계로 분해하여 순차적으로 실행
  • low·mid 기어: 각 R/G/B 에이전트가 작업 완료 후 자체적으로 커밋을 수행 (커밋 → 피드백 → 다음 단계)
  • high 기어: 에이전트는 커밋을 보류하고(stage까지만), 오케스트레이터가 use case 전체를 Red 전체→Green 전체→Blue 전체 3단계로 진행하며 각 단계 종료 시 한 번씩 커밋한다 (아래 "진행 표기 규칙"의 기어별 커밋 단위)
피드백 규칙
  • 기어가 정의하는 검토 지점에서 반드시 사용자 피드백을 요청하고 대기 ("기어(Gears)" 섹션의 검토 지점 표 참조)
  • 검토 지점에서는 사용자가 명시적으로 다음 단계로 진행을 결정해야만 진행
  • 검토 지점이 아닌 phase 경계(mid/high 기어)에서는 대기 없이 다음 phase로 진행한다. 커밋은 기어별 커밋 단위를 따른다 — low는 phase마다, mid는 사이클마다, high는 use case 내 3-phase(전체 Red·전체 Green·전체 Blue)마다
  • 피드백 요청 형식: "이 [구현/테스트/설계]에 대한 피드백을 주시겠어요? 특히 [집중해야 할 부분]에 대해서요."

기어(Gears) — 검토 밀도 조절

Kent Beck의 "driving in gears": 이론에 대한 확신(confidence)이 검토 지점의 밀도를 정한다. 기어는 검토 지점의 밀도를 바꾸고, 그에 맞춰 커밋 단위도 바뀐다 — TDD 3법칙, 한 번에 테스트 하나, 테스트 삭제 금지는 모든 기어에서 동일하지만, 커밋 단위는 low=phase(테스트마다 R/G/B 각각), mid=사이클(테스트마다 RGB 하나), high=use case 내 3-phase(use case 전체의 Red 한 번·Green 한 번·Blue 한 번)다.

revert 단위는 커밋 단위와 같다: low·mid는 테스트 단위로 되돌리고, high는 use case 내 phase 단위(전체 구현 또는 tidying만)로 되돌린다. high에서는 테스트 하나만 골라 되돌릴 수 없다.

기어별 검토 지점
기어 검토 지점(사용자 피드백 대기) 이해 채널(사용자가 코드를 이해하는 방법) 대응 상황
low (기본) Red 후 · Green 후 · Blue 후 편집 하나하나 직접 읽기, 리팩터링도 직접 지시 (이해 체화) 이론에 확신 없음, 낯선 도메인·기술, 학습 목적
mid 테스트 1개의 R→G→B 사이클 완료 후 1회 사이클 경계의 diff 검토 + tidying 방향 지목·승인 (실행은 위임하되 판단은 유지) 유사 문제 경험 있음, 작동하는 이론을 빠르게 확보할 것으로 기대
high 전체 테스트 목록 완료 + 적대적 리뷰 통과 후 최종 1회 행동 명세(테스트 목록·Gherkin)로 이해 + 최종 검토에서 대표 슬라이스 하나를 골라 표본 정독 이론이 상용구(boilerplate) 수준으로 명확

Read the full file on GitHub · 413 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +12 lines 2146716fdaec
  2. 2mo ago Changed · -7 lines · +125 tokens per session acd92cc59881
  3. 2mo ago Changed · -10 lines f4ccfde14240
  4. 3mo ago Changed · +12 lines 8871b190a904
  5. 3mo ago First seen · 406 lines · 31 tokens per session scan A 775344dddacf

Subscribe to this mod's changes

tdd-rgb is a skill published in the GitHub repository msbaek/msbaek-claude-plugins (8 stars, last pushed 1mo ago), licensed MIT. It adds 156 tokens to every session and 7,816 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

tdd-rgb compared with skills from other repositories

tdd-rgb next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-rgbmsbaek/msbaek-claude-pluginsSkill81mo agoMITA156Claude Code
engram-testing-coverageGentleman-Programming/engramSkill8.4k10d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7128d agoMITA24Claude Code
tddglebis/claude-skillsSkill419todayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill4964d agoMITA38Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63815d agoMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63815d agoMITA37Claude Code