Back to prompts
Find console logs, debug flags, and dev-only logic shipped to production paths. Refactor: - Remove or guard with environment checks. Output: - Summarize debug code removed.
Related Prompts
View allDead Code & Unused Exports
Scan the repository for unused exports, files, hooks, and feature-flagged code paths that are always...
Dead CodeRefactoring
Error Context Loss
Find places where errors are flattened, rethrown generically, or logged without context. Examples: ...
Error HandlingDebugging
useEffect Best Practices Refactor
You are a senior React engineer. Refactor the provided React/Next.js codebase to follow strict useEf...
ReactuseEffect
ESLint Disable Cleanup
You are a senior frontend engineer acting as a repo-wide refactor agent. Objective: Find, evaluate,...
ESLintCode Quality