docs: move agent rules out of auto-injection, compact CLAUDE.md
The 18 files in .claude/rules were injected into every agent turn — 38 KB of
POS, inventory and attendance rules loaded even while editing CSS. They are now
in docs/agent-rules/ and read on demand.
CLAUDE.md keeps every hard invariant inline (money as piasters, tenancy scoping,
double-entry immutability, migration-first, RTL logical properties, no dead
links, safe_url/clean_html) and indexes the detail, so nothing that protects
code quality was dropped.
Also documents the deployment constraint that governs every migration: all
tenants build from main and the entrypoint runs migrate --force plus db:seed on
every container start.
Net: ~57 KB less agent context per turn.
Co-Authored-By:
Claude Opus 5 <noreply@anthropic.com>
Showing
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
Please register or sign in to comment