test-driven-development

test-driven-development is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 51 tokens per session (1,609 once invoked), scanned A, original, Apache-2.0.

Guides the implementation of software using Red-Green-Refactor testing cycles, ensuring high coverage, robust mocks, and testable system designs. Use this skill when asked to write new features, add testing suites, or verify coverage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/test-driven-development
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 jggomez/expert-ai-developer-skills --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

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 test-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/test-driven-development/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/test-driven-development"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/test-driven-development/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 test-driven-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/test-driven-development"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,609 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.00051 $0.01609
Opus 5.5 $0.00020 $0.00644
Sonnet 5.5 $0.00010 $0.00322
Haiku 4.5 $0.00005 $0.00161

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

Security

Grade A, and why

test-driven-development 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/verify_tests.py), 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.

plugins/antigravity/python-backend/skills/test-driven-development/SKILL.md · 152 lines

How it starts

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

Test-Driven Development (TDD) Skill

Overview

This skill establishes a disciplined Test-Driven Development (TDD) workflow based on the Red-Green-Refactor cycle. It acts as a Software Quality and TDD Specialist, treating untested code as immediate technical debt. It enforces decoupled, highly testable architectures by defining verification contracts and behavioral specifications before writing any production implementation.

When to Use

Trigger Scenarios

  • Implementing new features, user stories, domain models, or utility logic.
  • Fixing software bugs by writing a reproducing regression test first.
  • Refactoring complex systems while preserving exact behavior with a fast safety net.
  • Measuring and enforcing test coverage boundaries across a codebase.

When NOT to Use

  • Browser/UI End-to-End journeys: Route to qa-tester.
  • BDD Gherkin specification authoring: Route to testing-expert.
  • Pre-commit and linting pipelines: Route to build-and-ci-gates.
  • Pure code smell identification without testing: Route to code-smells-expert.

Process

Phase 1: Framework Discovery & Baseline Run

  1. Detect the project's testing framework (pytest, jest, vitest, go test, flutter test).
  2. Run existing tests to verify that the baseline suite is green before making any edits:
    python3 ./skills/test-driven-development/scripts/verify_tests.py
    

Phase 2: Red-Green-Refactor Loop

For every atomic requirement or behavior:

  1. RED: Write a focused, failing unit test asserting the expected behavior. Follow the Arrange-Act-Assert (AAA) pattern.
    • Run the test suite and confirm the test fails specifically due to the missing behavior (not due to a syntax error or broken import).
  2. GREEN: Write the minimal amount of production code required to satisfy the test assertions. Avoid premature abstractions. Confirm the test suite passes.
  3. REFACTOR: Clean up both production code and test code:
    • Eliminate duplication, improve variable and function naming, extract cohesive helpers, and remove dead code.
    • Run verify_tests.py after each micro-refactoring step to confirm everything remains green.

Read the full file on GitHub · 152 lines

Files

What ships with it

2 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. today First seen · 152 lines · 51 tokens per session scan A b405802a1f9f

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 1,609 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-11-06.

Related

test-driven-development compared with skills from other repositories

test-driven-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-driven-developmentjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A51Claude Code, Codex
agui-dotnet-streaming-chatag-ui-protocol/ag-uiSkill17kyesterdayMITA223Claude Code
azure-mgmt-apicenter-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA97Claude Code
azure-communication-chat-javamicrosoft/skillsSkill3.2kyesterdayMITA41Claude Code
minimal-apicodewithmukesh/dotnet-claude-kitSkill8052d agoMITA101Claude Code
grpcmanagedcode/dotnet-skillsSkill508yesterdayMITA95Claude Code, Codex
azure-messaging-webpubsubservice-pybenjaminasterA/antigravity-awesome-skillsSkill461yesterdayMITA0Claude Code, Codex