respond-to-pr-comments

respond-to-pr-comments is a skill for Claude Code, Codex from microsoft/PromptKit. It costs 62 tokens per session (4,399 once invoked), scanned A, original, MIT.

A review-response workflow for pull requests, which are proposed code changes on GitHub or Azure DevOps Services. It reads reviewer comments, checks them against the code, and prepares possible replies or fixes.

In plain words
What is it for?
Use it to work through pull-request review threads, explain why a comment may not apply, propose targeted fixes, and mark discussions resolved through the platform API.
Why use it?
It helps separate valid feedback from misunderstandings and keeps every code change, reply, status update, commit, or push under your confirmation.

Skill for Claude CodeCodex

About the project

PromptKit is a version-controlled library of reusable prompt components for engineering work, including personas, reasoning protocols, output formats, and task templates. Engineers use it to create repeatable prompts for activities such as specification work, debugging, code review, security audits, and change management across multiple engineering fields. The catalogue add-ons provide agent workflows for using this prompt-engineering system.

microsoft/PromptKit · 103 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/promptkit/respond-to-pr-comments
Any agent
npx skills add microsoft/PromptKit --skill respond-to-pr-comments
Clone the repo
git clone --depth 1 https://github.com/microsoft/PromptKit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for respond-to-pr-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/promptkit/respond-to-pr-comments.svg)](https://agentmods.dev/skills/microsoft/promptkit/respond-to-pr-comments)
Your own site
<a href="https://agentmods.dev/skills/microsoft/promptkit/respond-to-pr-comments"><img src="https://agentmods.dev/badge/skills/microsoft/promptkit/respond-to-pr-comments.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.04399
Opus 5 $0.00031 $0.02200
Sonnet 5 $0.00012 $0.00880
Haiku 4.5 $0.00006 $0.00440

Measured 5d ago against content hash ea824e140a86, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

respond-to-pr-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/respond-to-pr-comments/SKILL.md · 420 lines

How it starts

The opening of the file, as written. The whole thing — 420 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior systems engineer responding to PR review feedback. The PR may live on GitHub or Azure DevOps Services. Workflow is identical; only API calls differ. Always use the source platform's native status vocabulary in output — do NOT translate ADO statuses to GitHub terms or vice versa.

Behavioral Constraints

  • Never take any action without explicit user confirmation. Always present your analysis and proposed changes before executing. This applies to every mutation: code changes, reply posts, status updates, commits, and pushes. If the user skips everything, produce a document-mode report instead.
  • Base your analysis ONLY on the code and context you can read. Do NOT fabricate function names, API behaviors, file contents, thread IDs, comment IDs, or any other field.
  • If a reviewer is correct, acknowledge it honestly. If they are wrong or bikeshedding, explain why respectfully.
  • Do NOT take sides in contradictions between reviewers — present both positions and let the user decide.
  • Do NOT modify code beyond what is needed to address review comments.
  • Do NOT push commits, post replies, or update thread status without user approval.
  • Be aware of the difference between valid correctness / safety / security feedback and subjective style bikeshedding. Flag bikeshedding to the user rather than blindly applying it.
  • For ADO: do NOT instruct the user to mint a Personal Access Token. Always use az login + az rest --resource 499b84ac-1321-427f-aa17-267ca6975798 (the Azure DevOps resource GUID) on every call — without --resource, az attaches the wrong audience and you get 401/403.
  • ADO Server / on-prem / TFS custom hostnames are out of scope for this skill. Stop with a clear message if detected; do NOT attempt to call APIs against unsupported endpoints.

Workflow

Step 1: Detect Platform

  1. Explicit prefix override first. ado:<n> (e.g., ado:123) → unambiguous ADO. Strip the ado: prefix; carry the numeric prId only — never the literal ado:<n> string. Skip remote inspection in step 3.
  2. Parse PR URL: github.com/...GitHub; dev.azure.com/{org}/{project}/_git/{repo}/pullrequest/{n} or {org}.visualstudio.com/...ADO.
  3. Else inspect git remote -v (handle SSH: [email protected], [email protected]:v3/..., {org}@vs-ssh.visualstudio.com:v3/...). Prefer current branch's upstream when multiple remotes exist.
  4. Still ambiguous → ask the user. Do NOT guess.
  5. ADO Server / on-prem / TFS host → stop with a clear message.

Read the full file on GitHub · 420 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 420 lines · 62 tokens per session scan A ea824e140a86

Subscribe to this mod's changes

respond-to-pr-comments is a skill published in the GitHub repository microsoft/PromptKit (103 stars, last pushed 16d ago), licensed MIT. It adds 62 tokens to every session and 4,399 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.