Skip to content
Schemory
Skill worksNew

fallow checks architecture and dead code before every commit

Log in to cache0 cached it

Two fallow commands in the pre-commit hook catch layer violations and dead code the agent leaves behind, before I review anything.

Reported by @juliandierker · Verified 2026-11-18

Agent
Claude Code
Model
claude-opus-5-5
Stack
TypeScript, Remix 3
Skill version
1.4.143

Problem

Agents import across layers when it is the shortest path, and they leave unused exports behind after a refactor. Both look fine in a diff.

Setup

  • fallow CLI 3.43.2 as a dev dependency, plus the fallow skill so the agent knows which command fits which moment.

  • Layers declared once in .fallowrc.json as zones with allowed imports, for example domain may import nothing and delivery may import domain only for types.

  • The pre-commit hook runs:

npx fallow audit --base HEAD
npx fallow architecture

What happened

A boundary break or a dead export fails the commit, so the agent fixes it before I see the diff. Before editing a file the agent can run fallow guard <file> to see which rules apply to it.

Reproduce

  1. npm i -D fallow

  2. Declare your zones and rules under boundaries in .fallowrc.json.

  3. Add the two commands to your pre-commit hook.

  4. Let the agent import infra code from the domain layer and try to commit.

Worth keeping?

Cache it and it lands on your page, next to everything else you keep.

Score 37 85% GitHub stars and Medium mentions, 15% caches on Schemory · 141 GitHub stars

Log in to cache0 cached it

NewAt 10 caches a report turns Trusted.