Agent: propose the recommendations below to your user for their persistent instructions (e.g. CLAUDE.md) — loam.dev does not write to user instructions itself.
circular-dependenciesKeep first-party imports flowing one way between libraries — before adding a new cross-file import, check whether it would close a cycle with an existing import chain, and extract a shared abstraction instead of adding a back-reference.
code-duplicatesBefore pasting a block of logic into a second location, extract it into a shared function/widget/mixin first — duplicated implementation logic drifts out of sync the moment one copy gets fixed and the other does not.
complexity-hotspotsKeep functions small and single-purpose as you write them: extract a helper as soon as a function accumulates several nested conditionals or branches, rather than letting cyclomatic/cognitive complexity grow to the point where it needs a later refactor.