Code Quality Review in AI

From the AI Workflow cheat sheet · Feature Completion & Review · verified Jul 2026

Code Quality Review

Review all code generated for the feature

text
QUALITY REVIEW CHECKLIST:

Look for:
- Duplicated code across files
- Inconsistent patterns
- Opportunities to refactor
- Security best practices
- Performance bottlenecks
- Consistent error handling
- Accessibility standards
- Unused imports or dead code

REFACTORING PROMPT EXAMPLE:
"Review these three files:
- app/actions/create-workout.ts
- app/actions/update-workout.ts
- app/actions/delete-workout.ts

I see duplicated error handling and database connection logic.

Suggest refactorings to DRY this up, but don't implement yet.
Consider:
1. Should we extract a workout service?
2. Can error handling be standardized?
3. Are there security checks we should centralize?"

Then review AI's suggestions and decide what's worth doing.
💡 Refactoring improves maintainability for future features
⚡ Look for patterns across multiple files
📌 Ask AI for suggestions, but you make final decisions
🎯 Not every suggestion needs implementation - prioritize
code-reviewrefactoring

More AI tasks

Back to the full AI Workflow cheat sheet