tdd-stub-first

Create stubbed methods and end-to-end tests before implementing logic.

4|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/MatrixFounder/Agentic-development --skill tdd-stub-first
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-stub-first
Source: https://github.com/MatrixFounder/Agentic-development/tree/main/.agent/skills/tdd-stub-first
Command: npx skills add https://github.com/MatrixFounder/Agentic-development --skill tdd-stub-first

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the development process by enforcing a Test-Driven Development (TDD) approach, specifically using the "Stub-First" strategy to ensure robust and verifiable code from the outset.

Core Features & Use Cases

  • Structured Development: Guides developers through creating stubs, implementing logic, and writing comprehensive tests.
  • Early Verification: Ensures that tests pass against stubs before full implementation, catching design flaws early.
  • Use Case: When developing a new feature, use this Skill to first define the expected behavior through stubs and end-to-end tests, then implement the actual code, and finally add detailed unit tests.

Quick Start

Follow the TDD stub-first strategy to develop the new user authentication module.

Frequently Asked Questions about tdd-stub-first

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is stub-first test-driven development and how does it work?

Stub-first test-driven development is a TDD methodology where you create file structures, stubbed methods with placeholder logic, and end-to-end tests against these stubs before actual implementation to catch design flaws early.

How do I implement a TDD workflow using the stub-first strategy?

To implement a TDD workflow using the stub-first strategy, define expected behavior through stubs and end-to-end tests first, implement the actual code logic next, and finally add detailed unit tests.

Does test-driven development with stubs require mocking LLMs for verification?

Test-driven development with stubs explicitly enforces rules against mocking LLMs. Instead, it mandates regression testing to ensure robust and verifiable code throughout the development process.

When should I use a stub-first methodology for software development?

You should use a stub-first methodology when developing new features to ensure early verification. It streamlines the process by validating end-to-end tests pass against stubs before you write full implementations.

What are the limitations of using stubbed methods in test-driven development?

Stubbed methods in test-driven development contain placeholder logic, meaning they only verify structural design and end-to-end test flow early on, requiring full implementation and detailed unit tests later for actual code coverage.