testing-mock-discipline
Installation
SKILL.md
Testing Mock Discipline
Overview
Use this skill to evaluate test quality, reduce brittle over-mocking, and move teams toward high-confidence tests through dependency injection, realistic fakes, and integration coverage.
Workflow
1. Map the System Under Test
Identify what behavior must be trusted in production, then list dependencies by type:
- Pure logic: deterministic transforms/calculations.
- Internal collaborators: domain services/repositories/adapters.
- IO boundaries: filesystem, DB, network, queues, clock, randomness.
State which dependencies are currently global singletons or imported directly.
Related skills