Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Anselmoo/mcp-ai-agent-guidelinesnpx agentmods add skills/anselmoo/mcp-ai-agent-guidelines/address-pr-review-locallyWrote 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.
[](https://agentmods.dev/skills/anselmoo/mcp-ai-agent-guidelines/address-pr-review-locally)<a href="https://agentmods.dev/skills/anselmoo/mcp-ai-agent-guidelines/address-pr-review-locally"><img src="https://agentmods.dev/badge/skills/anselmoo/mcp-ai-agent-guidelines/address-pr-review-locally/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.
<a href="https://agentmods.dev/skills/anselmoo/mcp-ai-agent-guidelines/address-pr-review-locally"><img src="https://agentmods.dev/badge/skills/anselmoo/mcp-ai-agent-guidelines/address-pr-review-locally.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.01667 |
| Opus 5 | $0.00034 | $0.00834 |
| Sonnet 5 | $0.00014 | $0.00333 |
| Haiku 4.5 | $0.00007 | $0.00167 |
Grade B, and why
address-pr-review-locally scanned grade B with 1 finding 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 12d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| `src/cli.ts` | 381 | P1 | `hooks setup` overwrites `~/.claude/settings.json` without merge | ✅ Fixed | How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Address PR Review Locally
End-to-end workflow for reading a GitHub pull request review, triaging its inline comments, implementing fixes locally, and verifying correctness — without switching to the browser.
When to Use
- A Copilot, human, or bot reviewer has left inline comments on a PR
- You want to address review feedback without leaving the editor
- A review is in
COMMENTEDorCHANGES_REQUESTEDstate with unresolved threads
Procedure
1. Fetch the Review
Use mcp_github_pull_request_read twice in parallel:
method: get_reviews → list all review objects; note state + review ID
method: get_review_comments → full list of review threads with is_resolved/is_outdated
Focus on threads where is_resolved: false and is_outdated: false. Skip is_outdated: true unless the underlying concern still applies to the current HEAD.
2. Triage Comments
Group unresolved threads into three buckets before writing any code:
| Priority | Trigger | Action |
|---|---|---|
| P1 — Correctness/Safety | Bug, data loss, security, destructive overwrite without guard | Fix first |
| P2 — Correctness/Accuracy | Misleading docs, wrong test label, logic gap | Fix second |
| P3 — Style/Improvement | Refactoring suggestion, docblock wording, minor naming | Fix last or defer |
If a comment includes a suggestion block (GitHub's diff suggestion format), use it as the basis for the fix — but verify it compiles and passes tests before accepting verbatim.
3. Apply Fixes Locally
For each P1 → P2 → P3 comment:
- Open the file at the line referenced in
comment.path+comment.line - Read surrounding context (±20 lines) to understand the full function/block
- Apply the fix — prefer the smallest change that addresses the reviewer's concern
- Note the discussion thread ID (
comment.html_url) for later reply
Common fix patterns from this project:
- Misleading doc comment → update the comment only, not the implementation
- YAML frontmatter without quoting → wrap the interpolated value in YAML-safe quotes
- Hardcoded platform path (e.g.
"/") → usepath.parse(current).rootinstead - Overwrite-without-merge → read existing JSON, deep-merge, then write back
- Guard-bypass with
--yesflag → keep the existing guard, require--forcefor destructive overwrite - Non-monotonic progress counter → use a shared atomic counter incremented after each task resolves
- TTY check via exception → check
process.stdout.isTTYorspinner.isEnabledexplicitly - Docs referencing files not in the npm package → add a
[!NOTE]block explaining availability
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.
- 12d ago First seen · 141 lines · 68 tokens per session scan B c2638613a070
address-pr-review-locally is a skill published in the GitHub repository Anselmoo/mcp-ai-agent-guidelines (6 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 1,667 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
gitlab-merge-request-review
Review and merge GitLab merge requests via the gitlab-api MCP server — by default the MRs assigned to you or where you are a reviewer, optionally scoped to a project, group, or the whole instance. Read an MR, gate it on a green pipeline (pipeline → jobs → job log), then approve, accept/merge, or set…
review-changes
Review current staged, unstaged, and untracked Git changes for correctness and regression risk, grounded in changed paths, diffs, focused file reads, and nearby test discovery. Use when the user asks to review local changes or a working-tree diff; do not use for broad repository audits.
pr-analysis
Analyse a GitHub pull request by fetching its metadata, diff, linked issues and CI status.
commit-suggest
Conventional Commits message generator from current staged + unstaged changes. Read-only — runs only allowlisted git commands, never commits, never pushes, never adds AI co-author trailers. Output is plain text the user pastes. Triggers: "suggest a commit", "commit message", "commit msg", "write a commit", "gen…
enable-journaling
Opt-in setup for auto-journaling capture plumbing. Copies bundled PostToolUse hook scripts into .squad/hooks/ and prints the .claude/settings.json snippet to wire them up. Capture-only — squad behaviour does NOT change until a follow-up release adds distillation + retrieval. Triggers: "enable journaling", "turn on…
release-pr-review
Review pass on an open release PR (release/ → main) — the step between git-wrapup and release-and-publish when a project releases in gated release PR mode. Reads the PR's commit range through the code-simplifier lens plus a correctness review, verifies whatever an automated reviewer left on the PR, lands fixes as…