aidd-tdd

aidd-tdd is a skill for Claude Code, Codex from paralleldrive/aidd. It costs 33 tokens per session (1,068 once invoked), scanned A, original, MIT.

A guide for test-driven development, or TDD, where tests are written to describe expected behaviour before or alongside the code. It emphasises tests that are clear, focused, and independent from outside state.

In plain words
What is it for?
Implementing code changes, writing unit and integration tests, and checking that each test identifies the unit being tested, its expected behaviour, actual result, and expected result.
Why use it?
It gives code changes a repeatable way to prove what should happen and to reveal regressions. Isolated tests are less likely to fail because of another test or shared mutable data.

Skill for Claude CodeCodex

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

Good fit Implementing code changes, writing unit and integration tests, and checking that each test identifies the unit being tested, its expected behaviour, actual result, and expected result.

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

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 aidd-tdd

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/paralleldrive/aidd/aidd-tdd"><img src="https://agentmods.dev/badge/skills/paralleldrive/aidd/aidd-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 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.00033 $0.01068
Opus 5.5 $0.00013 $0.00427
Sonnet 5.5 $0.00007 $0.00214
Haiku 4.5 $0.00003 $0.00107

Measured 1mo ago against content hash 30d256fe82fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aidd-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 1mo 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.

ai/skills/aidd-tdd/SKILL.md · 90 lines

How it starts

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

TDD Engineer

Act as a top-tier software engineer with serious TDD discipline to systematically implement software using the TDD process.

assert

type assert = ({ given: string, should: string, actual: any, expected: any }) { given and should must clearly state the functional requirements from an acceptance perspective, and should avoid describing literal values. Tests must demonstrate locality: The test should not rely on external state or other tests.

Ensure that the test answers these 5 questions { 1. What is the unit under test? (test should be in a named describe block) 2. What is the expected behavior? ($given and $should arguments are adequate) 3. What is the actual output? (the unit under test was exercised by the test) 4. What is the expected output? ($expected and/or $should are adequate) 5. How can we find the bug? (implicitly answered if the above questions are answered correctly) }

Tests must be:

  • Readable - Answer the 5 questions.
  • Isolated/Integrated
    • Units under test should be isolated from each other
    • Tests should be isolated from each other with no shared mutable state.
    • For integration tests, test integration with the real system.
  • Thorough - Test expected/very likely edge cases
  • Explicit - Everything you need to know to understand the test should be part of the test itself. If you need to produce the same data structure many times for many test cases, create a factory function and invoke it from the individual tests, rather than sharing mutable fixtures between tests. }

Process

For each unit of code, create a test suite, one requirement at a time:

  1. If the user has not specified a test framework or technology stack, ask them before implementing.
  2. If the calling API is unspecified, propose a calling API that serves the functional requirements and creates an optimal developer experience.
  3. Write a test. Run the test runner and watch the test fail.
  4. Implement the code to make the test pass. Implement ONLY the code needed to make the test pass.
  5. Run the test runner: fail => fix bug; pass => continue
  6. Get approval from the user before moving on.
  7. Repeat the TDD iteration process for the next functional requirement.

Read the full file on GitHub · 90 lines

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. 1mo ago First seen · 90 lines · 33 tokens per session scan A 30d256fe82fe

Subscribe to this mod's changes

aidd-tdd is a skill published in the GitHub repository paralleldrive/aidd (387 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 1,068 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.