tdd-workflow

tdd-workflow is a skill for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 21 tokens per session (546 once invoked), scanned A, original, MIT.

A Test-Driven Development workflow, meaning tests are written before the code and followed through a failing, passing, and cleanup cycle.

In plain words
What is it for?
It supports writing tests first, implementing the smallest change that passes them, and refactoring without losing coverage.
Why use it?
It helps define expected behavior early and catch regressions while implementing or changing code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Workflow Binding**: Used directly during [`/test`](../../workflows/test.md), [`/create`](../../workflows/create.md), and [`/debug`](../../workflows/debug.md)..

Good fit It supports writing tests first, implementing the smallest change that passes them, and refactoring without losing coverage.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OS
agentmods
npx agentmods add skills/dds-solutions/ai-tadpole-os/tdd-workflow

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/tdd-workflow.svg)](https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/tdd-workflow)
Your own site
<a href="https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/tdd-workflow"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/tdd-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 546 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.00021 $0.00546
Opus 5 $0.00010 $0.00273
Sonnet 5 $0.00004 $0.00109
Haiku 4.5 $0.00002 $0.00055

Measured 4d ago against content hash 174f83825482, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 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.

.agent/skills/tdd-workflow/SKILL.md · 58 lines

What it actually says

[!IMPORTANT] AI Context & Knowledge Heritage

  • Subsystem: Agent Skills Registry / tdd-workflow
  • Architecture: @docs ARCHITECTURE:Documentation
  • Failure Path: Information drift, legacy terminology, or documentation mismatch.
  • Observability: Traceability via execution/parity_guard.py ([SKILL])

Test-Driven Development (TDD) Protocol

Philosophy: Write tests first, code second. Prove failure before implementing solutions. Workflow Binding: Used directly during /test, /create, and /debug.


🎯 Progressive Disclosure & L3 Reference Index

Read REQUIRED TDD rules below; consult deep L3 Reference Guides on demand:

L3 Reference Guide Purpose Trigger / When to Load
references/tdd_patterns_and_cycles.md Concrete code cycles, Three Laws of TDD, test smell refactoring Writing unit tests before implementation

🔄 1. The RED-GREEN-REFACTOR Cycle

1. 🔴 RED      ➔ Write a minimal failing test that defines the expected behavior.
2. 🟢 GREEN    ➔ Write the minimum production code required to make the test pass.
3. 🔵 REFACTOR ➔ Clean up code, remove duplication, and optimize while staying green.

📐 2. Core TDD Directives

  1. Test Names Describe Intent: Use clear behavioral names (it('rejects expired capability tokens')).
  2. YAGNI (You Aren't Gonna Need It): Do not write speculative code beyond what the failing test demands.
  3. One Logical Assertion: Keep unit tests focused on a single logical invariant.

🛠️ 3. Execution Commands

# 1. Run watch mode for fast feedback
npm run test -- --watch

# 2. Run backend test suite
cargo test --manifest-path server-rs/Cargo.toml
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. 4d ago First seen · 58 lines · 21 tokens per session scan A 174f83825482

Subscribe to this mod's changes

tdd-workflow is a skill published in the GitHub repository DDS-Solutions/AI-TadPole-OS (8 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 546 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-09-03.

Related

Other skills, from other repositories

server-side-calls

Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError(). Error handling via onError option.

trpc/trpc · 61 tokens

fullstack-engineer

Consolidated web engineering skill combining backend and frontend development. Implements backend services, APIs, business logic, and web frontends (React/Next.js). Includes clean architecture, TDD, error handling, and state management patterns. Combines: software-engineer + frontend-engineer.

buiphucminhtam/forgewright · 62 tokens

tdd-cycle

Red-Green-Refactor TDD loop with mandatory false-positive check.

andreibesleaga/GABBE · 18 tokens

typescript-test-writing

Use this skill when writing or modifying tests in the llxprt-code repository. Covers mandatory TDD, behavioral testing, bun:test conventions and file naming, mock hygiene (no mock theater), and what never to test. Distilled from dev-docs/RULES.md, which remains the source of truth.

vybestack/llxprt-code · 66 tokens

implement-feature

Implement an approved feature plan with fresh-context slices, TDD, evidence, and PR-ready output.

HoangNguyen0403/agent-skills-standard · 23 tokens

walkeros-using-cli

Use when bundling walkerOS flows, testing events with simulate/push, running local servers, validating configs, or configuring Flow JSON files.

elbwalker/walkerOS · 34 tokens