# Sh PR review

> Sh PR review is an open-source agent skill for developer tools. Security-reviews a GitHub pull request and reports findings as inline comments. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-pr-review
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-pr-review
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill reviews a single GitHub pull request for security problems and returns the results to the PR itself. It first triages the diff to see which vulnerability classes the changed code touches, then runs only the matching specialist checks, so a change with no security-relevant lines finishes quickly without launching analysis.

Findings are classified by whether the pull request introduced them, made an existing flaw worse, or merely sits near it. Only introduced or worsened issues can fail the check, and older issues are listed as warnings. Findings are posted as inline review comments on changed lines, with a summary, and a pass, warning, failure or error commit status is set for branch protection to enforce. Previously posted issues are recognised on later pushes so they are not repeated.

It expects the GitHub CLI and the indra command-line tool, plus permission to comment on and set statuses for the repository. Nothing is posted without an explicit confirmation unless it is run non-interactively with the relevant environment flag.

## When your agent uses it

> Security-review a GitHub pull request, post the result as inline review comments on the PR, and set a pass/fail commit status that branch protection can enforce. Fails the PR for vulnerabilities it introduces or makes worse; passes with a warning for pre-existing ones. Triages the diff first and scales depth to risk, dedupes across re-pushes, and never posts without an explicit yes. Use when reviewing a pull request rather than a whole codebase.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-pr-review)
- [Asks for: Read, Write, Grep, Glob, Bash, Task, Skill](https://github.com/dmdhrumilmistry/indra/blob/HEAD/plugins/indra/skills/sh-pr-review/SKILL.md)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-pr-review)

## Features

- **Diff triage:** Classifies changed files and added lines into vulnerability classes and picks a review depth.
- **Introduced vs. existing:** Separates issues the pull request adds or worsens from older issues it does not touch.
- **Inline review comments:** Anchors findings to changed lines and posts a summary review comment without requesting changes.
- **Commit status gate:** Sets a pass, warning, failure or error status on the head commit that branch protection can enforce.
- **Re-push deduplication:** Recognises findings already posted on the PR so later pushes do not repeat them.
- **Cached re-reviews:** Reuses earlier verdicts for files that have not changed since the last run.

## Good for

- Check a pull request for security issues before merging
- Post security findings as inline comments on a PR diff
- Set a pass or fail security status on a pull request commit
- Re-review a PR after new pushes without repeating old comments
- Review a pull request from another repository by URL

## Install

### Claude Code

This skill ships in the `indra` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra
```

Or copy only this skill to `~/.claude/skills/sh-pr-review`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-pr-review &&
cp -R "$tmp/plugins/indra/skills/sh-pr-review" ~/.claude/skills/sh-pr-review &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sh-pr-review` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sh-pr-review` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-pr-review &&
cp -R "$tmp/plugins/indra/skills/sh-pr-review" ~/.agents/skills/sh-pr-review &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sh-pr-review` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-pr-review` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-pr-review &&
cp -R "$tmp/plugins/indra/skills/sh-pr-review" ~/.cursor/skills/sh-pr-review &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-pr-review` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-pr-review
```

Or copy the folder to `~/.gemini/skills/sh-pr-review` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sh-pr-review`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-pr-review &&
cp -R "$tmp/plugins/indra/skills/sh-pr-review" ~/.copilot/skills/sh-pr-review &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-pr-review` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git
```

Then copy `indra/plugins/indra/skills/sh-pr-review` into your agent's skills folder as `sh-pr-review`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Sh PR review post to the PR automatically?

No. It shows the review and asks for confirmation before posting, unless it is run in non-interactive mode with the required environment variable set.

### What does Sh PR review need installed?

The GitHub CLI, the indra tool, and access to the repository. It checks for indra before starting and stops if it is missing.

### Can Sh PR review request changes or approve the PR?

No. Reviews are always posted as comments, and the commit status is the only enforcement mechanism.

### Which issues cause a failure?

Only introduced or aggravated findings at or above the severity threshold, which defaults to medium. Pre-existing issues are reported as warnings and do not fail the check.

### How do I install Sh PR review in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-pr-review to use it in all your projects, or to .claude/skills/sh-pr-review in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

### Does Sh PR review run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sh PR review?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Sh PR review?

The closest alternatives to Sh PR review are Differential review, PR review, Find bugs, Code review and Review PR.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Differential review](https://ai-powered.com/skills/differential-review): Differential review is an open-source agent skill for security.
- [PR review](https://ai-powered.com/skills/pr-review): PR review is an open-source agent skill for developer tools.
- [Find bugs](https://ai-powered.com/skills/find-bugs): Find bugs is an open-source agent skill for security.
- [Code review](https://ai-powered.com/skills/code-review-aws-solutions): Code review is an open-source agent skill for developer tools.
- [Review PR](https://ai-powered.com/skills/review-pr-tonyghiani): Review PR is an open-source agent skill for developer tools.
- [Thermo nuclear review](https://ai-powered.com/skills/thermo-nuclear-review): Thermo nuclear review is an open-source agent skill for security.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-flutter): Code review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/sh-pr-review
