Pr Comments logo

Pr Comments

Community
domengabrovsek
pr-comments

Watches an open PR for reviewer comments and addresses them: fixes the code, replies inline to bots, and drafts replies to humans for the user to post. Use after opening a PR, when the user says 'address the comments' or 'check the PR comments', or when a reviewer comments.

Overview

Publisherdomengabrovsek
Repositoryagent-config
Skill namepr-comments
Stars
22
Forks
4
Bundled files
1
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.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Pr 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/domengabrovsek/agent-config/tree/main/skills/pr-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/domengabrovsek/agent-config.git /tmp/agent-config
mkdir -p .claude/skills
cp -r /tmp/agent-config/skills/pr-comments .claude/skills/pr-comments
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pr 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 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 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.

Address PR Review Comments

Watch and address comments on: $ARGUMENTS (default: the current branch's PR)

Workflow

why-no-hook: skill workflow guidance; each step requires understanding the surrounding context (repo, task shape, prior state).

  1. Start a Monitor with bash scripts/gh-comments-monitor.sh [pr-number], resolved inside this skill's own directory. Use timeout_ms: 1800000 and the description "PR comments on " (review-time: see section note)
  2. React to each line: (review-time: see section note)
    • comment|<kind>|<id>|<author>|<bot|human>|<url>: handle the comment as below
    • Monitor expiry: re-arm the same script. Seen IDs persist, so nothing repeats (review-time: see section note)
    • pr-closed|<state> or no-pr|<branch>: report and stop (review-time: see section note)
    • error|persistent-failure: report and stop (review-time: see section note)
  3. Read the comment and its thread: gh api repos/{owner}/{repo}/pulls/comments/<id> for inline, .../pulls/<n>/reviews/<id> for a review, .../issues/comments/<id> for conversation (review-time: see section note)
  4. Judge it against the code: valid, partly valid, or not applicable. Check the claim in the source before agreeing or disagreeing (review-time: see section note)
  5. Fix valid points, bot or human: make the change, run npm run verify:fast once per batch when package.json declares it, otherwise /verify-done. Commit, push. Batch comments that arrive together into one commit when they touch the same code (review-time: see section note)
  6. Reply by author type: (review-time: see section note)
    • Bot: post the reply yourself. Inline comments get a thread reply: gh api repos/{owner}/{repo}/pulls/<n>/comments/<id>/replies -f body=.... A review body or conversation comment gets a conversation comment that quotes the line it answers (review-time: see section note)
    • Human: never post. Add the draft to .claude/state/runs/<branch-slug>/reply-drafts.md with the comment URL, and show the user the URL and the draft. hooks/pre-pr-reply-gate.sh blocks inline replies to humans (hook)
  7. Update the PR body with gh pr edit when a fix changes what the PR does (review-time: see section note)

Reply voice

Write as the engineer who owns the PR.

  • One to three sentences. Name the change and its commit, or the reason for leaving the code as it is (review-time: see section note)
  • No thanks-openers, no "Great catch", no "You're right", no apologies, no emoji (review-time: see section note)
  • End every reply you post with a blank line, then <sub>Posted by <agent> on behalf of @<login></sub> on its own line. Name your host (Claude Code, Codex, pi), and take the login from gh api user --jq .login. Mention the agent nowhere else, and leave the footer off drafts the user posts. hooks/pre-pr-reply-gate.sh blocks a posted comment without it (hook)
  • Disagree with evidence: the file and line, or the test that covers the case (review-time: see section note)
  • Run write-plain on each reply before posting or drafting (review-time: see section note)

Examples:

  • A fix, with the footer on its own line:

    markdown
    Fixed in a1b2c3d. The retry now stops after the third attempt.
    
    <sub>Posted by Claude Code on behalf of @octocat</sub>
  • "Leaving this as is. parseDate already rejects empty input, see src/date.ts:42 and the test in date.test.ts."

Rules

  • Never resolve a human reviewer's thread. The reviewer resolves it (review-time: see section note)
  • Never dismiss a review or re-request review without the user asking (review-time: see section note)
  • A comment asking for a change outside the PR's scope gets a reply naming the follow-up, not a fix (review-time: see section note)
  • The same bot comment failing the same fix twice escalates to the user (review-time: see section note)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pr Comments AI skill do?

Watches an open PR for reviewer comments and addresses them: fixes the code, replies inline to bots, and drafts replies to humans for the user to post. Use after opening a PR, when the user says 'address the comments' or 'check the PR comments', or when a reviewer comments.

Why use Pr Comments on TypingMind?

Because you install it once and use it with any model. Pr 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 Comments in TypingMind?

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

Which AI models can use Pr 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 Comments?

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

Is the Pr Comments AI skill free?

It is published on GitHub by domengabrovsek. Check the repository for licensing terms. 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 👇