Rule Architecture

Colocate Related Code

Keep related code close together in the file system

organizationstructureproximity
CLAUDE.md

Keep related code close together in the file system. Tests next to source files, styles next to components, types next to implementations. Minimize the distance between things that change together.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl