ai-agents: Command for GitHub Copilot

.github/prompts/pr-comment-triage.md

pr-comment-triage is a command for GitHub Copilot from rjmurillo/ai-agents. It costs 0 tokens per session (1,007 once invoked), scanned A, original, MIT.

A pull-request review tool that examines comments from people and automated review bots, then assigns each comment a type, priority, and suggested action.

In plain words
What is it for?
Use it to triage pull-request feedback and decide whether to fix, investigate, reply, resolve, or reject each comment.
Why use it?
It turns a long or mixed set of review comments into clear decisions. This helps distinguish fixes from questions, design discussions, stale comments, and items to decline.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is rjmurillo/ai-agents's own configuration. It tells GitHub Copilot how to work on ai-agents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-agents configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rjmurillo/ai-agents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rjmurillo/ai-agents/main/.github/prompts/pr-comment-triage.md
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: GitHub Copilot.

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 pr-comment-triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjmurillo/ai-agents/pr-comment-triage/github.svg)](https://agentmods.dev/commands/rjmurillo/ai-agents/pr-comment-triage)
Your own site
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/pr-comment-triage"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/pr-comment-triage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-comment-triage

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/pr-comment-triage"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/pr-comment-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,007 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01007
Opus 5 $0.00000 $0.00504
Sonnet 5 $0.00000 $0.00201
Haiku 4.5 $0.00000 $0.00101

Measured 3d ago against content hash f43681ac8a8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pr-comment-triage 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 3d 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/prompts/pr-comment-triage.md · 94 lines

How it starts

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

PR Comment Triage

Analyze all comments on this pull request and provide a structured triage decision for each.

Your Task

  1. Review each comment from bots (gemini-code-assist, copilot-pull-request-reviewer, coderabbitai) and humans
  2. Classify each comment by type and priority
  3. Determine the appropriate action for each
  4. Return structured JSON that can be parsed by automation

Classification Rules

Classification Description Action
quick-fix Single file, clear fix, no architecture impact Implement immediately
standard Needs investigation, may affect multiple files Implement with analysis
strategic Questions architecture or approach (why, not how) Reply with rationale
wontfix Invalid, out of scope, or disagree with principle Reply declining
question Needs clarification before proceeding Reply asking for details
stale Already addressed or superseded Mark resolved

Priority Levels

Priority Description
critical Blocks merge - security, correctness, or breaking change
major Should fix before merge - significant improvement
minor Nice to have - can address in follow-up

Output Format

Your ENTIRE response must be a single JSON object. NO other text.

  • Start your response with { and end with }
  • Do NOT wrap JSON in markdown code fences
  • Do NOT include explanations before or after the JSON

Required JSON Schema

Field Type Required Description
comments array Yes One entry per comment analyzed
comments[].id number Yes Comment ID from GitHub API
comments[].author string Yes Username of commenter
comments[].file string When available File path the comment references
comments[].line number When available Line number the comment references
comments[].classification string Yes One of: quick-fix, standard, strategic, wontfix, question, stale
comments[].priority string Yes One of: critical, major, minor
comments[].action string Yes One of: implement, reply, resolve
comments[].summary string Yes Brief description of the issue
comments[].resolution string Yes Specific fix or response
summary object Yes Counts by classification
recommendation string Yes Human-readable summary of actions
verdict string Yes PASS or WARN

Read the full file on GitHub · 94 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. 3d ago First seen · 94 lines · 0 tokens per session scan A f43681ac8a8f

Subscribe to this mod's changes

pr-comment-triage is a command published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,007 tokens. 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-09-06.