tdd-profile

tdd-profile is a skill for Claude Code from msbaek/msbaek-claude-plugins. It costs 116 tokens per session (1,022 once invoked), scanned A, original, MIT.

A post-session report for test-driven development (TDD), a way of writing tests before or alongside code. It reads a session transcript and counts time and token use by skill and agent, without changing code.

In plain words
What is it for?
Use it to analyse bottlenecks, review token use, and get suggestions for adjusting models or effort levels.
Why use it?
It helps show where a TDD session became slow or expensive and where work was concentrated.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it to analyse bottlenecks, review token use, and get suggestions for adjusting models or effort levels.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add msbaek/msbaek-claude-plugins
Claude Code
/plugin install msbaek-tdd

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-profile

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/msbaek/msbaek-claude-plugins/tdd-profile"><img src="https://agentmods.dev/badge/skills/msbaek/msbaek-claude-plugins/tdd-profile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,022 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.00116 $0.01022
Opus 5.5 $0.00046 $0.00409
Sonnet 5.5 $0.00023 $0.00204
Haiku 4.5 $0.00012 $0.00102

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

Security

Grade A, and why

tdd-profile 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-profile/SKILL.md · 74 lines

What it actually says

TDD Profile Skill

bin/tdd-profile.py를 실행하고 그 출력을 해석해서 병목 3개 이내와 model/effort 조정안을 보고한다. 숫자는 스크립트가 산출하고, 판단은 이 스킬이 한다.

GOAL

  • 성공 = 사용자가 "다음 세션에서 무엇을 바꿀지" 3개 이내로 안다
  • 입력: 세션 JSONL 경로, transcript 디렉터리, 또는 인자 없음(현재 cwd)
  • 출력: 아래 OUTPUT FORMAT의 보고 1개 (터미널 30줄 이내)

CONSTRAINTS

  • 스크립트 출력에 없는 수치를 지어내지 않는다. 해석은 출력의 숫자를 인용해서 한다
  • in(total)은 "턴 수 × 컨텍스트 크기"의 합이다. 이 값이 크다고 "많이 읽었다"고 말하지 않는다 — 새로 읽은 양은 cache+, 긴 이유는 turns
  • 메인 wall-clock은 에이전트 실행 대기를 포함하지 않는다(에이전트 행이 따로 있다). 둘을 더해서 단계 시간으로 말한다
  • 모델 제안은 스크립트의 휴리스틱(out/turn, tools/turn, edits)을 근거로 하되, 코드 편집 에이전트(tdd-red/green/blue)를 haiku로 변경하자고 하지 않는다 — 편집 품질 하락 위험이 절감분보다 크다
  • hunk-reviewer가 에이전트 목록에 보이면 hook 차단 이전 세션인지 확인하고 보고한다 (hooks/block-hunk-reviewer.sh, v1.17.0 이후는 차단됨)

절차

  1. 실행 — 인자를 그대로 넘긴다:
    python3 "${CLAUDE_PLUGIN_ROOT}/bin/tdd-profile.py" [인자]
    
    transcript 디렉터리가 없다는 오류면 사용자에게 세션 JSONL 경로를 요청한다 (~/.claude/projects/<cwd를 '-'로 치환한 slug>/)
  2. 출력의 네 절을 읽는다: 단계 표 → Agents → Heaviest turns → Recommendation
  3. 병목 판정 순서:
    1. 에이전트 합산 시간 1위 타입 (Agents by type) — 호출 빈도를 줄일 수 있는가
    2. 단계별 wall + 에이전트 wall 합 1위 — 그 단계의 turns가 큰가(왕복 과다), cache+가 큰가(반복 읽기·캐시 만료)
    3. Heaviest turns의 cache+ 300k 이상이 같은 단계에 집중되어 있는가 → 1h 캐시 TTL 만료 또는 컨텍스트 압축 후 재적재 신호
  4. model/effort: Recommendation 절의 단계별 제안과 "실제 사용" 절을 대조해 다른 곳만 말한다 (이미 일치하면 "유지")

OUTPUT FORMAT

## TDD 세션 프로파일 — <session-id 앞 8자리>
메인 <wall> / <turns>턴 / 에이전트 <n>개 <agent wall>

병목
1. <단계 또는 에이전트> — <숫자 인용> → <조치 한 줄>
2. ...
3. ...

model / effort
| 단계 | 실제 | 제안 | 근거 |
(다른 곳만, 최대 5행)

다음 세션에서 바꿀 것 (1~3개)

FAILURE CONDITIONS

  • 스크립트를 실행하지 않고 추정으로 보고
  • 병목이 4개 이상이거나 조치 없는 병목
  • in(total)을 "읽은 양"으로 해석
  • 코드 편집 에이전트에 haiku 제안
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 7af92d410146
  2. 3mo ago First seen · 74 lines · 116 tokens per session scan A 5112d5026dc1

Subscribe to this mod's changes

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

tdd-profile next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-profilemsbaek/msbaek-claude-pluginsSkill81mo agoMITA116Claude 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