Back to Developers
Developersclean-code
Code Smell Detector
Detect code smells and anti-patterns.
Use Case
When maintaining or refactoring legacy code.
AI Prompt
Analyze code for code smells.
Code snippet: [PASTE CODE]
Constraints: [BEHAVIOR MUST NOT CHANGE]
Identify:
1. Code smells
2. Why they are risky
3. Refactoring suggestions
4. Tests to add
Example Output
God function detected. Extract smaller functions and add unit tests.
Related Prompts
View AllProduction Debugging Assistant
Debug production issues with limited logs and incomplete information.
debuggingproductionincident
View Prompt
Intermittent Bug Root Cause Analyzer
Identify root causes of bugs that occur randomly.
bugsdebugging
View Prompt
Error Message Explainer
Explain complex error messages in simple terms.
errorslearning
View Prompt