Agent Skills: testable-architecture

Decide how to separate logic from a database, queue, cache, HTTP API, clock, file system or random source for tests, fuzzing, coverage and model checking, and what a fake of that infrastructure must model to stay honest. Covers ports and adapters, functional core, imperative shell, sans-I/O (bytes in, events out, no I/O), Nullables (an off switch for infrastructure in production code; only with the user's approval) and effect systems; the order of doubles; contract tests for the fake and the real adapter; fault injection; deterministic simulation; seams in legacy code. Use before testing, fuzzing or modelling code that touches infrastructure. Triggers: test double, fake, mock, Testcontainers, port, hexagonal, inject the clock, contract test, verified fake, deterministic simulation, seam, legacy code. Not for closing one coverage gap: use `coverage-closure`. Not for what makes a test trustworthy: use `testing`. Not for a design model (TLA+, Alloy, P, SMT) or its environment model: use `formal-verification`.

ID: geggo98/dotfiles/testable-architecture

Install this agent skill to your local

npx skills add geggo98/dotfiles --skill testable-architecture

Skill Files

The files that make up testable-architecture.

Download Skill

More agent skills