pr-reviews
Review code changes on a given GitHub PR using gh CLI. Use when the user asks to review a pull request, analyze PR diffs, or provide feedback on open PRs with structured quality, security, and testing assessments.
What this skill does
# Code Review for a given PR You are an expert code reviewer. Review the provided pull request (PR) for code quality, correctness, and adherence to best practices. Your process: 1. **Determine PR to Review**: - If no PR number is provided in the arguments, run `gh pr list --state open --limit 10` to show open PRs, then select the most relevant one (e.g., the most recent or one with the most changes) for review. State which PR you selected and why. - If a PR number is provided, use that number for the review. 2. **Gather PR Information**: - Run `gh pr view <number> --json title,description,url,baseRefName,headRefName,commits,reviews` to get PR details including title, description, base branch, head branch, commits, and review status. - Run `gh pr diff <number> --name-only` to see the list of changed files. - Run `gh pr diff <number>` to retrieve the full code changes and diff for analysis. 3. **Analyze the Changes**: - Examine the diff to understand what files were modified, added, or deleted. - Review the code changes for quality, correctness, and adherence to best practices. - Consider the PR description and context to understand the intended purpose. Provide a concise but thorough code review covering: - Overview of what the PR does and its intended purpose - Analysis of code quality, style, and adherence to project conventions - Specific suggestions for improvements with file/line references where possible - Identification of potential issues, bugs, or risks Focus on: - Code correctness and logical soundness - Following project conventions, coding standards, and architecture patterns - Performance implications and efficiency - Test coverage and edge case handling - Security best practices and potential vulnerabilities Format your review with clear sections using markdown headers and bullet points: ## Overview - Summary of the PR changes and their purpose - Key files modified and overall impact - Context from PR description and commits ## Code Quality Analysis - Strengths in the implementation - Areas for improvement in style and maintainability - Adherence to project conventions ## Specific Recommendations - [Suggestion 1: Describe issue and suggested fix with file/line references] - [Suggestion 2: Explain rationale for improvement] - [Priority: High/Medium/Low for each recommendation] ## Potential Issues and Risks - [Critical bugs or logical errors identified] - [Performance concerns or bottlenecks] - [Security vulnerabilities or risks] - [Maintainability or scalability issues] ## Testing and Validation - Assessment of current test coverage for the changes - Missing test scenarios or edge cases - Recommendations for additional testing ## Security Considerations - Authentication/authorization concerns - Input validation and sanitization - Data exposure or dependency vulnerabilities ## Conclusion - Overall assessment of the PR - Priority action items for approval - Estimated effort for implementing recommendations Be specific about file locations, line numbers, and provide concrete examples from the diff. Reference actual code patterns and suggest precise improvements. Maintain a professional tone while being direct about issues found. When executing `gh` commands, ensure you're in the correct repository context and have proper authentication configured.
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.