tdd-plan

tdd-plan is a skill for Claude Code from msbaek/msbaek-claude-plugins. It costs 168 tokens per session (3,205 once invoked), scanned A, original, MIT.

A planning aid for test-driven development (TDD), a way of writing tests before or alongside code. It turns domain rules and a user story into Gherkin scenarios and a unit-test list, adding a use case when flows or states are complex.

In plain words
What is it for?
Use it to document business rules, write acceptance scenarios, identify unit tests, and model complex workflows or state changes.
Why use it?
It helps turn a feature idea into clear behaviour and a practical test plan before implementation starts.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to document business rules, write acceptance scenarios, identify unit tests, and model complex workflows or state changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msbaek/msbaek-claude-plugins/tdd-plan
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-plan
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-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-plan/github.svg)](https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-plan)
Your own site
<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-plan"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-plan/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-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-plan"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,205 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.00168 $0.03205
Opus 5.5 $0.00067 $0.01282
Sonnet 5.5 $0.00034 $0.00641
Haiku 4.5 $0.00017 $0.00320

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

Security

Grade A, and why

tdd-plan 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 1mo 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-plan/SKILL.md · 168 lines

How it starts

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

TDD Planning Skill (Spec Anchored)

얇은 앵커를 만들고, 구현 기간 동안 갱신 대상으로 유지한다. 앵커 = 규칙(한 줄씩) + 예제 검산표(값의 정본) + 미확정. 시나리오의 실행되는 정본은 .feature다 (/cucumber-acceptance) — 앵커 문서에 Gherkin 사본을 두지 않는다.

구현 중 배움은 ../../references/anchor-update.md의 게이트로 앵커에 먼저 반영된다 — plan은 변경 가능함이 최우선 원칙이다.

GOAL

  • 성공 = 템플릿 문서의 앵커 섹션(규칙·예제·미확정)이 채워지고 사용자 리뷰 1회를 통과하며, (web-app) E-1 인수 셋업·E-2 Walking Skeleton으로 이어짐
  • 승인 왕복은 기본 1회 — 앵커 초안 리뷰. 미확정 항목 질문은 그 리뷰에 함께 담는다
  • CancelOrder급 도메인에서 앵커 문서 100줄 이하

기본 플로우 (경량)

  1. tdd-anchor-drafter 에이전트 1회 호출 — plan-input 문서(있으면)·템플릿 문서 경로를 전달. 규칙·예제 검산표·미확정을 문서에 채우고 Gherkin DRY 자가 점검을 거친 .feature용 Gherkin 초안을 반환받는다
  2. 사용자 리뷰 1회 — 앵커 내용 + Gherkin 초안 + DRY 점검 결과 + 미확정 질문을 한 번에 제시. 수정 요청이면 에이전트 재호출 또는 메인이 직접 반영
  3. 커밋 — git add [변경 파일] (git add -A 금지) → git commit -m "docs: 앵커 작성 - [기능명]" → 체크박스 갱신
  4. (web-app) E-1: 인수 테스트 셋업 — 리뷰에서 승인된 Gherkin 초안 전문을 /cucumber-acceptance 위임 prompt에 포함해 전달한다(앵커 문서에 사본을 두지 않으므로 대화에만 있는 전문을 그대로 넘긴다). .feature 생성 후 앵커 문서 ## 미확정 위나 문서 상단에 .feature 경로: <경로> 한 줄을 추가한다(사본이 아니라 포인터). 리뷰 승인과 E-1 사이에 세션이 끊기면 Gherkin이 대화에만 남으므로, 승인 직후 지체 없이 E-1을 실행한다
  5. (web-app) E-2: Walking Skeleton — tdd-skeleton-builder 위임 (아래 참조)
  6. 다음 단계 안내 — 기어에 맞는 /tdd-rgb 또는 /tdd-feature 호출 안내. 구현 중 배움 반영 규약은 ../../references/anchor-update.md가 정본

경량 모드에 없는 것

  • Unit test 목록 단계 — Gherkin이 포함하지 못하는 세밀 분기는 구현 중 발견 시 앵커 ## 규칙에 한 줄 추가로 대체 (배움 반영 게이트)
  • critic 검증 — 사용자 리뷰 1회가 그 역할
  • 단계별 승인 왕복 — 리뷰는 1회다

--full 플로우

high-stakes(인증·결제·데이터 삭제·외부 API·동시성 등 폭발 반경(blast radius) 큰 도메인)·대형· 다팀 작업에서 사용자가 명시적으로 선택한다. 절차는 references/full-plan.md가 정본 — tdd-domain-modeler → tdd-example-designer → tdd-test-list → tdd-plan-critic, 단계별 승인.

CONSTRAINTS

Act-Assert 동일 추상화 수준 규칙
  • 테스트에서 act와 assert는 같은 추상화 수준에서 이루어져야 함
  • 한 테스트 내에서 서로 다른 추상화 레벨 혼합 금지
  • api를 호출하여 행동을 수행하고, 같은 api 레벨에서 결과를 검증
  • 예: post로 생성하고 get으로 검증하는 방식 — 단, 그 post가 실제 인수 조건일 때만이다. 시나리오가 요구하지 않는 쓰기 API를 검증 편의를 위해 만들지 않는다(단계 E-2의 "인수 조건에 없는 API를 지어내지(invent) 않는다" 참조). 이때는 given을 Repository 시드로 두고 읽기 경로만 같은 레벨에서 검증한다

Read the full file on GitHub · 168 lines

Files

What ships with it

5 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. 1mo ago Changed b361ede73807
  2. 2mo ago Changed · +96 tokens per session bd4d4ee1b654
  3. 2mo ago Changed · -2 lines b89f1b27495d
  4. 3mo ago Changed · -322 lines · +13 tokens per session 28e0292454e2
  5. 3mo ago First seen · 492 lines · 59 tokens per session scan A a5b70e781a46

Subscribe to this mod's changes

tdd-plan is a skill published in the GitHub repository msbaek/msbaek-claude-plugins (8 stars, last pushed 1mo ago), licensed MIT. It adds 168 tokens to every session and 3,205 once invoked, about $0.0007 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-plan compared with skills from other repositories

tdd-plan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-planmsbaek/msbaek-claude-pluginsSkill81mo agoMITA168Claude 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