code-review-checklist
Checklist for security, correctness, and performance review. Use when reviewing PRs, checking for secrets/injection, verifying error handling, or auditing N+1 queries.
What this skill does
# Code Review Checklist Structured approach to reviewing code changes. ## When to Use This Skill | Use this skill when... | Use something else instead when... | |------------------------|------------------------------------| | Walking a priority-ordered manual review checklist | Running a full delegated review pass → `code-review` | | Hunting for hardcoded secrets, injection, or N+1 query patterns | Scanning specifically for anti-patterns → `code-antipatterns` | | Verifying error handling and edge cases in a PR diff | Targeting swallowed errors directly → `code-hidden-failures --track errors` | | Applying a deterministic checklist to a small change | Refactoring after the checklist surfaces issues → `code-refactor` | ## Review Priority Order 1. **Security** (Critical) - Vulnerabilities, secrets, injection 2. **Correctness** (High) - Logic errors, breaking changes 3. **Performance** (Medium) - Inefficiencies, resource leaks 4. **Quality** (Medium) - Maintainability, readability 5. **Style** (Low) - Formatting, naming (should be automated) ## Security Checklist ### Secrets & Credentials - [ ] No hardcoded API keys, passwords, tokens - [ ] No credentials in logs or error messages - [ ] Secrets loaded from environment/vault ### Injection Vulnerabilities - [ ] SQL queries use parameterized statements - [ ] User input is sanitized before HTML output (XSS) - [ ] Shell commands don't include user input (command injection) - [ ] File paths are validated (path traversal) ### Authentication & Authorization - [ ] Auth checks on all protected endpoints - [ ] Proper session handling - [ ] Secure password handling (hashing, not plaintext) ### Data Exposure - [ ] Sensitive data not logged - [ ] API responses don't leak internal details - [ ] Error messages don't expose system info ## Correctness Checklist ### Logic - [ ] Edge cases handled (null, empty, boundary values) - [ ] Error conditions handled appropriately - [ ] Async operations properly awaited - [ ] Race conditions considered ### Breaking Changes - [ ] API contracts maintained - [ ] Database migrations are reversible - [ ] Feature flags for risky changes ### Testing - [ ] New code has tests - [ ] Tests cover error paths, not just happy path - [ ] Existing tests still pass ## Performance Checklist ### Efficiency - [ ] No N+1 queries - [ ] Appropriate data structures used - [ ] No unnecessary loops or iterations - [ ] Caching considered for expensive operations ### Resources - [ ] Database connections closed/pooled - [ ] File handles closed - [ ] No memory leaks (event listeners removed, etc.) ### Scale - [ ] Works with realistic data volumes - [ ] Pagination for large result sets - [ ] Timeouts on external calls ## Quality Checklist ### Readability - [ ] Clear, descriptive names - [ ] Functions do one thing - [ ] No overly complex conditionals - [ ] Comments explain "why", not "what" ### Maintainability - [ ] DRY (no copy-paste duplication) - [ ] Appropriate abstractions - [ ] Dependencies are justified - [ ] No dead code ### Consistency - [ ] Follows project patterns - [ ] Matches existing code style - [ ] Uses established utilities/helpers ## Review Output Format ```markdown ## Review: [PR Title] **Risk Level**: LOW | MEDIUM | HIGH | CRITICAL ### Critical Issues 1. [Category] Description (file:line) - Impact: What could go wrong - Fix: Specific recommendation ### Suggestions 1. [Category] Description (file:line) - Why: Reasoning - Consider: Alternative approach ### Positive Notes - [Recognition of good patterns] ``` ## Quick Checks For fast reviews, at minimum check: 1. Any secrets or credentials? 2. Any SQL/command injection? 3. Are error cases handled? 4. Do tests exist for new code?
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.