Skip to content
Development
Command

/address-pr-comments

Collect unaddressed review comments on this branch's PR, fix or answer each, and reply in the thread.

From plugin
opik-mcp
2214 skills3 agents4 commands
Install
> /plugin marketplace add comet-ml/opik-mcp
> /plugin install opik@opik

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/address-pr-comments

Context preview

What this command does when you run it.

Collect unaddressed review comments on this branch's PR, fix or answer each, and reply in the thread.

Command definition

address-pr-comments.md
# A command, not a skill, and user-only: see .claude/rules/skills.md.
disable-model-invocation: true
description: Collect unaddressed review comments on this branch's PR, fix or answer each, and reply in the thread.

Handle the open review comments on this branch's PR in `comet-ml/opik-mcp`.

1. Find the PR

  • `gh auth status`; stop if not logged in.
  • `gh pr list --head <branch> --state open`. If none, say so and stop.

2. Collect comments

Always `--paginate`; without it, comments past the first 30 are missed.

gh api repos/comet-ml/opik-mcp/pulls/<n>/comments --paginate
gh api repos/comet-ml/opik-mcp/issues/<n>/comments --paginate
gh api repos/comet-ml/opik-mcp/pulls/<n>/reviews --paginate

A comment is pending when its thread is unresolved (GraphQL, step 5) and it has no reply from us yet. Include bot reviewers.

3. Propose

One line each: `id`, `file:line`, a short quote, and what you propose: a code change, an answer (the code is already right), or skip with a reason. Then ask me: fix, answer, or skip, per comment.

4. Act and reply

Reply in the thread with `in_reply_to`:

gh api repos/comet-ml/opik-mcp/pulls/<n>/comments -f body="…" -F in_reply_to=<id>
  • Answer or skip: reply now, one or two lines.
  • Fix: make the change, run the relevant tests, commit, and push. Only after

the push succeeds, reply `Fixed in <sha>: <what changed>`. Never post a "Fixed" reply for a commit that isn't on origin.

5. Resolve

Ask before resolving. Page through `reviewThreads` with GraphQL (`first: 100`, follow `endCursor` until `hasNextPage` is false), and resolve only the threads we replied to:

gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<id>"}) { thread { isResolved } } }'

Report how many threads were resolved.

Read more
Ships withopik-mcp

The official Model Context Protocol (MCP) server for Opik, the open-source LLM observability and evaluation platform, built by Comet.

Get the whole plugin

Other commands on opik-mcp.