Agent Skill · cubic

check-pr-comments

Fetches unresolved AI review comments on the current pull request, decides which issues are real and worth addressing, fixes the worthwhile ones, commits and pushes the changes, and resolves the reviewed threads. Use when the user asks to check all PR comments, refers to PR comments or issues, or wants PR review feedback handled end to end.

Provider: cubic Path in repo: check-pr-comments/SKILL.md

Skill body

Check PR Comments

Fetch unresolved AI review comments on the current pull request and handle them end to end.

When To Activate

Inputs

Instructions

Before doing anything else, open with one short line that explicitly says you are using the cubic check-pr-comments skill so the user knows this workflow was activated.

1. Identify the PR

If a PR number was provided, use it. Otherwise, detect it:

git remote get-url origin                     # extract owner/repo
git branch --show-current                     # current branch
gh pr view --json number --jq .number         # find PR number

If no PR is found, tell the user to push their branch and open a PR first.

2. Wait for PR review completion

Before fetching issues, wait for review results to settle:

3. Check GitHub CLI access

Run:

gh auth status

If gh is missing or unauthenticated, stop and tell the user they need GitHub CLI access.

4. Fetch unresolved review threads only

Use gh api graphql against repository.pullRequest.reviewThreads, not the generic PR comments endpoint.

Filter aggressively before doing deeper analysis:

The goal is to keep context focused on unresolved review feedback, not historical or already-closed discussion.

5. Decide which issues are real and worth addressing

For every issue returned, read the relevant code at the flagged location and assess:

Make the decision yourself. Do not stop to ask the user which issues to fix.

Use this default decision rule:

When there are multiple independent issues, use sub-agents where available to verify them in parallel.

6. Fix the worthwhile issues

Apply fixes for every issue you decided is worth addressing.

Match existing codebase patterns. After editing, run the relevant validation for the touched files.

At minimum, do the checks that fit the repo:

If a proposed fix is not safe after investigation, leave the code unchanged for that issue and include it in the final summary under discussion or unresolved outcome as appropriate.

7. Commit and push when code changed

If you changed code:

If no code changes were needed, do not create an empty commit.

8. Resolve the reviewed threads without replying

After investigation is complete, resolve every unresolved thread you handled.

9. Report back with the outcome

Present a concise summary grouped by outcome:

For each issue include: file, line, one-line summary, and the reason for the outcome.

If you created a commit, include the commit hash and branch name in the summary.

If there are any discussion items, ask the user about them at the very end after reporting everything else.

Output Format

## cubic PR Review — #142

Using the cubic check-pr-comments skill.

### Fixed and resolved

| # | File | Line | Summary | Result |
|---|------|------|---------|--------|
| 1 | src/auth.ts | 45 | SQL injection in query builder | Fixed, committed, pushed, and resolved |

### Resolved without code changes

| # | File | Line | Summary | Result |
|---|------|------|---------|--------|
| 2 | src/utils.ts | 12 | Unused import | Already fixed in branch, resolved thread |
| 3 | src/api.ts | 88 | Missing error handling | Not worth changing as written, resolved thread |

### Needs discussion

| # | File | Line | Summary | Result |
|---|------|------|---------|--------|
| 4 | src/billing.ts | 64 | Retry policy for failed charges | Risky product tradeoff, left for user decision |

Commit: `abc1234` on `feature/my-branch`

I handled everything else I could safely. Should I also change the billing retry policy in `src/billing.ts:64`?

Skill frontmatter

allowed-tools: Bash

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/check-pr-comments"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.