tdd-workflow

tdd-workflow is a skill for Claude Code from cloudnative-co/claude-code-starter-kit. It costs 54 tokens per session (945 once invoked), scanned A, original, MIT.

A tests-first workflow for building software: write a test that fails, add code to make it pass, then improve the code. It covers unit tests for individual parts, integration tests for connected parts, and end-to-end tests for complete user flows.

In plain words
What is it for?
Use it when developing a new feature, adding an API endpoint or user-facing component, or when a project requires tests before implementation.
Why use it?
It helps prevent new code from breaking existing behavior and makes missing edge cases and error handling easier to find. It also gives feature work a clear testing sequence when coverage is required.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash tests/run-unit-tests.sh # shell projects.

Good fit Use it when developing a new feature, adding an API endpoint or user-facing component, or when a project requires tests before implementation.

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/cloudnative-co/claude-code-starter-kit
agentmods
npx agentmods add skills/cloudnative-co/claude-code-starter-kit/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/cloudnative-co/claude-code-starter-kit/tdd-workflow/github.svg)](https://agentmods.dev/skills/cloudnative-co/claude-code-starter-kit/tdd-workflow)
Your own site
<a href="https://agentmods.dev/skills/cloudnative-co/claude-code-starter-kit/tdd-workflow"><img src="https://agentmods.dev/badge/skills/cloudnative-co/claude-code-starter-kit/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/cloudnative-co/claude-code-starter-kit/tdd-workflow"><img src="https://agentmods.dev/badge/skills/cloudnative-co/claude-code-starter-kit/tdd-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 945 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.00054 $0.00945
Opus 5.5 $0.00022 $0.00378
Sonnet 5.5 $0.00011 $0.00189
Haiku 4.5 $0.00005 $0.00094

Measured 3mo ago against content hash c9578121f8c0, 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check-coverage.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/tdd-workflow/SKILL.md · 118 lines

How it starts

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

Test-Driven Development Workflow

This skill provides a structured TDD workflow for projects that adopt tests-first development.

When to Activate

  • The user explicitly asks for TDD or tests-first development
  • New feature work where test coverage is a stated requirement
  • Adding API endpoints or components under a coverage policy

For routine bug fixes or refactors, add focused tests for the changed behavior instead of invoking this full workflow (the /tdd command and tdd-guide agent remain available when you want it explicitly).

Core Principles

1. Tests BEFORE Code

Within this workflow, the default is to write tests first, then implement code to make tests pass.

2. Coverage Guidance

  • Coverage target follows the project's own standard (e.g., 80% as a common baseline); scale effort with the size of the change
  • Cover relevant edge cases
  • Test error scenarios
  • Verify boundary conditions

3. Test Types

Unit Tests - Individual functions, utilities, component logic, pure functions, helpers.

Integration Tests - API endpoints, database operations, service interactions, external API calls.

E2E Tests (Playwright) - Critical user flows, complete workflows, browser automation, UI interactions. Applies to web UI projects only.

TDD Workflow Steps

Step 1: Write User Journeys

As a [role], I want to [action], so that [benefit]

Example:
As a user, I want to search for markets semantically,
so that I can find relevant markets even without exact keywords.

Step 2: Generate Test Cases

For each user journey, create comprehensive test cases covering happy paths, edge cases, fallback behavior, and sorting/filtering logic.

Step 3: Run Tests (They Should Fail)

Use the project's test runner. Examples:

npm test                      # Node.js
pytest                        # Python
bash tests/run-unit-tests.sh  # shell projects
# Tests should fail - we haven't implemented yet

Step 4: Implement Code

Write minimal code to make tests pass.

Read the full file on GitHub · 118 lines

Files

What ships with it

3 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. 3mo ago First seen · 118 lines · 54 tokens per session scan A c9578121f8c0

Subscribe to this mod's changes

tdd-workflow is a skill published in the GitHub repository cloudnative-co/claude-code-starter-kit (156 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 945 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-08-30.

Related

tdd-workflow compared with skills from other repositories

tdd-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-workflowcloudnative-co/claude-code-starter-kitSkill1561mo agoMITA54Claude Code
rust-testingaffaan-m/ECCSkill314kyesterdayMITA31Claude Code, Kiro
cpp-testingaffaan-m/ECCSkill314kyesterdayMITA34Claude Code, Kiro
write-vibe-testsmistralai/mistral-vibeSkill5.5k3d agoApache-2.0A80Claude Code, Codex
nw-fp-haskellnWave-ai/nWaveSkill63612d agoMITA22Claude Code
nw-fp-clojurenWave-ai/nWaveSkill63612d agoMITA25Claude Code
nw-fp-fsharpnWave-ai/nWaveSkill63612d agoMITA21Claude Code