tdd-cycle

tdd-cycle is a skill for Claude Code from TypedDevs/bashunit. It costs 16 tokens per session (323 once invoked), scanned A, original, MIT.

A step-by-step method for test-driven development (TDD), where you write a failing test, make it pass with minimal code, then improve the code without changing its behavior.

In plain words
What is it for?
Use it to implement shell-code tests with Bashunit, update the related task file, run quality checks, and work through tests one at a time.
Why use it?
It prevents code from being written without a clear test and checks that each failure has the expected cause. It also keeps a record of progress and test results.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to implement shell-code tests with Bashunit, update the related task file, run quality checks, and work through tests one at a time.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/typeddevs/bashunit/tdd-cycle"><img src="https://agentmods.dev/badge/skills/typeddevs/bashunit/tdd-cycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 323 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 pass 7 Sept 2026
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.00016 $0.00323
Opus 5.5 $0.00006 $0.00129
Sonnet 5.5 $0.00003 $0.00065
Haiku 4.5 $0.00002 $0.00032

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

Security

Grade A, and why

tdd-cycle 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 5d 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.

.agnostic-ai/skills/tdd-cycle/SKILL.md · 19 lines

What it actually says

TDD cycle

Read the complete workflow for task-file conventions. Repository paths are relative to the repository root. The canonical quality gate and coordinator responsibilities in .agnostic-ai/AGNOSTIC_AI.md apply.

Use .tasks/YYYY-MM-DD-slug.md for features, refactors, or multi-test work; skip it for small fixes or a single test. Choose the next smallest test from the acceptance scenario or task inventory and study matching existing tests.

  1. RED: Write Arrange-Act-Assert, run ./bashunit <test-path>, and verify failure proves the requested behavior is missing, rather than a syntax or setup error. Record the red bar and logbook entry when using a task file.
  2. GREEN: Implement only what this test requires. Run the focused test and require a pass. Check off the inventory entry and record the result.
  3. REFACTOR: Improve naming, structure, or duplication without changing behavior. Keep affected focused tests green; preserve other workers' changes. Record meaningful refactoring notes.
  4. Repeat until the acceptance scenario is complete. The main session runs the full quality gate once after the whole change set, before committing. Delegates run only assigned targeted checks.

Never skip the demonstrated RED or add speculative behavior during GREEN. Keep the task inventory and logbook current when a task file is used.

Files

What ships with it

1 file 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. 5d ago Changed · -31 lines 7eb4b1f2a6ae
  2. 1mo ago First seen · 50 lines · 16 tokens per session scan A 8a8d485a66f6

Subscribe to this mod's changes

tdd-cycle is a skill published in the GitHub repository TypedDevs/bashunit (435 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 323 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-30.