.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.
The Prompt
Already a member? Sign in.
Cursor .cursorrules: Enforce Consistent Error Handling
Generate a .cursorrules block that forces Cursor to write error handling the same way every time.
.cursorrules: Enforce Test-First Discipline Without the Lecture
A .cursorrules block that makes Cursor refuse to write implementation code until the test exists and fails for the right reason.
.cursorrules: Forbid Silent Catches and Swallowed Errors
A .cursorrules block that makes Cursor refuse to write try/catch blocks that hide failure from the caller.
.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.