John Ousterhout’s principle: a good module provides “a lot of functionality accessed through a simple interface.” Maximize the ratio of capability to interface surface, and place module boundaries at clean seams — the antidote to architectural entropy (“ball of mud”).

Matt Pocock — Skills for Real Engineers:

Addy Osmani — Agent Skills:

Compound Engineering:

pstack:

  • pstack-architect — screens every design candidate against a shipped red-flag list (shallow modules, information leakage, temporal decomposition, pass-through methods) before synthesis, and compares survivors on interface depth: prefer the design that hides more complexity behind a smaller, simpler public surface.
  • pstack-principle-minimize-reader-load — count the layers between question and answer and the hidden state in the reader’s head; collapse one-caller wrappers and shrink mutable scope.
  • pstack-principle-laziness-protocol — the tie-break when two candidates score level: prefer the cleaner boundary or smaller API.

See Also