Skip to content
Agentmart
Submit a tool

pr-comments

Fetch PR review comments, triage against codebase, apply fixes, generate reply report.

Skill by otaviof

IndexedApache-2.0★ 2
Write a review

Chalk Labs

Need help deploying pr-comments?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

npx agentmarket install skill/otaviof-pr-comments

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Fetch PR review comments, triage against codebase, apply fixes, generate reply report.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pr-comments

Tools it pre-approves 4

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash,
  • Read,
  • Edit,
  • TodoWrite

What's inside

Skill name
pr-comments
Description
Fetch PR review comments, triage against codebase, apply fixes, generate reply report.
License
Apache-2.0
Allowed tools
Bash,, Read,, Edit,, TodoWrite
Instructions
111 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PR Comments Review

Address PR review comments using MCRF with progressive confidence tracking.

## MCRF Workflow

**DECOMPOSE** → Fetch comments, detect sources (Phase 1)  
**SOLVE** → Categorize by action required (Phase 2)  
**VERIFY** → Read code, validate claims (Phase 3)  
**SYNTHESIZE** → Generate reply report (Phase 4)  
**REFLECT** → Final confidence + caveats

## Phase 1: Fetch & Parse (DECOMPOSE)

Detect repo owner/name and fetch all comment sources:

```bash
# Repo metadata
gh repo view --json nameWithOwner --jq '.nameWithOwner'

# PR overview
gh pr view $pr_number --json title,body,state,comments,reviews,reviewDecision

# Inline review comments
gh api repos/{owner}/{repo}/pulls/$pr_number/comments \
  --jq '.[] | {id, path, line, body, user: .user.login}'

# Review-level comments
gh api repos/{owner}/{repo}/pulls/$pr_number/reviews \
  --jq '.[] | {id, user: .user.login, state, body}'
```

**Report**: Count by source, parse confidence per comment.

### CodeRabbit Bot Parsing

CodeRabbit embeds structured feedback inside review bodies using nested `<details>` HTML blocks:

- **Actionable comments**: marked with `_Potential issue_` and severity badges
- **Nitpick comments**: inside `<summary>Nitpick comments</summary>` blocks, contain file path and line ranges
- **Outside diff comments**: inside `<summary>Outside diff range comments</summary>` blocks
- **Prompt for AI Agents**: inside `<summary>Prompt for AI Agents</summary>` — use these as implementation hints but always verify against code first

**Human patterns**: Short, conversational. "food for thought", "not a change on this PR", questions → typically observations not action requests.

## Phase 2: Triage & Plan (SOLVE)

Categorize each comment:

| Category | Criteria | Action |
|----------|----------|--------|
| **Actionable** | Bugs, factual errors, misleading docs, test gaps | Fix |
| **Food for thought** | Observations, future ideas, questions | Acknowledge |
| **Out of scope** | Requires changes beyond PR purpose | Acknowledge + explain |

Present triage table for user approval before proceeding:

| # | Source | File | What | Why | Category | Confidence |
|---|--------|------|------|-----|----------|------------|

**Wait for user confirmation.**

## Phase 3: Verify & Fix (VERIFY)

Track with TodoWrite. For each actionable item:

1. **Read** referenced file
2. **Assess** claim confidence after reading code
3. **Fix** only if confidence > 0.9 (else flag for manual review)
4. **Apply** using Edit tool
5. **Mark** TodoWrite item complete

**Constraints**: No commits, no GitHub API posts, only working tree edits.

## Phase 4: Generate Reply Report (SYNTHESIZE)

One section per comment with GitHub links:

- **Inline**: `https://github.com/{owner}/{repo}/pull/{pr}#discussion_r{id}`
- **Review**: `https://github.com/{owner}/{repo}/pull/{pr}#pullrequestreview-{id}`

**Format**:

```
### [Comment 1](link) — User: description ([file:L42](path#L42))
Confidence: 0.95

` ` `markdown
Fixed — what was done.
` ` `

---

### [Comment 2](link) — User: review nitpicks
Confidence: 0.90

` ` `markdown
All N items addressed:
- Item 1 description
- Item 2 description
` ` `
```

**Grouping**: Combine review-body nitpicks (CodeRabbit or human) under single section using review ID.

## Final Summary (REFLECT)

1. **Overall confidence** (0.0-1.0)
2. **Caveats**: Low-confidence fixes, ambiguous comments
3. **Manual review needed**: Items ≤ 0.9 confidence

From otaviof/gosmith, Apache-2.0.

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Apr 28, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from otaviof

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get pr-comments running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pr-comments?

CallGet help
Cite this page

pr-comments skill. Agent Mart. https://agentmart.dev/skills/otaviof-pr-comments (last updated 2026-10-24)