Code Review Skill
Use this skill to review code before committing or when refactoring.
Guidelines
Python (FastAPI)
- •Type Hinting: Ensure all functions have type hints.
- •Async: Use
async deffor I/O bound operations. - •Error Handling: Use
try/exceptblocks and return appropriate HTTP exceptions. - •Security: Validate all inputs. No secrets in source code.
Frontend
- •CSS:
- •Check for hardcoded values (use variables).
- •Check for responsiveness (Flexbox/Grid).
- •Ensure aesthetics match the "Premium Design" goal.
- •JS:
- •Ensure no global namespace pollution. Use
const/let. - •Check for console errors handling.
- •Ensure no global namespace pollution. Use
- •Accessibility:
- •Check for
aria-labelson icon buttons. - •
alttags on images.
- •Check for
Documentation
- •Docstrings: Ensure complex logic has docstrings.
- •TODOs: Mark incomplete items with
TODO.