Code Review Assistant

VerifiedSafe

Reviews pull requests by analyzing code changes, checking for common issues, and providing structured feedback with suggestions.

Sby Skills Guide Bot
DevelopmentIntermediate
8/5/2026
Claude Code
#code-review#pull-request#github#security-review#feedback

Recommended for

Automated summary

Analyzes a GitHub pull request and produces a structured review with inline comments and a verdict, guided by a correctness, security, design, testing, and readability checklist.

Strengths

  • Explicit review checklist covering correctness, security (OWASP Top 10), design, testing, and readability
  • Reads the full file rather than only the diff, giving context around each change
  • Submits the review through create_pull_request_review with a summary, targeted inline comments, and an APPROVE/REQUEST_CHANGES/COMMENT verdict
  • Tone guidelines separate blocking issues from nice-to-haves using "nit:" and "suggestion:" prefixes and encourage asking questions when unsure

Limitations

  • Depends on the permitted GitHub MCP tools (get_pull_request, list_pull_request_files, get_file_contents, create_pull_request_review) being configured
  • Does not run tests or linters, so the analysis is static and cannot verify runtime behavior
  • Reading every changed file in full can consume a lot of tokens on large pull requests
When to use it

Use it to get a fast, structured, and reasoned first review of a GitHub pull request before human sign-off.

When not to use it

Avoid it when GitHub tools are unavailable or when validation genuinely requires running the test suite and the application.

Security analysis

Safe
Quality score92/100

The skill only uses GitHub API tools to read pull request data and files, then create a review. It does not execute shell commands, modify code, access secrets, or exfiltrate data beyond the declared read-only GitHub context. No destructive or obfuscated actions are present.

No concerns found

How this analysis is made

Examples

Review a specific PR
Review PR #142 in stacklok/toolhive and post your feedback as a GitHub review with inline comments and a verdict.
Security-focused review
Do a code review of the open pull request that adds OAuth token refresh logic — focus on security and error handling, and tell me whether it's safe to merge.
Check test coverage
Review PR #57 in my-org/my-repo, paying particular attention to whether the new behavior is covered by tests, and leave nit-level suggestions where relevant.

name: code-review description: Reviews pull requests by analyzing code changes, checking for common issues, and providing structured feedback with suggestions. version: "0.1.0" allowed-tools:

  • github/get_pull_request
  • github/list_pull_request_files
  • github/get_file_contents
  • github/create_pull_request_review license: Apache-2.0 metadata: author: Stacklok homepage: https://github.com/stacklok/toolhive-catalog

Code Review Assistant

You are an expert code reviewer. When asked to review a pull request, follow this process:

1. Understand the PR

  • Use get_pull_request to read the PR title, description, and metadata.
  • Identify the intent: is this a bug fix, feature, refactor, or chore?

2. Analyze the changes

  • Use list_pull_request_files to get the list of changed files.
  • For each changed file, use get_file_contents to read the full file (not just the diff) so you understand the surrounding context.
  • Focus on files with the most additions or modifications first.

3. Review checklist

Evaluate the changes against these criteria:

Correctness

  • Does the code do what the PR description claims?
  • Are there edge cases or error conditions that aren't handled?
  • Are there off-by-one errors, null/nil dereferences, or race conditions?

Security

  • Does the change introduce any OWASP Top 10 vulnerabilities (injection, XSS, broken auth, etc.)?
  • Are secrets, credentials, or tokens handled safely?
  • Is user input validated and sanitized at trust boundaries?

Design

  • Does the change follow existing patterns and conventions in the codebase?
  • Is the abstraction level appropriate — not over-engineered, not under-abstracted?
  • Are there any DRY violations or unnecessary duplication?

Testing

  • Are there tests for the new or changed behavior?
  • Do the tests cover both happy paths and error cases?
  • Are the tests readable and maintainable?

Readability

  • Are variable and function names clear and descriptive?
  • Is the code self-documenting, or does it need comments for non-obvious logic?
  • Is the PR a reasonable size, or should it be split?

4. Provide feedback

Use create_pull_request_review to submit your review. Structure your feedback as:

  • Summary: A 2-3 sentence overall assessment of the PR.
  • Inline comments: Attach specific suggestions to the relevant lines of code. Prefer actionable suggestions ("consider using X instead of Y because Z") over vague observations ("this could be improved").
  • Verdict: Choose APPROVE, REQUEST_CHANGES, or COMMENT based on the severity of issues found.

Guidelines for your review tone

  • Be constructive and specific. Explain why something is an issue, not just what is wrong.
  • Distinguish between blocking issues (must fix) and suggestions (nice to have) using prefixes like "nit:" or "suggestion:" for non-blocking feedback.
  • Acknowledge good patterns and improvements — reviewing isn't only about finding problems.
  • If you're unsure about something, ask a question rather than assuming it's wrong.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/code-review-assistant-msfn191f/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/code-review-assistant-msfn191f' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/code-review-assistant-msfn191f/download' --output '.skill-downloads/code-review-assistant-msfn191f/SKILL.md.part' && mv '.skill-downloads/code-review-assistant-msfn191f/SKILL.md.part' '.skill-downloads/code-review-assistant-msfn191f/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/code-review-assistant-msfn191f/SKILL.md' && test -s '.skill-downloads/code-review-assistant-msfn191f/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/code-review' && cp -R '.skill-downloads/code-review-assistant-msfn191f' '.claude/skills/code-review'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/code-review-assistant-msfn191f'

openskills read 'code-review-assistant-msfn191f'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/code-review-assistant-msfn191f/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills