tdd-init

tdd-init is a skill for Claude Code from morodomi/tdd-skills. It costs 32 tokens per session (757 once invoked), scanned A, original, MIT.

The starting phase of a test-driven development (TDD) cycle, where a feature request, project state, risks, and scope are recorded in a cycle document.

In plain words
What is it for?
Start work on a feature, inspect project status and existing cycles, collect environment details, assess risk, create the cycle document, and pass work to planning.
Why use it?
It creates a shared starting point before detailed planning, tests, or implementation begin, and flags unfinished work or higher-risk changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the tdd-core plugin — 13 skills, 14 agents shipped together

Good fit Start work on a feature, inspect project status and existing cycles, collect environment details, assess risk, create the cycle document, and pass work to planning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morodomi/tdd-skills/tdd-init
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 morodomi/tdd-skills --skill tdd-init
Clone the repo
git clone --depth 1 https://github.com/morodomi/tdd-skills

Made for: Claude Code.

Or install tdd-core, the plugin that ships this one along with the rest of its 13 skills, 14 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/morodomi/tdd-skills/tdd-init"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/tdd-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 757 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.00032 $0.00757
Opus 5 $0.00016 $0.00378
Sonnet 5 $0.00006 $0.00151
Haiku 4.5 $0.00003 $0.00076

Measured 9d ago against content hash dce7a9ae5cfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tdd-init 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 9d 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.

plugins/tdd-core/skills/tdd-init/SKILL.md · 101 lines

How it starts

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

TDD INIT Phase

Start a new TDD cycle and create a Cycle doc.

Progress Checklist

INIT Progress:
- [ ] STATUS確認 → 環境収集 → 既存cycle確認
- [ ] 実装内容確認 → リスク評価 → スコープ確認
- [ ] Cycle doc作成 → tdd-plan自動実行

Restrictions

  • No detailed implementation planning (done in PLAN)
  • No test code (done in RED)
  • No implementation code (done in GREEN)

Workflow

Step 1: Check Project Status

cat docs/STATUS.md 2>/dev/null

If not found, recommend tdd-onboard. Also check hooks: reference.md

Step 2: Collect Environment Info

Collect language versions and key packages for Cycle doc Environment section. Details: reference.md

Step 3: Check Existing Cycles

ls -t docs/cycles/*.md 2>/dev/null | head -1

If an active cycle exists, recommend continuing it.

Step 4: Ask What to Implement

Ask "What feature do you want to implement?" e.g., login, CSV export.

Step 4.5: Risk Score Assessment

Calculate risk score (0-100) from user input:

Score Result Action
0-29 PASS Show confirmation, auto-proceed
30-59 WARN Quick questions (Step 4.6), then Step 5
60-100 BLOCK Brainstorm & risk questions (Step 4.7)

Keyword scores: reference.md Record Risk: [score] ([result]) in Cycle doc.

Step 4.6: Quick Questions (WARN only)

Ask 2 lightweight questions. Templates: reference.md

Step 4.7: Brainstorm & Risk Questions (BLOCK only)

Templates: reference.md. Bug keywords detected → Skill(tdd-core:tdd-diagnose).

Step 5: Scope (Layer) Confirmation

Use AskUserQuestion to confirm scope:

Layer Description Plugin
Backend PHP/Python etc. tdd-php, tdd-python, tdd-flask
Frontend JavaScript/TypeScript tdd-js, tdd-ts
Both Full stack Multiple plugins

Details: reference.md

Read the full file on GitHub · 101 lines

Files

What ships with it

3 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. 9d ago First seen · 101 lines · 32 tokens per session scan A dce7a9ae5cfa

Subscribe to this mod's changes

tdd-init is a skill published in the GitHub repository morodomi/tdd-skills (8 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 757 once invoked, about $0.0002 per session on Opus 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.