test-driven-development

test-driven-development is a skill for Claude Code, Codex from CodeInfinity1/Stram. It costs 26 tokens per session (417 once invoked), scanned A, original, MIT.

A development method that writes a focused test before or alongside the code, then improves the code after the test passes. TDD means test-driven development.

In plain words
What is it for?
Use it for bug fixes, new behavior, parsers, planners, shared interfaces, and other changes where targeted tests can protect against backsliding.
Why use it?
It turns expected behavior into a check that can expose regressions and guide a small, controlled implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for bug fixes, new behavior, parsers, planners, shared interfaces, and other changes where targeted tests can protect against backsliding.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codeinfinity1/stram/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 CodeInfinity1/Stram --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/CodeInfinity1/Stram

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/codeinfinity1/stram/test-driven-development/github.svg)](https://agentmods.dev/skills/codeinfinity1/stram/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/codeinfinity1/stram/test-driven-development"><img src="https://agentmods.dev/badge/skills/codeinfinity1/stram/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/codeinfinity1/stram/test-driven-development"><img src="https://agentmods.dev/badge/skills/codeinfinity1/stram/test-driven-development.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 417 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.00026 $0.00417
Opus 5.5 $0.00010 $0.00167
Sonnet 5.5 $0.00005 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 1mo ago against content hash 033beb721632, 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 1mo 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.

skills/software-engineering/test-driven-development/SKILL.md · 67 lines

What it actually says

Test Driven Development

Purpose

Use tests as executable evidence for behavior changes. The assistant should add or update focused tests before or alongside implementation when the task risk justifies it.

When To Use

Use for bug fixes, new behavior, parser/planner changes, shared APIs, regressions, and any change where a focused test can prevent backslide.

Inputs And Evidence

  • Expected behavior, failing case, existing tests, code under test, and verification command.
  • Current test output before and after implementation.

Tool Map

  • search_workspace
  • read_file
  • run_shell_command
  • python_interpreter
  • write_note
  • diff_render

Workflow

  1. Identify the behavior contract and existing coverage.
  2. Add or update the smallest meaningful failing test when feasible.
  3. Run the targeted test to confirm it fails for the right reason.
  4. Implement the minimal scoped fix.
  5. Run targeted tests, then broader tests when blast radius warrants it.
  6. Refactor only after green tests and only when it reduces real complexity.

Native Implementation Boundaries

  • Use the repo's own test framework and Stram tools.
  • Do not import external reference TDD scripts.
  • Do not replace model-led planning with hardcoded test-name routing.

Safety And Approval

  • Do not delete tests to pass.
  • Avoid broad snapshots unless they capture real behavior.
  • Preserve unrelated user changes.

Verification

  • Report red and green commands when both were run.
  • If a red run is skipped, say why.
  • Mention any untested residual risk.

Failure Modes

  • Writing a test that only checks implementation detail.
  • Overfitting to one brittle assertion.
  • Running too narrow a check for a shared contract.

References

  • Shortlist item: test-driven-development.
  • Upstream inspiration: external reference TDD reference only.
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. 1mo ago First seen · 67 lines · 26 tokens per session scan A 033beb721632

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository CodeInfinity1/Stram (11 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 417 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

testing

TDD/BDD testing principles. Use when writing tests, reviewing test coverage, setting up testing, or discussing test strategy and test architecture.

TheBeardedBearSAS/claude-craft · 0 tokens

agent-test-generator

Specialist subagent: Generates comprehensive test suites using TDD patterns. Use only when the user explicitly asks for tests, improved coverage, or test-first development.

travisjneuman/.claude · 36 tokens

refactor-ops

Safe refactoring patterns - extract, rename, restructure with test-driven methodology and dead code detection. Use for: refactor, refactoring, extract function, extract component, rename, move file, restructure, dead code, unused imports, code smell, duplicate code, long function, god object, feature envy, DRY…

0xDarkMatter/claude-mods · 95 tokens

testing-ops

Cross-language testing strategies and patterns. Triggers on: test pyramid, unit test, integration test, e2e test, TDD, BDD, test coverage, mocking strategy, test doubles, test isolation.

0xDarkMatter/claude-mods · 47 tokens

pair-programming

AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

frankxai/claude-skills-library · 85 tokens

ai-observability-promptfoo

Testing and evaluation framework for LLM prompts and applications -- promptfooconfig.yaml, assertions, model-graded evals, red teaming, CI/CD integration, custom providers, and comparative evaluation.

agents-inc/skills · 46 tokens