tdd

tdd is a skill for Claude Code, Codex from smartfrog/opencode-froggy. It costs 17 tokens per session (385 once invoked), scanned A, original, MIT.

A Test-Driven Development workflow, where tests describing expected behavior are written before or alongside code. TDD means using tests to guide changes and prevent regressions.

In plain words
What is it for?
Use it to plan requirements, write unit, integration, or end-to-end tests, implement only what those tests require, and verify observable behavior.
Why use it?
It reduces the risk of adding a feature or fixing a bug without checking that the behavior works and stays working.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan requirements, write unit, integration, or end-to-end tests, implement only what those tests require, and verify observable behavior.

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

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/smartfrog/opencode-froggy/tdd/github.svg)](https://agentmods.dev/skills/smartfrog/opencode-froggy/tdd)
Your own site
<a href="https://agentmods.dev/skills/smartfrog/opencode-froggy/tdd"><img src="https://agentmods.dev/badge/skills/smartfrog/opencode-froggy/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/smartfrog/opencode-froggy/tdd"><img src="https://agentmods.dev/badge/skills/smartfrog/opencode-froggy/tdd.svg" alt="Reviewed on agentmods" width="80" 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 385 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.00017 $0.00385
Opus 5.5 $0.00007 $0.00154
Sonnet 5.5 $0.00003 $0.00077
Haiku 4.5 $0.00002 $0.00038

Measured 14d ago against content hash 9e23d0a23498, 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 14d 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.

skill/tdd/SKILL.md · 24 lines

What it actually says

Test-Driven Development

Use short test/code/refactor loops. Test-first is the default for features and bugfixes. When another form of verification is more appropriate, explain why and report the alternative check and its result; choose meaningful verification over formal compliance.

Workflow

  1. Pick an observable behavior from the acceptance criteria. For a bug, reproduce the failure with a focused test or another reliable check.
  2. Before implementation, write or update a behavioral test, run it, and confirm the failure comes from the missing or incorrect behavior, not a broken fixture or environment.
  3. Implement the simplest correct change, run the relevant checks, and refactor only where useful. Keep the loop with the implementer rather than splitting test, code, and refactor across workers.
  4. Repeat as needed, then run the project's required checks. Report actual commands, results, and meaningful verification gaps. Never claim a red/green cycle or a passing check that did not happen.

Adapt verification to the change

  • Test observable behavior and regressions, not implementation details. Prefer deterministic, readable tests; reuse existing coverage when it already proves the behavior.
  • Use unit tests for isolated logic, integration or contract checks for boundaries, and end-to-end checks for critical journeys where useful.
  • For refactoring, rely on existing behavior tests and add characterization coverage when needed. For documentation or small reversible low-impact changes, use direct checks rather than artificial tests.
  • For UI work, visual or interaction checks may be more useful than unit tests. For exploratory work, report findings and limitations before treating it as production-ready.
  • If an environment or test setup is unavailable, investigate or use an appropriate alternative check and state the remaining uncertainty. Keep independently verifiable work moving; track material verification debt when it remains.
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. 14d ago Changed · -25 lines 9e23d0a23498
  2. 26d ago Changed · +4 lines df8fc49a08f3
  3. 1mo ago First seen · 45 lines · 17 tokens per session scan A 773800a6e3ee

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository smartfrog/opencode-froggy (109 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 385 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-08-30.