Pr Review Comments logo

Pr Review Comments

Community
tomsej
pr-review-comments

Review, triage, and resolve PR review comments. Use when user asks to check PR comments, address review feedback, fix issues raised in review, reply to reviewers, or resolve review threads.

Overview

Publishertomsej
Repositorypi-ext
Skill namepr-review-comments
Stars
80
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by tomsej on GitHub. Read the source before you install it.

Installation

Install the Pr Review Comments AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/tomsej/pi-ext/tree/main/skills/pr-review-comments
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tomsej/pi-ext.git /tmp/pi-ext
mkdir -p .claude/skills
cp -r /tmp/pi-ext/skills/pr-review-comments .claude/skills/pr-review-comments
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pr Review Comments in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pr Review Comments on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pr Review Comments is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PR Review Comments

Triage and address review comments on a pull request: read each comment, decide if valid, fix code, verify tests pass, reply, and resolve threads.

Prerequisites

  • gh CLI authenticated
  • Working directory inside the repo (or use --repo owner/repo)

Workflow

1. Fetch review comments

Get all review comments with context:

bash
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
  --jq '.[] | {id, path, line, body, user: .user.login}'

Also check top-level PR comments (non-inline):

bash
gh api repos/{owner}/{repo}/issues/{pr}/comments \
  --jq '.[] | {id, body, user: .user.login}'

2. Triage each comment

For each comment, decide:

  • Valid & actionable → fix the code
  • Valid but won't fix → reply with rationale
  • Invalid / misunderstanding → reply with explanation
  • Question → answer it

Read the relevant file context before deciding. Don't blindly accept or reject.

3. Fix code

Apply fixes for valid comments. Group related fixes into a single commit. Use conventional commit style:

fix(<scope>): address PR review comments

- <summary of fix 1>
- <summary of fix 2>

Stage, commit, and push.

4. Validate tests pass

After fixing code, always run tests before pushing to make sure the fixes don't break anything:

  • Run the project's test command (check project docs / CLAUDE.md / Makefile / mise tasks for the right command).
  • If tests fail, fix the issue before pushing. A review fix that breaks CI is worse than the original comment.
  • If the fix changes test expectations (e.g., updated output values), update the tests too.
  • Pay special attention to mock/stub setups — removing or changing mocks can cause unrelated tests to fail when test infrastructure intercepts more than expected (e.g., mock_provider intercepting locally-evaluated data sources).

Only push once all tests are green.

5. Reply to comments

Reply to each review comment thread using the in_reply_to field:

bash
gh api -X POST repos/{owner}/{repo}/pulls/{pr}/comments \
  -f body="<reply text>" \
  -F in_reply_to=<original_comment_id>

Important: The in_reply_to parameter must be a number (-F), not a string (-f). Use -F for numeric values.

Keep replies concise: state what was done or why not.

6. Resolve threads

Fetch unresolved thread node IDs via GraphQL:

bash
gh api graphql -f query='
{
  repository(owner: "{owner}", name: "{repo}") {
    pullRequest(number: {pr}) {
      reviewThreads(first: 50) {
        nodes {
          id
          isResolved
          comments(first: 1) {
            nodes { databaseId body }
          }
        }
      }
    }
  }
}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | {id, commentId: .comments.nodes[0].databaseId, body: (.comments.nodes[0].body[:80])}'

Resolve each thread after replying:

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

Loop over all thread IDs to resolve in batch:

bash
for tid in PRRT_abc PRRT_def PRRT_ghi; do
  gh api graphql -f query="mutation { resolveReviewThread(input: {threadId: \"$tid\"}) { thread { isResolved } } }"
done

Rules

  • Read before deciding. Always read the file/context around the commented line before accepting or rejecting.
  • Don't blindly accept. Evaluate each comment on merit. Some automated/AI review comments are wrong.
  • Don't blindly reject. If a comment points out a real issue, fix it even if the wording is off.
  • Test before pushing. Run the full test suite (or at minimum the affected module's tests) after every fix. Never push code you haven't validated.
  • Codify repeatable findings. If a fixed comment is mechanically enforceable or clearly recurring, add a guard in the same commit via the review-guards skill (ast-grep rule with test; qualitative → a line in REVIEW_GUIDELINES.md).
  • One commit for all fixes. Don't create separate commits per comment unless changes are unrelated.
  • Reply to every comment. Even if resolved by a code change, confirm what was done.
  • Resolve only after replying. Don't resolve threads without a reply — reviewers need to see acknowledgment.
  • Push before replying. The fix commit should be visible in the PR when the reviewer reads the reply.

Frequently asked questions

What does the Pr Review Comments AI skill do?

Review, triage, and resolve PR review comments. Use when user asks to check PR comments, address review feedback, fix issues raised in review, reply to reviewers, or resolve review threads.

Why use Pr Review Comments on TypingMind?

Because you install it once and use it with any model. Pr Review Comments is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pr Review Comments in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/tomsej/pi-ext/tree/main/skills/pr-review-comments. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Pr Review Comments?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pr Review Comments?

As many as you like. As long as a model supports skills, you can use Pr Review Comments with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pr Review Comments AI skill free?

Yes. It is published on GitHub by tomsej under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇