tdd-workflow

A Test-Driven Development workflow, where developers write a failing test, make it pass with the smallest change, then clean up the code.

In plain words
What is it for?
Use it when implementing features or fixes that should be developed through failing tests, passing tests, cleanup, and Git checkpoints.
Why use it?
It gives coding work a repeatable cycle and checkpoints, while ensuring refactoring does not silently change behavior.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/talayash/agentrium/tdd-workflow
Any agent
npx skills add talayash/agentrium --skill tdd-workflow
Clone the repo
git clone --depth 1 https://github.com/talayash/agentrium

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 121 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.00121
Opus 5 $0.00011 $0.00060
Sonnet 5 $0.00004 $0.00024
Haiku 4.5 $0.00002 $0.00012

Measured 3d ago against content hash 673ba67d6e28, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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/tdd-workflow/SKILL.md · 20 lines

What it actually says

TDD Workflow

The Cycle

  1. RED - Write a failing test first
  2. GREEN - Write minimum code to pass
  3. REFACTOR - Clean up, tests must still pass

Rules

  • Never write production code without a failing test
  • Each GREEN phase gets a git checkpoint
  • Refactor must not change behavior
  • Stop if tests fail after refactor - fix before continuing
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. 3d ago First seen · 20 lines · 22 tokens per session scan A 673ba67d6e28

Subscribe to this mod's changes

tdd-workflow is a skill published in the GitHub repository talayash/agentrium (39 stars, last pushed 3d ago), licensed MIT. It adds 22 tokens to every session and 121 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-30.

Related

Other skills, from other repositories

agent-integration

Run all three agent integration phases sequentially: research, write-tests, and implement using E2E-first TDD (unit tests written last). For individual phases, use /agent-integration:research, /agent-integration:write-tests, or /agent-integration:implement. Use when the user says "integrate agent", "add agent…

entireio/cli · 89 tokens

code-assist

Guides implementation of code tasks using test-driven development in an Explore, Plan, Code, Commit workflow. Acts as a Technical Implementation Partner and TDD Coach — following existing patterns, avoiding over-engineering, and producing idiomatic, modern code.

mikeyobrien/ralph-orchestrator · 53 tokens

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

GreyDGL/PentestGPT · 33 tokens

skill-prompt-convert

在 Skill(SKILL.md)与 Prompt(聊天框指令)两种格式之间相互转换。支持 Skill→Prompt 与 Prompt→Skill 双向转换,保持核心信息零丢失。当用户提到 Skill 转 Prompt、Prompt 转 Skill、格式互转、SKILL.md 转换时使用。.

xstongxue/best-skills · 72 tokens

code-mate-antigravity

Runs Antigravity CLI headlessly for repository analysis and coding tasks. Use when the user asks to delegate work to Antigravity CLI or compare its result with another coding agent.

CherryHQ/cherry-studio · 43 tokens

code-mate-openclaw

Runs a local OpenClaw agent non-interactively and returns its structured response. Use when the user asks to delegate a bounded task to the OpenClaw main agent.

CherryHQ/cherry-studio · 41 tokens