Seams

Use when you want to unit-test logic but can't without a database, network, clock, or a pile of mocks — or when a function fetches, computes, branches on policy, and writes all in one breath. Splits the decision (pure logic) from the action (I/O and side effects) along the natural seam, so the logic becomes testable with plain values and no mocks. This is functional-core / imperative-shell at the function level — about testability and purity, not about where files live. The proof is a unit test that needs zero mocks. Use when a small change ripples into unrelated behaviors, or when one function knows too much.

mikestangdevs a043dfd 6.4 KB Updated

File contents

mikestangdevs/craft-skills/tree/main/skills/craft/seams commit a043dfd039

Frequently asked questions

npx skillmds@latest add mikestangdevs/seams