code-review
Code Review
Before starting, locate, read, and apply these skills:
language- Relevant
testing,practices, andpackagesskills when applicable
Process
1. Establish context
Read the task, referenced specification, documentation, test cases, repository instructions, and available implementation context. Inspect the working tree without modifying it. For a standalone review, use the supplied base Git ref and optional target (default HEAD), resolve both refs, and review the complete diff from their merge base. When invoked by implementation without refs, review its staged and unstaged changes against the starting state if that state can be established. Request missing information when the review range or task intent cannot be determined reliably; never guess or claim to have reviewed unidentifiable changes.
2. Review the changes
Read and apply review analysis. Trace each material change from its entry point through the relevant contracts, state, dependencies, error handling, UI, and tests. Read the applicable rules in ../implementation/rules/code/ before judging conventions: architecture, general conventions, naming, destructuring, and types as relevant; components, hooks, forms, state management, and mocks when changed. Apply testing and other shared rules only when relevant. A checklist item is not a finding by itself.
3. Report findings
Start with a concise summary of the reviewed range, task intent, and limitations. For Git refs, include the merge-base, target, and resolved hashes so the range is reproducible. Do not claim to have inspected changes or run checks that were unavailable.