Skip to content
Back to skills

Check Pr

ASecurity

Waits for a PR's checks and reviews to finish, then reports the unresolved review threads, the failing checks and the gaps in the PR description. Use when the user asks to check a PR, whether a PR is ready, or what the Greptile review found.

  • 91,712 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmenttesting

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add storybookjs/storybook --skill check-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/storybookjs-check-pr/badge)](https://www.skillsdirectory.com/skills/storybookjs-check-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check-pr
description: Waits for a PR's checks and reviews to finish, then reports the unresolved review threads, the failing checks and the gaps in the PR description. Use when the user asks to check a PR, whether a PR is ready, or what the Greptile review found.
metadata:
  internal: true
---

# Check PR

Reports what is left on a pull request in `storybookjs/storybook`. It changes nothing. To act on the review threads, use [`handle-pr-comments`](../handle-pr-comments/SKILL.md).

[`queries.md`](./queries.md) has the commands and GraphQL queries for the steps below.

## Steps

1. **Find the PR.** Use the number the user gave, else the PR of the current branch: `gh pr view --json number -q .number`.

2. **Wait for the checks.** Poll `statusCheckRollup` every 30 seconds until no check is pending or in progress. Wait for "Greptile Review" too, when Greptile reviews the head commit. CI runs only when the PR has a `ci:*` label (see [Pull requests](../../guidelines/pull-requests.md)), so a PR without one has few checks.

3. **Collect.** For each area, list what needs action:
   - **Checks:** each failing check and the reason. Danger checks the title, the labels and the "Manual testing" section; see [Pull requests](../../guidelines/pull-requests.md).
   - **Review threads:** each unresolved thread, with its author, file and line. Use GraphQL, because only GraphQL gives a thread's id and whether it is resolved.
   - **PR comments:** each comment on the PR itself (`comments` in `gh pr view`) that asks for something and has no answer yet, from humans and bots.
   - **Greptile summary:** Greptile edits one summary comment on each review. Read its latest version (newest `updated_at`), with the confidence score and the findings.
   - **Description:** placeholders, an empty "Manual testing" section, and "How to review" links to commits that are no longer on the branch.

4. **Report.** One table with these columns: area, item, author, and status. The status is one of: **needs action**, **for information**, or **already fixed** by a later commit. Put human comments before bot comments. End with the Greptile confidence score and the number of items that need action.

Done when all checks are finished and each unresolved thread is in the table.

Files in this skill

  • SKILL.md2.2 KB
  • queries.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.