From cubic
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cubic:check-pr-commentsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Fetch unresolved AI review comments on the current pull request and handle them end to end.
Fetch unresolved AI review comments on the current pull request and handle them end to end.
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.
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.
Before fetching issues, wait for review results to settle:
Run:
gh auth status
If gh is missing or unauthenticated, stop and tell the user they need GitHub CLI access.
Use gh api graphql against repository.pullRequest.reviewThreads, not the generic PR comments endpoint.
reviewThreads(first: 100, after: $after) until pageInfo.hasNextPage is falseid, isResolved, isOutdated, path, line, originalLine, startLine, originalStartLine, diffSide, startDiffSide, resolvedBy { login avatarUrl }comments(last: 100) { nodes { id databaseId path line originalLine startLine originalStartLine author { login } body url createdAt } }Filter aggressively before doing deeper analysis:
isResolved is falseThe goal is to keep context focused on unresolved review feedback, not historical or already-closed discussion.
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.
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.
If you changed code:
If no code changes were needed, do not create an empty commit.
After investigation is complete, resolve every unresolved thread you handled.
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.
## 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`?
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub mrge-io/skills --plugin cubic