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 AllLegacy Code Modernization Architect
Rewrites legacy, spaghetti, or outdated code into clean, modular, and modern syntax utilizing current best practices.
refactoringclean-codemodernization
View Prompt
Legacy Code Modernizer and Refactorer
Converts outdated legacy code into modern, clean, and highly performant code following industry best practices.
refactoringclean-codelegacy-modernization
View Prompt
Legacy Code Refactoring and Modernization
Transforms outdated, legacy code into clean, modular, and performant code adhering to modern programming standards and best practices.
refactoringtechnical-debtclean-code
View Prompt