fable-tdd

fable-tdd is a skill for Claude Code, Codex from imMamdouhaboammar/get-fable. It costs 133 tokens per session (2,021 once invoked), scanned A, original, MIT.

A test-first workflow for changing behavior or fixing bugs. TDD, or test-driven development, means first writing a test that demonstrates the missing behavior, then changing the code and improving it.

In plain words
What is it for?
It is for implementing features, fixing reproducible bugs, changing business rules or API behavior, and documenting behavior with unit or integration tests.
Why use it?
It prevents code changes from being based on an unproven failure and leaves a test that can catch the problem if it returns.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the get-fable plugin — 78 skills, 1 agent, 5 hooks shipped together

Good fit It is for implementing features, fixing reproducible bugs, changing business rules or API behavior, and documenting behavior with unit or integration tests.

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

Made for: Claude Code, Codex.

Or install get-fable, the plugin that ships this one along with the rest of its 78 skills, 1 agent, 5 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 fable-tdd

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/immamdouhaboammar/get-fable/fable-tdd"><img src="https://agentmods.dev/badge/skills/immamdouhaboammar/get-fable/fable-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,021 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.00133 $0.02021
Opus 5 $0.00067 $0.01010
Sonnet 5 $0.00027 $0.00404
Haiku 4.5 $0.00013 $0.00202

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

Security

Grade A, and why

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

skills/fable-tdd/SKILL.md · 231 lines

How it starts

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

Fable TDD

Prove the behavior is missing or broken before changing production code, then make the smallest change that satisfies the right test at the right level.

Mission

TDD is not "write any failing test first." The red state must demonstrate the intended behavior gap through a trustworthy harness. A syntax error, broken fixture, stale build, or mock-only expectation does not earn the right to change production code.

The Skill optimizes for three things:

  • causal confidence: the test fails because the behavior is wrong;
  • minimal intervention: implementation changes only what the behavior requires;
  • durable regression proof: the test would catch the bug if it returned.

Activate When

  • fixing a reproducible bug or regression;
  • adding behavior with a stable enough contract to assert;
  • changing validation, state transitions, calculations, API behavior, persistence, or integration semantics;
  • refactoring where an invariant needs executable characterization first.

Do Not Activate When

  • the behavior cannot yet be located or reproduced (fable-discover);
  • the main uncertainty is external API semantics (fable-research);
  • the change is non-executable docs/metadata with no meaningful behavior test (fable-execute);
  • the required test harness is itself broken or executing stale artifacts (fable-recover).

Change Classification

Classify the behavior before choosing a test.

Class Preferred proof
Pure/domain logic focused unit/property test
Boundary validation/error mapping unit or contract test at boundary
Cross-module interaction integration test through the changed contract
Database/queue/cache behavior integration test with realistic boundary where feasible
HTTP/CLI/public API contract/integration test at public entry point
UI user flow component/integration first; E2E for high-value cross-boundary behavior
Concurrency/timing deterministic coordination test, not sleep-and-hope
Legacy behavior with poor seams characterization test at nearest stable boundary
Refactor/no intended behavior change characterization/invariant tests before movement

Read the full file on GitHub · 231 lines

Files

What ships with it

7 files 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. 7d ago First seen · 231 lines · 133 tokens per session scan A c15ce7c9e62e

Subscribe to this mod's changes

fable-tdd is a skill published in the GitHub repository imMamdouhaboammar/get-fable (4 stars, last pushed today), licensed MIT. It adds 133 tokens to every session and 2,021 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

tdd

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

berekvolgyipeter/dotclaude · 45 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

engineering-workflow

A Chinese-language workflow for reliable software development. It describes exploring the problem, making a plan, using TDD (test-driven development, where tests are written before the code), debugging methodically, reviewing code, and verifying the result.

TencentCloud/Octop · 47 tokens

implement

Implement a technical design by decomposing it into dependency-ordered vertical slices, executing each with TDD red-green, reviewing each via an isolated sub-agent, and persisting progress to a state file so work survives session restarts. Use when the user has a tech design (doc or settled conversation) and says…

open-octo/octo-agent · 97 tokens

principle-test-behavior-not-implementation

Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value. If the test would still pass when every imported function returns undefined, rewrite the assertion or delete the test.

michael-denyer/pstack-claude · 63 tokens

test-driven-development

TDD: enforce RED-GREEN-REFACTOR, tests before code.

HezaoHezao/poirot · 20 tokens