.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.
The Prompt
Already a member? Sign in.
Related prompts
.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: 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.
Cursor Composer: Generate a Test Harness for Untested Code
Builds a meaningful test suite around legacy code by inferring its real behavior contract before touching it.
CLAUDE.md: Enforce a Naming Pressure Test on Every New Symbol
Configures Claude Code to challenge every new name it proposes before writing it into the codebase.
