db-infra-mocks
Installation
SKILL.md
DB Infrastructure Mocks
When to Use
- Integration dependencies (RDBMS, Redis, MongoDB) prevent running tests or local development and you need safe, testable alternatives.
Responsibilities
- Locate where clients and connections are constructed and consumed (
database/package). - Propose interface-based seams and minimal mock implementations.
- Provide migration path and verification steps so production behavior remains unchanged.
Rules
- Prefer small interfaces and constructor injection over large refactors.
- Make tests deterministic and avoid network calls.
- Provide unit and integration verification steps for any change.