Agent SkillsAgent Skills
mgkyawzayya

code-review-checklist

@mgkyawzayya/code-review-checklist
mgkyawzayya
1
0 forks
Updated 4/1/2026
View on GitHub

Review code changes for correctness, security, performance, and maintainability. Use for PR reviews, code audits, pre-merge checks, or quality validation of Laravel + React code. EXCLUSIVE to reviewer agent.

Installation

$npx agent-skills-cli install @mgkyawzayya/code-review-checklist
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Path.claude/skills/code-review-checklist/SKILL.md
Branchmain
Scoped Name@mgkyawzayya/code-review-checklist

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: code-review-checklist description: | Review code changes for correctness, security, performance, and maintainability. Use for PR reviews, code audits, pre-merge checks, or quality validation of Laravel + React code. EXCLUSIVE to reviewer agent. allowed-tools: Read, Grep, Glob, Bash

Code Review Checklist

Exclusive to: reviewer agent

Validation Loop (MANDATORY)

Before completing any review, verify the codebase passes all checks:

composer test           # All PHP tests pass
npm run types          # No TypeScript errors
npm run lint           # No linting errors
./vendor/bin/pint --test  # PHP style OK

Report any failures as Critical findings.

Instructions

  1. Review against project standards in docs/code-standards.md
  2. Run through the checklist below
  3. Report issues by severity (Critical β†’ Warning β†’ Suggestion)

Review Checklist

βœ… Correctness

  • Logic handles edge cases
  • Error handling is appropriate
  • Types are correct (no any unless justified)
  • Tests cover new/changed behavior
  • No dead code or unused imports

πŸ”’ Security (OWASP)

  • No secrets or credentials in code
  • User input validated and sanitized
  • Authorization checks in place
  • No SQL injection (use Eloquent/query builder)
  • No XSS (proper escaping, sanitization)
  • CSRF protection enabled
  • Rate limiting considered

⚑ Performance

  • No N+1 queries (use eager loading: with())
  • No unnecessary database calls
  • Large datasets are paginated
  • Indexes exist for filtered/joined columns

🧹 Maintainability

  • Follows patterns in docs/code-standards.md
  • Names are clear and consistent
  • No unnecessary complexity
  • DRY β€” no copy-paste duplication

🎨 Frontend

  • Uses existing shadcn/ui components
  • Loading and error states handled
  • Accessible (keyboard, labels, contrast)
  • Responsive (mobile + desktop)

πŸ“ Documentation

  • Code comments for non-obvious logic
  • Docs updated if behavior changed
  • Types documented with JSDoc if complex

Laravel Security Checks

CheckVerify
Mass assignment$fillable or $guarded defined
AuthorizationPolicy or Gate used
ValidationFormRequest with rules
CSRF@csrf in forms
SQL injectionNo raw queries with user input

React Security Checks

CheckVerify
XSSNo dangerouslySetInnerHTML
PropsTypeScript interfaces used
SecretsNo sensitive data in client

Severity Guide

LevelCriteriaAction
🚨 CriticalSecurity flaw, data loss, breaks functionalityBlock merge
⚠️ WarningPerformance issue, code smell, missing testRequest fix
πŸ’‘ SuggestionStyle improvement, better patternOptional

Output Format

## πŸ” Review Summary
[One paragraph overview]

## 🚨 Critical (must fix)
1. [Issue]: [File:Line] β€” [Why critical]

## ⚠️ Warnings (should fix)
1. [Issue]: [File:Line] β€” [Recommendation]

## πŸ’‘ Suggestions (nice to have)
1. [Suggestion]: [File:Line] β€” [Improvement]

## βœ… What's Good
- [Positive observation]

Examples

  • "Review this PR before merge"
  • "Check this code for security issues"
  • "Audit changes for performance"