tdd

tdd is a skill for Claude Code from Kripu77/software-factory. It costs 13 tokens per session (232 once invoked), scanned A, original, MIT.

A test-first method for implementing features and bug fixes. TDD means writing a test that fails, making it pass with the smallest change, and repeating the cycle.

In plain words
What is it for?
Use it to define test boundaries, write one behavior test at a time, implement the matching change, and repeat until the feature or fix is covered.
Why use it?
It checks intended behavior through public interfaces and helps prevent tests from depending on internal implementation details. It also keeps each coding step small and verifiable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the software-factory plugin — 10 skills, 9 commands shipped together

Good fit Use it to define test boundaries, write one behavior test at a time, implement the matching change, and repeat until the feature or fix is covered.

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

Made for: Claude Code.

Or install software-factory, the plugin that ships this one along with the rest of its 10 skills, 9 commands.

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/kripu77/software-factory/tdd/github.svg)](https://agentmods.dev/skills/kripu77/software-factory/tdd)
Your own site
<a href="https://agentmods.dev/skills/kripu77/software-factory/tdd"><img src="https://agentmods.dev/badge/skills/kripu77/software-factory/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/kripu77/software-factory/tdd"><img src="https://agentmods.dev/badge/skills/kripu77/software-factory/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 232 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.00013 $0.00232
Opus 5.5 $0.00005 $0.00093
Sonnet 5.5 $0.00003 $0.00046
Haiku 4.5 $0.00001 $0.00023

Measured 1mo ago against content hash 125633387f10, 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 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.

skills/tdd/SKILL.md · 31 lines

What it actually says

Test-Driven Development

Red then green. Consult this before and during the loop, not after.

Read CONTEXT.md if it exists so test names match the domain glossary. Respect ADRs.

Good test

Tests verify behavior through public interfaces, not internals. A good test reads like a spec and survives refactors.

Seams

A seam is the public boundary you test at. Test only at pre-agreed seams. Write the seams down before the first test. Confirm with the human if they are in the session. No test at an unconfirmed seam.

Anti-patterns

  • Implementation-coupled: mocks internals, private methods, or side channels.
  • Tautological: expected value recomputed the way the code does.
  • Horizontal slicing: all tests then all implementation. Use one test, one implementation, repeat.

Loop

  • Red before green.
  • One seam, one test, one minimal implementation per cycle.
  • Refactoring is not part of this loop. It belongs to /code-review.
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 · 31 lines · 13 tokens per session scan A 125633387f10

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository Kripu77/software-factory (7 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 232 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-31.

Related

Other skills, from other repositories

writing-skills

Use when creating a new forge-skill, editing an existing skill, when planning to contribute to forge-skills, when a session has produced a one-off prompt that should be promoted to a skill, or when verifying a skill works before deployment.

aneja5/forge-skills · 53 tokens

incremental-implementation

Use when .forge/tasks.yaml exists and implementation is starting, when executing a planned task list one task at a time, when a feature must ship in independently-verifiable slices, or when contracts in .forge/contracts/ need to be implemented against acceptance criteria.

aneja5/forge-skills · 56 tokens

tdd

Use when implementing features or fixing bugs test-first, when user mentions "red-green-refactor", when test discipline is required for a specific task, when incremental-implementation needs TDD enforcement, or when a behavior change needs a failing test before any code is written.

aneja5/forge-skills · 56 tokens

triage-issue

Use when user reports a bug, wants to file an issue, mentions "triage", when investigating a production problem before fixing it, when planning a fix that needs a TDD-shaped GitHub issue, or when a bug needs root-cause analysis before assignment.

aneja5/forge-skills · 58 tokens

specify-incremental

Decompose a single-feature specification into a linear, phase-by-phase implementation plan. Use this for medium-complexity work — single feature, one or two components — where transparent human-in-the-loop phase review is preferred over factory automation.

rsmdt/the-startup · 53 tokens

auto-loop

TDD-based autonomous development loop with checkpoint recovery and observability changelog.

claude-world/director-mode-lite · 17 tokens