tdd-workflow-skill

tdd-workflow-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 26 tokens per session (688 once invoked), scanned C, original, Apache-2.0.

A guide to Test Driven Development, a method where you write a failing test, add the smallest code that makes it pass, and then improve the code.

In plain words
What is it for?
Use it to learn or apply TDD in Python, JavaScript, Next.js, or other frameworks, including writing tests, running the red-green-refactor cycle, and refactoring safely.
Why use it?
It gives developers a clear development loop and encourages small, testable changes instead of writing unverified code first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit Use it to learn or apply TDD in Python, JavaScript, Next.js, or other frameworks, including writing tests, running the red-green-refactor cycle, and refactoring safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/tdd-workflow-skill
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 darellchua2/opencode-config-template --skill tdd-workflow-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/tdd-workflow-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/tdd-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/tdd-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/tdd-workflow-skill/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-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/tdd-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/tdd-workflow-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 688 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00026 $0.00688
Opus 5.5 $0.00010 $0.00275
Sonnet 5.5 $0.00005 $0.00138
Haiku 4.5 $0.00003 $0.00069

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

Security

Grade C, and why

tdd-workflow-skill scanned grade C with 1 finding 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 2mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

When protocol is enabled, this skill defaults to `Iterations: 10` (sufficient for typical single-pass workflows). Override with `Iterations: N` for specific tasks. Safety blocks: `.env`, `node_modules/`, `rm -rf`, `git p
skills/tdd-workflow-skill/SKILL.md · 51 lines

How it starts

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

What I do

Drive the red-green-refactor cycle across languages/frameworks: failing test first → minimal code to pass → refactor under green.

When to use me

New feature work where behavior is specifiable up front; bug fixes (write the failing test that reproduces the bug first); regression hardening.

The cycle (house rules on top)

RED — write ONE failing test for the next smallest behavior; run it, confirm it fails for the RIGHT reason (not a syntax/import error); do not write the implementation while red on a different failure. GREEN — write the MINIMAL code that passes; duplication is acceptable now, premature abstraction is not ("fake it till you make it" → triangulate on the second case). REFACTOR — only with the suite green: remove duplication, improve names, extract structure. Refactor steps never change behavior; if a refactor needs a behavior change, that's a new RED cycle. Next test — one increment per cycle; commit at stable green points.

Core rules: never write production code without a failing test (except trivial glue); never let the suite stay red; test behavior through the public API, not internals; one logical assertion cluster per test; fast suite (slow/integration tests separated, not run per cycle).

Framework hooks (the non-generic part): pytest (pytest-watch/pytest -x -q per cycle; fixtures for arrangement, parametrize for triangulation) · Jest/Vitest (vitest watch, test.each) · Next.js: component tests via Testing Library (user-centric queries), route handlers tested as functions (await POST(request)), App Router E2E only as a final layer.

Related: plan-execution-skill (--gate; its 4b mandates tests for new code before the gate) · testing-subagent (generation).

Iteration Protocol (opt-in)

DO NOT execute any of the following unless AUTORESEARCH_PROTOCOL=1 is set in your environment. When unset, this skill behaves exactly as documented in all sections above; the Iteration Protocol block is descriptive only.

Read the full file on GitHub · 51 lines

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. 2mo ago Changed e33bc0583e82
  2. 2mo ago Changed · -621 lines 74def84a80b2
  3. 3mo ago First seen · 672 lines · 26 tokens per session scan C 14fbda91484d

Subscribe to this mod's changes

tdd-workflow-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 26 tokens to every session and 688 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

tdd-workflow-skill compared with skills from other repositories

tdd-workflow-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-workflow-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0C26Claude Code, Codex
playwrightopenai/openai-agents-pythonSkill31ktodayMITA19Claude Code, Codex
Vibe Coding MasteryLeoYeAI/openclaw-master-skillsSkill2.2k13d agoMITA61Claude Code, Codex
nw-fp-principlesnWave-ai/nWaveSkill63816d agoMITA21Claude Code
nw-divio-frameworknWave-ai/nWaveSkill63816d agoMITA28Claude Code
nw-documentnWave-ai/nWaveSkill63816d agoMITA31Claude Code
nw-dr-review-criterianWave-ai/nWaveSkill63816d agoMITA25Claude Code