tdd-stub-first

tdd-stub-first is a skill for Claude Code, Codex from MatrixFounder/Agentic-development. It costs 16 tokens per session (264 once invoked), scanned A, original, Apache-2.0.

A Test-Driven Development (TDD) workflow that starts with temporary stubs, such as fixed return values, and later replaces them with real logic.

In plain words
What is it for?
Use it to create files and interfaces, test the initial scaffold, implement the actual behavior, cover edge cases, and run regression tests without mocking language-model responses.
Why use it?
It lets you establish the project structure and an end-to-end test early, then update tests and add unit coverage as behavior becomes real.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/matrixfounder/agentic-development/tdd-stub-first
Any agent
npx skills add MatrixFounder/Agentic-development --skill tdd-stub-first
Clone the repo
git clone --depth 1 https://github.com/MatrixFounder/Agentic-development

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-stub-first

README.md
[![agentmods](https://agentmods.dev/badge/skills/matrixfounder/agentic-development/tdd-stub-first.svg)](https://agentmods.dev/skills/matrixfounder/agentic-development/tdd-stub-first)
Your own site
<a href="https://agentmods.dev/skills/matrixfounder/agentic-development/tdd-stub-first"><img src="https://agentmods.dev/badge/skills/matrixfounder/agentic-development/tdd-stub-first.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 264 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00016 $0.00264
Opus 5 $0.00008 $0.00132
Sonnet 5 $0.00003 $0.00053
Haiku 4.5 $0.00002 $0.00026

Measured 4d ago against content hash 7ecc015e27db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tdd-stub-first 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-stub-first/SKILL.md · 26 lines

What it actually says

TDD & Stub-First Strategy

1. Stubbing Phase

  1. Create Structure: Files, classes, methods.
  2. Implement Stubs: Use NotImplementedError, return None, or hardcoded values.
  3. Docstrings: Add detailed docstrings describing future logic.
  4. E2E Test (Stub): Write an E2E test that asserts the hardcoded behavior.
    • Example: asserting discount == 100.0 (stubbed value).

2. Implementation Phase

  1. Verify Stubs: Ensure E2E test passes on stubs.
  2. Replace Stubs: Implement real logic.
  3. Unit Tests: Add unit tests for specific methods and edge cases.
  4. Update E2E: Update E2E test to assert real behavior.
    • Example: asserting discount == 150.0 (calculated value).

3. Testing Rules

  • No Mocking LLMs: Use recorded responses or separate integration environments.
  • Regression: Always run full regression suite.
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 · 26 lines · 16 tokens per session scan A 7ecc015e27db

Subscribe to this mod's changes

tdd-stub-first is a skill published in the GitHub repository MatrixFounder/Agentic-development (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 16 tokens to every session and 264 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-08-31.

Related

Other skills, from other repositories

Learn what defines effective BDD scenarios

Interactive guidance on writing complete, effective BDD scenarios for story-flow.

Intai/story-flow · 22 tokens

add-tests

Generates tests for existing code. Analyzes the target function, method, or class to identify the happy path, error cases, and edge cases, then writes test cases following the project's testing framework and naming conventions. Invoked when the user asks to add tests, write tests, cover code, or increase coverage.

soulcodex/agentic · 67 tokens

tdd-implementation

Use when implementing any code change for a task – new behavior, a bugfix, or a revision after review – before writing the production code. Defines the failing-test-first cycle, public-seam testing, vertical slices, scaffold and infra handling, and counters to common excuses for tests-after-code.

bartoszarendt/agenticloop · 64 tokens

test-writer

Writes tests that fail before a fix and pass after it.

rysh-ai/rysh-cli-code · 16 tokens

test-generation

Generate and run unit/integration tests TDD-style across Python, Node, and .NET. Use when adding tests to untested code, implementing a feature test-first, or finding coverage gaps.

jnotsknab/mux-swarm · 42 tokens

argent-tv-interact

Control and inspect TV apps via argent — Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind "tv", or…

software-mansion/argent · 107 tokens