Audit the module at packages/server/src/modules/$ARGUMENTS[0]/ for compliance with
our architecture rules (see @docs/02-ARCHITECTURE.md Section 4):
Check List
- •No cross-module imports — scan all .ts files for imports from
../other-module/ - •Domain purity — domain/ files must not import Effect, Kysely, Redis, or any framework
- •Port interfaces only — ports/ files must contain only interfaces/types, no implementations
- •Adapter dependencies — adapters/ can import from ports/ and domain/, never reverse
- •index.ts exports — module's index.ts only exports Layer, events, and port interfaces
- •EventBus usage — inter-module communication uses EventBus, not direct function calls
- •Branded types — uses PlayerId, ZoneId etc. from shared/kernel/, not raw strings
Report each violation with file path and line number. End with a compliance score.