tdd

tdd is a skill for Claude Code, Codex from ric03uec/clawrium. It costs 17 tokens per session (412 once invoked), scanned A, original, Apache-2.0.

A Test-Driven Development guide for making code changes through a repeating failing-test, passing-code, and cleanup cycle. TDD means writing tests before the implementation they verify.

In plain words
What is it for?
Use it when implementing features or fixes: reproduce bugs with a failing test, make the smallest change that passes, then improve the code safely.
Why use it?
It keeps each change focused and confirms behavior with tests, while reducing the chance that refactoring breaks working code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ric03uec/clawrium/tdd
Any agent
npx skills add ric03uec/clawrium --skill tdd
Clone the repo
git clone --depth 1 https://github.com/ric03uec/clawrium

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/ric03uec/clawrium/tdd.svg)](https://agentmods.dev/skills/ric03uec/clawrium/tdd)
Your own site
<a href="https://agentmods.dev/skills/ric03uec/clawrium/tdd"><img src="https://agentmods.dev/badge/skills/ric03uec/clawrium/tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00017 $0.00412
Opus 5 $0.00009 $0.00206
Sonnet 5 $0.00003 $0.00082
Haiku 4.5 $0.00002 $0.00041

Measured 5d ago against content hash 6f8310f7f0c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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.

skills/clawrium/tdd/SKILL.md · 41 lines

What it actually says

TDD — Test-Driven Development

When the user asks you to implement, change, or fix behavior, work in the red → green → refactor loop. The loop is the discipline; do not skip a step.

The loop

  1. Red. Write a single failing test that names the next behavior in the smallest reasonable scope. Run the test suite (or just the new test) and confirm the failure is for the right reason (asserts on behavior, not on a missing import or typo).
  2. Green. Make the test pass with the minimum change. Resist the urge to refactor neighboring code, generalize, or anticipate the next test. "Minimum" means: if a literal return makes the test pass, return the literal — then write the next failing test that forces the generalization.
  3. Refactor. With the suite green, improve names, remove duplication, tighten interfaces. Run the suite after every refactor step. If a refactor turns the suite red, revert immediately and split it smaller.

When to break the loop

  • Spike — explore an unknown API in a throwaway branch with no tests, then delete the spike and re-implement TDD-style.
  • Bug report — write the failing test first that reproduces the bug, even if the production fix is one line. Without the test, the bug returns.
  • Refactor-only — the suite must be green at start and end; no behavior changes in this mode.

Anti-patterns

  • Writing the implementation first then back-filling tests.
  • Writing many failing tests at once (you can't tell which one is driving).
  • Skipping the "right reason" check in step 1.
  • Refactoring while red.
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. 5d ago First seen · 41 lines · 17 tokens per session scan A 6f8310f7f0c5

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository ric03uec/clawrium (51 stars, last pushed 2d ago), licensed Apache-2.0. It adds 17 tokens to every session and 412 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

load-github-action-thread

Download retained Codex GitHub Action thread artifacts and load their rollout history into the local Codex app. Use when asked to open, load, import, resume, or inspect a Codex automation thread from a GitHub Actions run or a related GitHub issue or pull request.

astral-sh/uv · 62 tokens

uv-mapping

Inspect, generate, transform, and visualize UV channels on StaticMesh assets (UVMappingService). Use when the user asks to check/add/remove UV channels, auto-unwrap UVs, transform (tile/offset/rotate) UVs, check UV health/islands, or export a UV layout image.

kevinpbuckley/VibeUE · 65 tokens

depsguard

Install and run DepsGuard, a zero-dependency CLI that scans and fixes package manager configs (npm, pnpm, yarn, bun, uv) for supply chain security best practices.

arnica/depsguard · 41 tokens

python

Use when the task is Python itself, in any framework or none: PEP 695 generics, mypy --strict typing, dataclass/Protocol/TypedDict/Enum choices, asyncio.TaskGroup, stdlib idioms, src/ layout + pyproject.toml with uv, ruff+mypy+pytest gate. NOT a FastAPI/ASGI service (that is fastapi), NOT a deep pytest suite (that is…

ericrisco/rsc-harness · 94 tokens

deploying-osquery-for-endpoint-monitoring

Deploys and configures osquery for real-time endpoint monitoring using SQL-based queries to inspect running processes, open ports, installed software, and system configuration. Use when building visibility into endpoint state, threat hunting across fleet, or implementing compliance monitoring. Activates for requests…

26zl/cybersec-toolkit · 80 tokens

aget-propose-actions

Propose ranked next-best actions with evidence grounding, time budgets, and execute-all default. Formalizes the fleet's highest-frequency interaction pattern.

aget-framework/aget · 33 tokens