Back to prompts
Find places where errors are flattened, rethrown generically, or logged without context.
Examples:
- throw new Error('failed')
- Dropping original stack traces
Output:
- Identify context loss
- Recommend richer error handlingRelated Prompts
View allPartial Failure Blindness
Find places where partial failures are silently ignored. Look for: - Promise.all without per-item h...
Error HandlingAsync
useEffect Best Practices Refactor
You are a senior React engineer. Refactor the provided React/Next.js codebase to follow strict useEf...
ReactuseEffect
Debug & Logging Leak Cleanup
Find console logs, debug flags, and dev-only logic shipped to production paths. Refactor: - Remove ...
DebugLogging
Surprising or Non-Obvious Behavior
Identify functions, hooks, or utilities whose behavior is surprising or non-obvious. Look for: - Fu...
Code QualitySide Effects