tdd-onboard

tdd-onboard is a skill for Claude Code from morodomi/tdd-skills. It costs 62 tokens per session (821 once invoked), scanned B, original, MIT.

A setup guide for adding test-driven development (TDD) practices to an existing project. TDD means writing tests before the code they check, then using those tests to guide implementation.

In plain words
What is it for?
Use it to initialize TDD documentation, project guidance, test-cycle records, and optional development rules for projects such as Laravel, Flask, WordPress, or Python and JavaScript projects.
Why use it?
It removes the guesswork from starting TDD by detecting the project’s framework and test tools, then creating project instructions and tracking documents.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

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

Good fit Use it to initialize TDD documentation, project guidance, test-cycle records, and optional development rules for projects such as Laravel, Flask, WordPress, or Python and JavaScript projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morodomi/tdd-skills/tdd-onboard
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-onboard
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-onboard

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/morodomi/tdd-skills/tdd-onboard"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/tdd-onboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 821 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00062 $0.00821
Opus 5 $0.00031 $0.00411
Sonnet 5 $0.00012 $0.00164
Haiku 4.5 $0.00006 $0.00082

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

Security

Grade B, and why

tdd-onboard scanned grade B with 1 finding 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 11d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Hook設定の案内: `.claude/hooks/recommended.md` に推奨Hook設定が記載されている旨をユーザーに伝え、`~/.claude/settings.json` にコピーしてClaude Codeを再起動するよう案内する。
plugins/tdd-core/skills/tdd-onboard/SKILL.md · 90 lines

What it actually says

TDD Onboard

既存プロジェクトにTDD環境をセットアップする。

Progress Checklist

コピーして進捗を追跡:

Onboard Progress:
- [ ] プロジェクト分析(フレームワーク/テストツール検出)
- [ ] 検出結果をユーザーに確認
- [ ] docs/ 構造作成(cycles/, README.md, STATUS.md)
- [ ] CLAUDE.md 生成(既存あればマージ)
- [ ] 階層CLAUDE.md推奨(任意)
- [ ] .claude/ 構造生成(rules/, hooks/)
- [ ] Pre-commit Hook確認(推奨)
- [ ] 初期Cycle doc作成
- [ ] Next Steps 表示

Workflow

Step 1: プロジェクト分析

フレームワークとツールを検出:

ls artisan 2>/dev/null          # Laravel
ls app.py wsgi.py 2>/dev/null   # Flask
ls wp-config.php 2>/dev/null    # WordPress
ls composer.json package.json pyproject.toml 2>/dev/null

Step 2: 検出結果確認

AskUserQuestion で確認:

  • フレームワーク
  • パッケージマネージャ
  • 既存CLAUDE.mdの処理方法

Step 3: docs/ 構造作成

mkdir -p docs/cycles

作成ファイル:

  • docs/README.md - ドキュメント索引
  • docs/STATUS.md - プロジェクト状況(tdd-commitで自動更新)

テンプレートは reference.md を参照。

Step 4: CLAUDE.md 生成

  • 既存あり → マージ or 上書き確認
  • 既存なし → テンプレートから生成

テンプレートとマージ戦略は reference.md を参照。

Step 5: 階層CLAUDE.md推奨(任意)

tests/, src/, docs/ に CLAUDE.md 配置を推奨(各30-50行)。 詳細は reference.md を参照。

Step 6: .claude/ 構造生成

存在しない場合に作成。rules/: git-safety, security, git-conventions。hooks/: recommended。推奨設定: Skill(tdd-core:*) をallowedToolsに追加。詳細は reference.md

Hook設定の案内: .claude/hooks/recommended.md に推奨Hook設定が記載されている旨をユーザーに伝え、~/.claude/settings.json にコピーしてClaude Codeを再起動するよう案内する。

Step 7: Pre-commit Hook確認(推奨)

hookなし → セットアップ推奨。詳細は reference.md を参照。

Step 8: 初期Cycle doc作成

docs/cycles/YYYYMMDD_0000_project-setup.md を作成。

Step 9: 完了

セットアップ完了メッセージを表示。次: tdd-init で開発開始。

Reference: reference.md

Files

What ships with it

1 file 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. 11d ago First seen · 90 lines · 62 tokens per session scan B 4147593eef2d

Subscribe to this mod's changes

tdd-onboard is a skill published in the GitHub repository morodomi/tdd-skills (8 stars, last pushed 7mo ago), licensed MIT. It adds 62 tokens to every session and 821 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.