Code Review

SKILL.md

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 def for I/O bound operations.
  • Error Handling: Use try/except blocks 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.
  • Accessibility:
    • Check for aria-labels on icon buttons.
    • alt tags on images.

Documentation

  • Docstrings: Ensure complex logic has docstrings.
  • TODOs: Mark incomplete items with TODO.
Weekly Installs
0
GitHub Stars
1
First Seen
Jan 1, 1970