tdd-stub-first

tdd-stub-first is a skill for Claude Code, Codex from MatrixFounder/Agentic-development. It costs 16 tokens per session (315 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

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matrixfounder/agentic-development/tdd-stub-first
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 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/github.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/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-stub-first

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 315 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.00016 $0.00315
Opus 5.5 $0.00006 $0.00126
Sonnet 5.5 $0.00003 $0.00063
Haiku 4.5 $0.00002 $0.00032

Measured 2mo ago against content hash 0870bcd471f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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 · 29 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).
  5. Scope: the stubbing phase touches the component — its files, classes, tests and fixtures. Proxy or container configuration, resource limits, performance budgets and hardening are not stubs; they are separate tasks reviewed as infrastructure.

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. 2mo ago Changed · +3 lines 0870bcd471f5
  2. 3mo 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 (9 stars, last pushed 23d ago), licensed Apache-2.0. It adds 16 tokens to every session and 315 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-08-31.

Related

tdd-stub-first compared with skills from other repositories

tdd-stub-first next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-stub-firstMatrixFounder/Agentic-developmentSkill923d agoApache-2.0A16Claude Code, Codex
08-debugai-driven-dev/frameworkSkill593todayMITA52Claude Code
workflowambient-code/platformSkill13311d agoMITA16Claude Code
chimera-write-the-check-before-the-codebrcampidelli/chimera-agentSkill32yesterdayApache-2.0A32Claude Code, Codex
Learn what defines effective BDD scenariosIntai/story-flowSkill163d agoMITA22Claude Code
ap-policiesagentproto/tsSkill11todayApache-2.0A83Claude Code, Codex
systematic-debuggingmetaspartan/cybaraSkill418d agoMITA40Claude Code, Codex