dotfiles: Skill for Claude Code

.claude/skills/tdd/SKILL.md

tdd is a skill for Claude Code, Codex from ahonn/dotfiles. It costs 24 tokens per session (477 once invoked), scanned A, original, MIT.

A test-first workflow in which a failing test is written, the code is changed until it passes, and the result is kept as a regression check.

In plain words
What is it for?
Use it for non-trivial domain logic when the user or project explicitly asks for TDD, meaning test-driven development.
Why use it?
It helps verify behavior while it is being implemented and prevents known bugs from returning.

Skill for Claude CodeCodex

Written for Claude Code and Codex: installed under .claude/, but also agents/openai.yaml present. Also seen: mentions AGENTS.md.

This is ahonn/dotfiles's own configuration. It tells Claude Code and Codex how to work on dotfiles itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotfiles configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ahonn/dotfiles. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ahonn/dotfiles/master/.claude/skills/tdd/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ahonn/dotfiles

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ahonn/dotfiles/tdd"><img src="https://agentmods.dev/badge/skills/ahonn/dotfiles/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 477 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00024 $0.00477
Opus 5.5 $0.00010 $0.00191
Sonnet 5.5 $0.00005 $0.00095
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade A, and why

tdd 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 20d 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.

.claude/skills/tdd/SKILL.md · 36 lines

How it starts

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

Test-Driven Development

Use this workflow only for test mode tdd or an explicit test-first request. The applicable AGENTS.md testing policy owns mode selection; this skill does not turn skip, verify-only, or add-tests into TDD.

Establish the boundary

Inspect the implementation, nearby tests, and the relevant interface before the first test. Read domain documentation only when it resolves uncertainty about the behavior or vocabulary under test.

  • Use the existing test harness for this surface. If none exists, follow the task's scope and testing policy; introduce one only when the request supports it.
  • Choose the smallest public boundary that exposes the required behavior. State the boundary in the plan when useful; routine test placement does not require user confirmation.
  • Ask only when an unresolved behavior or interface decision materially changes scope or risk. Continue independent work while that decision is pending.

Work in vertical slices

  1. Select one observable behavior from the requirement or reproduced bug.
  2. Write a focused test and run it. Confirm it fails for the missing behavior, not a broken fixture, import, or environment.
  3. Add the implementation needed for that behavior and run the relevant test again.
  4. Refactor when it improves the changed code, keeping the relevant tests green. A separate review skill is not a prerequisite.
  5. Repeat for the next meaningful behavior. Finish with the checks appropriate to the changed surface and report only checks actually run.

Do not write a batch of speculative tests before implementing any behavior. Let each completed slice inform the next one.

Keep tests worth maintaining

  • Verify behavior through public interfaces, with expected results drawn from a requirement, worked example, or other independent source of truth.
  • Avoid private-method assertions and internal call-order checks unless that interaction is itself the contract.
  • Prefer real collaborators where practical. Isolate external boundaries when needed for reliable, focused tests.
  • Cover meaningful failure paths and regressions without mirroring the implementation or adding cases solely to increase coverage.

Read the full file on GitHub · 36 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. 20d ago Changed · -13 lines · -95 tokens per session 2b283edf7c92
  2. 1mo ago First seen · 49 lines · 119 tokens per session scan A fae7ff3f767c

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository ahonn/dotfiles (63 stars, last pushed 6d ago), licensed MIT. It adds 24 tokens to every session and 477 once invoked, about $0.0001 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

Other skills, from other repositories

implement__feature

A three-phase workflow for carrying out implementation tasks. It plans and tests the work, delegates implementation using test-driven development (TDD), then runs repeated code reviews.

shunsock/dotfiles · 127 tokens

ralph-loop

An iterative development workflow that moves from requirements to planning to building, with code review and tests required at each stage.

magic3007/dotfiles · 63 tokens

test-code

Testing philosophy, test types (unit, integration, golden, fuzz, property, benchmark, smoke, E2E), per-language conventions (Rust, Go, Python, TypeScript), file organization, fixtures/mocks, CI strategy, and what NOT to test. Use when writing tests, reviewing test coverage, setting up test infrastructure, or deciding…

urmzd/dotfiles · 101 tokens

run-eval-harness

Run a project's own eval suite end to end without babysitting: locate the harness, launch it in the background, monitor to completion, parse the report into a normalized summary (pass rate, latency percentiles, tokens, cost), and diff against the previous run with per-case regressions explained. Use when asked to "run…

urmzd/dotfiles · 134 tokens

django-tdd

Use when testing Django applications with pytest - TDD workflow, pytest-django setup, factoryboy and model-bakery fixtures, DRF API testing, mocking and patching, integration tests, or coverage.

Mte90/dotfiles · 46 tokens

laravel-tdd

Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.

Mte90/dotfiles · 27 tokens