tdd

tdd is a skill for Codex from dayfinggg/openai-codex-agent-skills. It costs 68 tokens per session (410 once invoked), scanned A, original, MIT.

A development method that writes a test for the expected behavior, makes the smallest code change to pass it, and then improves the code while keeping the test passing. TDD means test-driven development.

In plain words
What is it for?
Use it for focused feature work, bug fixes, and regression tests when a fast, trustworthy local test can observe the result.
Why use it?
It gives a quick way to confirm what a feature or bug fix should do and helps prevent regressions. It avoids relying on tests that merely pass without proving the missing behavior.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for focused feature work, bug fixes, and regression tests when a fast, trustworthy local test can observe the result.

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

Made for: 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/dayfinggg/openai-codex-agent-skills/tdd/github.svg)](https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/tdd)
Your own site
<a href="https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/tdd"><img src="https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/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/dayfinggg/openai-codex-agent-skills/tdd"><img src="https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 410 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.00068 $0.00410
Opus 5 $0.00034 $0.00205
Sonnet 5 $0.00014 $0.00082
Haiku 4.5 $0.00007 $0.00041

Measured 4d ago against content hash 749cc5824d08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 4d 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.

codex/skills/tdd/SKILL.md · 33 lines

What it actually says

TDD

Follow the governing instructions and the user's requirements for communication, code style, authorization, and delegation. This skill supplies task-specific guidance, not permission to expand the task. Its workflow and output fields describe internal checks and relevant content, not a mandatory response layout or a progress report. When used within broader authorized work, continue that work through completion rather than stopping to deliver this skill's intermediate result.

Use a test to define behavior before implementation when that test provides a fast and trustworthy feedback loop.

Red

Choose the narrowest test seam that observes public behavior rather than internal steps. Write one test for the missing or broken behavior. Run it and confirm that it fails for the expected reason. A syntax error, unrelated failure, or test that already passes does not establish red.

Green

Make the smallest production change that satisfies the test without weakening assertions or bypassing the real path. Run the focused test until it passes, then run nearby tests that protect the same contract.

Refactor

Improve names and structure only while tests remain green. Avoid speculative generalization. Add another test only for a distinct behavior or failure mode.

When red is impractical

Explain why the test cannot be made cheap or reliable. Use a reproduction script, integration check, or manual observable check instead. Do not create a brittle test merely to satisfy the workflow.

Time pressure alone is not a reason to skip the red, green, and refactor evidence or the relevant regression checks. When an alternate check is necessary, record the behavior it does not prove and the resulting residual risk.

Output

Report the failing observation, implementation change, passing evidence, and any broader checks.

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. 4d ago Changed · +2 lines 749cc5824d08
  2. 5d ago Changed · +2 lines c770104e9ce7
  3. 11d ago First seen · 29 lines · 68 tokens per session scan A 20f2bfeb5376

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository dayfinggg/openai-codex-agent-skills (4 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 410 once invoked, about $0.0003 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.