From git
Resolves GitHub PR review comments by extracting issues, verifying with parallel agents using confidence scoring, triaging false positives, applying fixes, and replying.
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin gitThis skill is limited to using the following tools:
Resolve review suggestions using parallel verification and confidence scoring.
Loads GitHub PR review comments into AI session for analysis, triage, and fix planning. Default analysis-only; explicit --mode fix for auto-fixes.
Reviews GitHub PR comments by verifying against current code, categorizes issues, replies with reasoning, implements fixes, and resolves threads in one pass.
Resolves GitHub PR review feedback by evaluating validity, fixing issues in parallel across threads, and marking them resolved. Use for addressing unresolved review comments and threads.
Share bugs, ideas, or general feedback.
Resolve review suggestions using parallel verification and confidence scoring.
Core Principle: Never assume a review comment is correct. Verify every suggestion against actual code before acting.
Detect input mode from $ARGUMENTS:
123) or contains github.com/starts with http — use gh API/ or .md or file exists on disk — parse findings from filePR mode — launch 2 parallel Haiku agents:
Agent A — PR Metadata: Run gh pr view $ARGUMENTS --json number,title,body,baseRefName,headRefName,state,author,reviewRequests,statusCheckRollup and gh pr diff $ARGUMENTS. Return: PR summary, base/head branches, CI status, files changed.
Agent B — Comment Extraction: Fetch all review comments using both endpoints:
gh api repos/{owner}/{repo}/pulls/{pr}/commentsgh api repos/{owner}/{repo}/issues/{pr}/commentsReturn structured list: comment ID, author, type (inline/general), file:line (if inline), body text, resolved status, whether it contains a suggestion code block.
File mode — launch 1 Haiku agent:
Parse the review report file. Extract each finding: description, file:line, category, suggested fix. Detect format from review/skills/code-review/ report template or other common review formats.
Skip conditions: If no unresolved comments/findings exist, report "Nothing to resolve" and stop.
For each unresolved comment/finding, launch a parallel Sonnet agent (batched in groups of 5):
Each agent receives: the comment text, 50 lines of file context around the referenced line, the PR diff (or current branch diff in file mode), and the PR description.
Each agent returns:
Verdict: CONFIRMED | FALSE-POSITIVE | AMBIGUOUS
Category: Blocker | Bug | Code Quality | Style | Question
Confidence: 0-100
Evidence: {what was checked and found}
Suggested resolution: {specific code change or response text}
See WORKFLOW.md for agent prompt template and false positive filtering rules.
Filter findings scoring below 80. Present a structured report:
## Review Issue Triage — {repo} PR #{number}
{N} comments analyzed, {M} actionable
### CONFIRMED ({count})
| # | Comment | File:Line | Category | Confidence | Action |
|---|---------|-----------|----------|------------|--------|
| 1 | {summary} | src/auth.ts:45 | Bug | 92 | Fix: add null check |
### FALSE POSITIVE ({count})
| # | Comment | File:Line | Confidence | Reason |
|---|---------|-----------|------------|--------|
| 2 | {summary} | src/api.ts:12 | 15 | Handled by framework |
### AMBIGUOUS ({count})
| # | Comment | File:Line | Options |
|---|---------|-----------|---------|
| 3 | {summary} | src/db.ts:78 | Option A: refactor / Option B: keep + comment |
User approval gate: Present the report and wait for the user to approve, modify, or reject the resolution plan before proceeding. For AMBIGUOUS items, let the user choose. For suggestions offering multiple options, present all and let the user decide.
Execute the approved plan:
gh pr checkout $ARGUMENTS; File mode: use current branchfix(scope): description — addresses review comment on [topic]See WORKFLOW.md for commit message format and priority ordering.
PR mode only (skip entirely in file mode):
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies -f body="..."### Re: [Finding title](#issuecomment-{id})abc1234 — [brief description]"gh pr edit $ARGUMENTS --add-reviewer <username>| Score | Meaning |
|---|---|
| 0 | False positive — reviewer misread the code or concern doesn't apply |
| 25 | Plausible but likely misunderstanding, unable to verify |
| 50 | Valid observation but nitpick or style preference |
| 75 | Real issue, important, directly impacts functionality |
| 100 | Critical bug or security issue confirmed by evidence |
Threshold: Filter out findings below 80.