.cursorrules: Enforce Dependency Direction Across Module Boundaries
Add a rule that blocks any import violating your intended layer architecture before it gets normalized into the codebase.
The Prompt
Already a member? Sign in.
CLAUDE.md: Enforce Dependency Direction Across Module Boundaries
A CLAUDE.md config that stops Claude from introducing imports that violate your layered architecture.
CLAUDE.md: Enforce Immutable Data Shapes Across Service Boundaries
A CLAUDE.md config that prevents Claude from mutating shared data structures when passing them between services or modules.
.cursorrules: Enforce Error Handling Discipline by Layer
A drop-in .cursorrules block that makes Cursor handle errors differently at the boundary, service, and infrastructure layers.
.cursorrules: Make the AI Defend Every New Dependency
A .cursorrules block that blocks Cursor from adding npm packages without a written cost-benefit defense.