tdd-change

tdd-change is a skill for Claude Code, Codex from jsuvic/agent-profile. It costs 28 tokens per session (538 once invoked), scanned A, original, Apache-2.0.

A test-first workflow for changing software behaviour. TDD, or test-driven development, means writing a focused test that fails before making the code change, then making it pass.

In plain words
What is it for?
Use it when changing behaviour covered by a test or golden fixture: confirm RED, implement the minimal fix, confirm GREEN, and refactor only after the test passes.
Why use it?
It provides evidence that the test detects the intended problem and that the smallest fix resolves it. It also reduces the risk of hiding unexplained changes by updating expected outputs blindly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when changing behaviour covered by a test or golden fixture: confirm RED, implement the minimal fix, confirm GREEN, and refactor only after the test passes.

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

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-change

README.md
[![agentmods](https://agentmods.dev/badge/skills/jsuvic/agent-profile/tdd-change.svg)](https://agentmods.dev/skills/jsuvic/agent-profile/tdd-change)
Your own site
<a href="https://agentmods.dev/skills/jsuvic/agent-profile/tdd-change"><img src="https://agentmods.dev/badge/skills/jsuvic/agent-profile/tdd-change.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 538 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.00028 $0.00538
Opus 5 $0.00014 $0.00269
Sonnet 5 $0.00006 $0.00108
Haiku 4.5 $0.00003 $0.00054

Measured 7d ago against content hash 871dce548371, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tdd-change 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 7d 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.

.agents/skills/tdd-change/SKILL.md · 51 lines

How it starts

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

TDD Change

Instructions

  1. Identify the smallest observable behavior covered by the approved spec.
  2. Add or update one focused failing test or golden fixture before changing behavior code.
  3. Run the narrowest relevant test command and confirm RED: the test fails for the expected reason, not because of a typo, setup error, or unrelated failure.
  4. Implement the smallest change that satisfies the failing test and the spec.
  5. Run the same focused test command and confirm GREEN: the test passes without new warnings or unrelated failures.
  6. Refactor only after GREEN, then rerun the focused test command.
  7. Do not update golden files only to hide an unexplained behavior change.

Testing Anti-Patterns

  • Do not write a tautological test: expected values must come from an independent source, never recomputed the way the code under test computes them.
  • Do not assert on mock elements or mock call counts when a real behavior assertion is possible.
  • Do not add production methods, flags, or exports that exist only for tests.
  • Do not mock a dependency until you understand the side effects the test needs.
  • Keep test doubles structurally complete enough to match the real data shape consumed by the code.
  • If mock setup is larger than the behavior under test, consider a narrower integration test or a simpler production boundary.

Mock Boundary

  • Mock only unmanaged external dependencies, such as network, clock, or filesystem you do not own.
  • Prefer a fake over a stub, and a stub over a mock or spy.
  • Use a spy only where outbound communication is itself the tested contract.
  • Never introduce an abstraction that exists only for a test.

Seam Discipline

  • Read CONTEXT.md when it exists; test names and interface names must match its glossary terms.
  • Test only at the seam declared in the issue brief; do not re-decide the seam inside the loop.
  • If implementation shows the declared seam is wrong, stop and report BLOCKED with the reason. Never silently move or redesign the seam.

Read the full file on GitHub · 51 lines

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. 7d ago First seen · 51 lines · 28 tokens per session scan A 871dce548371

Subscribe to this mod's changes

tdd-change is a skill published in the GitHub repository jsuvic/agent-profile (3 stars, last pushed 4d ago), licensed Apache-2.0. It adds 28 tokens to every session and 538 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-31.