code-review

Review a GitHub Pull Request for bugs, security, performance, and code quality. Use when user asks to review a PR or wants pull request feedback. Don't use for reviewing local uncommitted changes, creating new PRs, or merging branches.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-review" with this command: npx skills add helderberto/skills/helderberto-skills-code-review

Review Pull Request

Mode: $ARGUMENTS

If mode is one of the following, adjust the review:

  • BUGS: Focus only on logical or other bugs
  • SECURITY: Focus only on security issues
  • PERFORMANCE: Focus only on performance issues

Pre-loaded context

  • PR details: !gh pr view
  • PR diff: !gh pr diff
  • Changed files: !gh pr diff --name-only

Workflow

  1. Analyze the diff and pre-loaded PR context
  2. Read changed files to understand full context
  3. Review based on mode (or all categories if no mode set)
  4. Provide structured feedback

Output format

Group by severity:

  • Critical - must fix before merge (bugs, security vulnerabilities)
  • Suggestions - improvements worth considering
  • Positives - good patterns to call out

Use file:line references for all findings. Include suggested fix for each critical issue.

See examples.md for output format and review-checklist.md for full checklist.

Rules

  • Review ALL changed files, not just the latest commit
  • Be specific: file:line + issue + suggested fix
  • Separate critical issues from suggestions

Error Handling

  • If gh pr view fails → run gh auth status to verify authentication; ask user for PR number if not on a PR branch
  • If a changed file is deleted in the PR → skip reading it; note it was removed
  • If diff is too large → prioritize changed files with highest risk (auth, payments, data mutation)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

audit-deps

No summary provided by upstream source.

Repository SourceNeeds Review
Security

perf-audit

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review

No summary provided by upstream source.

Repository SourceNeeds Review