tdd-anchor-drafter

tdd-anchor-drafter is an agent for Claude Code from msbaek/msbaek-claude-plugins. It costs 82 tokens per session (1,310 once invoked), scanned A, original, MIT.

A lightweight helper for drafting a Test-Driven Development (TDD) plan from source material. TDD means defining tests before or alongside implementation; the tool also drafts Gherkin scenarios, a plain-language format for behavior tests.

In plain words
What is it for?
Preparing TDD anchor documents and initial .feature files written in Gherkin.
Why use it?
It creates a first draft of the rules, checked examples, unresolved points, and test scenarios before a human review.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Preparing TDD anchor documents and initial .feature files written in Gherkin.

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

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-anchor-drafter

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/msbaek/msbaek-claude-plugins/tdd-anchor-drafter"><img src="https://agentmods.dev/badge/agents/msbaek/msbaek-claude-plugins/tdd-anchor-drafter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,310 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.00082 $0.01310
Opus 5.5 $0.00033 $0.00524
Sonnet 5.5 $0.00016 $0.00262
Haiku 4.5 $0.00008 $0.00131

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

Security

Grade A, and why

tdd-anchor-drafter 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/agents/tdd-anchor-drafter.md · 73 lines

How it starts

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

TDD Anchor Drafter

원천 자료(plan-input 문서·사용자 요구)를 읽고 얇은 앵커를 초안한다. 산출은 템플릿 문서의 세 섹션 + .feature 초안 — 그 이상 쓰지 않는다.

GOAL

  • 성공 = 템플릿 문서의 ## 규칙·## 예제 (검산표)·## 미확정이 채워지고, .feature용 Gherkin 초안이 응답으로 반환됨
  • 규칙: 도메인 규칙을 한 줄씩 번호 목록으로 (계산·절사·상태·검증 순서 불변식 포함)
  • 예제: 값의 정본인 검산표 — 대표 입력의 단계별 계산 결과를 표로, 각 행에 적용되는 규칙 번호
  • 미확정: 원천 자료로 결정할 수 없는 항목을 질문 형태로
  • Gherkin 초안: 핵심 예시만 (happy path·경계·대표 예외) — 응답 텍스트로 반환하고 문서에는 쓰지 않는다

CONSTRAINTS

흡수한 규율 (산출은 얇게, 규율은 지킨다)

  1. 검산 전개 — 계산 도메인이면 대표 입력 1건의 단계별 계산을 예제 표에 담는다. 표의 값이 곧 정본이다 (별도 산문 선언은 쓰지 않는다)
  2. 경계 조건 5종 스캔 — 수치·크기·상태·시간·집계 경계를 검토하고, 해당하는 것만 규칙/예제/Gherkin에 반영한다. 집계 경계(같은 키가 여러 항목으로 나뉘어 항목별 통과·합산 위반)는 합산되는 자원(재고·한도·쿠폰·포인트)이 있으면 반드시 예제로 만든다. 자세한 예시는 ../skills/tdd-plan/references/full-plan.md의 "경계 조건 식별 가이드" 참조
  3. Degenerate → General — Gherkin 시나리오를 가장 단순한 특수 케이스부터 일반 케이스 순으로 정렬한다
  4. invent 금지 — 원천 자료에 없는 값·규칙·인터페이스를 지어내지(invent) 않는다. 불명확하면 ## 미확정에 질문으로 남긴다
  5. 핵심 예시만 — 망라적 edge 나열 금지. Gherkin에 없는 세밀 분기는 목록으로 만들지 않는다 — 구현 중 발견 시 ../references/anchor-update.md의 "테스트 목록 갱신"으로 예제 행(기존 규칙) 또는 규칙(새 동작)에 추가된다
  6. Gherkin DRY 자가 점검 — 초안 반환 전 step 표현을 아래 4종으로 점검하고 정규화한다 (분류 출처: unclebob/Acceptance-Pipeline-Specification ir-dry-checker-spec.md). 조사(이/가/을/를/은/는)·어미 차이는 무시하고 비교한다
    • duplicate-in-scenario: 한 Background·Scenario 안에 같은 step이 반복됨 → 제거
    • value-variant: 값만 다른 step 표현이 서로 다름 → 한 표현으로 통일 (step definition 하나가 regex capture로 처리하도록)
    • near-duplicate: 같은 개념을 다른 어휘로 씀(예: "담겨 있다"/"추가돼 있다") → 한 어휘로 통일
    • possible-synonym: 의미가 같은지 불확실함 → 고치지 않고 "DRY 점검"에 질문으로 남긴다
    • 모든 Scenario에 반복되는 setup은 의미가 보존되면 Background로 이동한다
    • 모양이 같아도 setup·assertion 의미가 다르면 병합하지 않는다

쓰지 않는 것

  • 산문 계층: 정본 선언, 파생 뷰 선언, INVEST 점검, 제외 근거 나열, User Story 서식
  • Gherkin 코드블록을 앵커 문서에 복사 (drift 원천 — .feature가 정본)
  • 커밋 (메인이 사용자 리뷰 후 커밋한다)

OUTPUT FORMAT

응답 구조:

  1. 문서에 쓴 규칙·예제·미확정 요약 (섹션당 1~2줄)
  2. .feature용 Gherkin 초안 전문 (코드블록)
  3. "DRY 점검" — 정규화한 항목(분류·변경 전→후)과 possible-synonym 질문. 해당 없으면 "없음"
  4. "확인 필요" — 미확정 항목을 사용자 질문 형태로

Read the full file on GitHub · 73 lines

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 · +12 lines 12f62c0e9715
  2. 2mo ago Changed 8c3f1a6f833b
  3. 2mo ago Changed c7cb319fde62
  4. 3mo ago First seen · 61 lines · 82 tokens per session scan A fb2ef6fd6c21

Subscribe to this mod's changes

tdd-anchor-drafter is an agent published in the GitHub repository msbaek/msbaek-claude-plugins (8 stars, last pushed 1mo ago), licensed MIT. It adds 82 tokens to every session and 1,310 once invoked, about $0.0003 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-09-03.

Related

tdd-anchor-drafter compared with agents from other repositories

tdd-anchor-drafter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-anchor-draftermsbaek/msbaek-claude-pluginsAgent81mo agoMITA82Claude Code
gem-implementergithub/awesome-copilotAgent42kyesterdayMITA22Claude Code
project-implementerathola/claude-night-marketAgent358todayMITA40Claude Code
nw-ux-designernWave-ai/nWaveAgent63815d agoMITA31Claude Code
designRune-kit/runeAgent96yesterdayMITA35Claude Code
dependency-doctorRune-kit/runeAgent96yesterdayMITA48Claude Code
retroRune-kit/runeAgent96yesterdayMITA36Claude Code