Skip to content
Back to skills

Tdd Stub First

ASecurity

Test-Driven Development with Stub-First approach.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
ai-agentstestingperformance

Security analysis

A100/100

Scanned October 9, 2026

npx -y skills add MatrixFounder/Agentic-development --skill tdd-stub-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd Stub First?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tdd Stub First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/matrixfounder-tdd-stub-first/badge)](https://www.skillsdirectory.com/skills/matrixfounder-tdd-stub-first)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tdd-stub-first
description: Test-Driven Development with Stub-First approach.
tier: 1
version: 1.1
---
# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…