.cursorrules: Flag Any Variable Name That Lies About Its Type
Adds a Cursor rule that catches misleading variable names where the name implies one type but the value is another.
The Prompt
Already a member? Sign in.
Related prompts
Extract Type Safety Gaps From TypeScript Codebase
Finds TypeScript files where `any` types, missing type annotations, or unsafe casts hide potential runtime errors.
Cursor: Find Every Type Cast That Discards Information
Locate all coercions and casts that silently lose precision, nullability, or domain meaning at runtime.
Type Safety Regression Detector
Finds TypeScript type errors introduced in recent commits and suggests fixes.
.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.
Pairs with, from the journal
