ijfw-tdd

ijfw-tdd is a skill for Claude Code from FerroxLabs/ijfw. It costs 45 tokens per session (1,379 once invoked), scanned A, original, MIT.

A TDD workflow for implementing a feature or bug fix by writing a failing test first, then the smallest code that passes it, and finally improving the structure. TDD, or test-driven development, is a way to develop code in that order.

In plain words
What is it for?
It helps write one behavior-focused test, run it, implement the minimum change, and refactor without changing behavior.
Why use it?
It prevents implementation code from being written without a test for the intended behavior. Checking the expected failure first can also reveal when a test is testing the wrong thing.

Skill for Claude Code

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

Part of the ijfw plugin — 34 skills, 22 commands, 37 agents, 6 hooks shipped together

Good fit It helps write one behavior-focused test, run it, implement the minimum change, and refactor without changing behavior.

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

Made for: Claude Code.

Or install ijfw, the plugin that ships this one along with the rest of its 34 skills, 22 commands, 37 agents, 6 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ferroxlabs/ijfw/ijfw-tdd"><img src="https://agentmods.dev/badge/skills/ferroxlabs/ijfw/ijfw-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 46
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
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.00045 $0.01379
Opus 5 $0.00023 $0.00690
Sonnet 5 $0.00009 $0.00276
Haiku 4.5 $0.00005 $0.00138

Measured 4d ago against content hash c38dd4cfb108, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ijfw-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.

claude/skills/ijfw-tdd/SKILL.md · 103 lines

How it starts

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

IJFW TDD -- RED-GREEN-REFACTOR

Write the test first. Watch it fail for the right reason. Write the minimum code to make it pass. Then improve structure without changing behavior.

Iron law: No production code without a failing test first. If you wrote code before the test, delete it. Implement fresh from the test.

This skill enforces three distinct moves. Each move has a green light that you must hit before advancing. Skipping a green light is not "pragmatic" -- it is the bug.


Move 1: RED -- write a test that fails for the RIGHT reason

Write ONE minimal test for ONE behavior. Use a descriptive name. Use real code (no mocks unless unavoidable).

Before running the test, write down the failure message you EXPECT to see. Example: "AssertionError: expected 'Email required', got undefined" or "AttributeError: module has no attribute 'retryOperation'".

Then run it:

npm test path/to/test.ts   # or pytest, cargo test, go test, etc.

Paste the actual failure into your scratch. Compare against what you predicted.

Green light to advance: the test FAILS, and the failure message is the one you predicted (an assertion failure on the intended behavior, or a "missing symbol" error if the function does not exist yet).

Red flags that block advancing:

  • Test passes immediately -- you are testing existing behavior. Rewrite.
  • Test errors on a typo, import, or syntax issue -- fix and re-run until it fails meaningfully.
  • Failure message surprises you -- you do not yet understand what you are building. Stop and think before writing implementation.

Move 2: GREEN -- write the minimum code to pass

Write the simplest implementation that turns the failing test green. No extra parameters. No "while I am here" cleanup. No anticipating tomorrow's tests. YAGNI.

Run the test. Paste the pass output. Run the full suite -- nothing else may regress.

Green light to advance: target test passes, full suite passes, output is pristine (no warnings, no stack-trace noise, no skipped tests you forgot about).

Read the full file on GitHub · 103 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. 4d ago First seen · 103 lines · 45 tokens per session scan A c38dd4cfb108

Subscribe to this mod's changes

ijfw-tdd is a skill published in the GitHub repository FerroxLabs/ijfw (210 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,379 once invoked, about $0.0002 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-09-05.