name: code-review description: Review code changes for performance, tree-shaking, bundle size, API ergonomics, and TypeScript best practices disable-model-invocation: true argument-hint: [files or branch] context: fork agent: code-reviewer
Code Review
Review the code changes for performance, tree-shaking compatibility, bundle size impact, API ergonomics, TypeScript best practices, and project conventions.
Changes to Review
!git diff --stat
!git diff --cached --stat
Detailed diff
!git diff
!git diff --cached
Recently changed files (last commit)
!git diff HEAD~1 --stat
Arguments
$ARGUMENTS
Instructions
- If
$ARGUMENTSspecifies particular files, focus the review on those files. Otherwise, review all pending changes (staged + unstaged) shown above. - If there are no pending changes, review the most recent commit (
git diff HEAD~1). - Read each changed file in full to understand context beyond the diff.
- Check related files (types, tests, index.ts barrel exports) for completeness.
- Apply all review criteria from your system prompt.
- Produce the structured review report.