tdd-workflow

tdd-workflow is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 38 tokens per session (1,694 once invoked), scanned A, original, Apache-2.0.

A test-first development workflow, commonly called TDD, in which you write a failing test, add the smallest code that makes it pass, and then improve the code. The test describes one user-visible behaviour at a time.

In plain words
What is it for?
Use it for new features, bug fixes, refactoring, behaviour changes, and changes to tests.
Why use it?
It reduces the risk of implementing behaviour that was never properly checked and helps keep tests focused on useful outcomes.

Skill for Claude CodeCodex

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

Good fit Use it for new features, bug fixes, refactoring, behaviour changes, and changes to tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/tdd-workflow"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/tdd-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,694 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.00038 $0.01694
Opus 5.5 $0.00015 $0.00678
Sonnet 5.5 $0.00008 $0.00339
Haiku 4.5 $0.00004 $0.00169

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

Security

Grade A, and why

tdd-workflow 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.

catalog/agents/backend-developer/skills/tdd-workflow/SKILL.md · 126 lines

How it starts

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

Test-Driven Development

Overview

Write the test first. Watch it fail. Write minimal code to pass.

Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.

Violating the letter of the rules is violating the spirit of the rules.

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Wrote code before the test? Delete it. Start over. Don't keep it as "reference", don't "adapt" it while writing tests — delete means delete, implement fresh from the test.

When to Use

Always: new features, bug fixes, refactoring, behavior changes. Thinking "skip TDD just this once"? Stop. That's rationalization.

Exceptions — no new test required: pure config, copy/text, or asset edits, and generated code you did not hand-write. Say so explicitly in your closing message; this matches the standing acceptance criteria's own exemption, it does not replace it.

Red-Green-Refactor

RED — write one failing test

  • One behavior per test, clear name that describes the behavior.
  • Test real code; mocks only when unavoidable (external services). The mock earns no assertions of its own — assert on what your code does with its result, not that the mock was called.
  • Before writing the body, name the production change that would make this test fail. If you can't name one, you're not testing behavior yet.
  • Derive the expected value independently, by hand — a literal, not a recomputation. ❌ expect(build(x)).toBe(build(x)) tests nothing; it recomputes the answer the way the code does, so it passes no matter what. ✅ expect(build({id:1})).toBe("item-1").
  • Bad: a test whose assertions only exercise the mock, not the code under test.

Verify RED — watch it fail (MANDATORY, never skip)

  • Run it with the stack's focused command, not the whole suite: go test ./pkg/... -run TestName, npx vitest run path/to.test.tsx, flutter test test/x_test.dart, ./mvnw -q test -Dtest=ClassName, dotnet test --filter "FullyQualifiedName~ClassName", cargo test test_name.
  • Confirm it FAILS (not errors) and fails because the feature is missing — not a typo or compile error.
  • Test passes immediately? It tests existing behavior — fix the test.
  • Test errors? Fix the error and re-run until it fails correctly.

Read the full file on GitHub · 126 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. 1mo ago Changed ff405e40ec56
  2. 1mo ago First seen · 126 lines · 38 tokens per session scan A 214eb0ccf4a0

Subscribe to this mod's changes

tdd-workflow is a skill published in the GitHub repository makifbaysal/tasktrooper (123 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 1,694 once invoked, about $0.0002 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-10-05.

Related

tdd-workflow compared with skills from other repositories

tdd-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-workflowmakifbaysal/tasktrooperSkill123todayApache-2.0A38Claude Code, Codex
agent-implementer-sparc-coderruvnet/rufloSkill83ktodayMITA33Claude Code
agent-tdd-london-swarmruvnet/rufloSkill83ktodayMITA28Claude Code
Pair Programmingruvnet/rufloSkill83ktodayMITA61Claude Code
V3 Security Overhaulruvnet/rufloSkill83ktodayMITA52Claude Code
rudderRudderCode/RudderSkill241mo agoApache-2.0A101Claude Code, Codex
implementberekvolgyipeter/dotclaudeSkill2yesterdayMITA74Claude Code