What problem does it solve?
Code reviews are essential to catch defects, security risks, and adherence to Darkroom standards before changes are merged. This skill provides a structured, repeatable review workflow that guides reviewers through TypeScript, React, and architectural checks to improve code quality and long-term maintainability.
Core Features & Use Cases
- TypeScript checks: ensure no any types, use unknown where appropriate, strict mode, proper interface/type exports, and justified type assertions.
- React patterns: prefer server components by default, use 'use client' only when needed, leverage proper wrappers for image and links, and avoid unnecessary memoization where the React compiler can optimize.
- Performance & Security: flag potential N+1 queries, ensure input validation at boundaries, guard against secrets or credentials in code, and avoid unsafe DOM interactions.
- Architecture & Best Practices: verify correct file placement, clear separation of concerns, and consistent naming conventions across the codebase.
- Use Case: Prior to merging a PR, run a comprehensive review to surface critical issues and actionable improvements, with suggested fixes.
Quick Start
Initiate a full code review on the latest changes and return a prioritized list of issues.