Borrowing it
Nothing to install: this file belongs to EndogenAI/dogma. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/EndogenAI/dogma/main/.github/skills/pr-review-triage/SKILL.mdgit clone --depth 1 https://github.com/EndogenAI/dogmaWrote 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/endogenai/dogma/pr-review-triage)<a href="https://agentmods.dev/skills/endogenai/dogma/pr-review-triage"><img src="https://agentmods.dev/badge/skills/endogenai/dogma/pr-review-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.
<a href="https://agentmods.dev/skills/endogenai/dogma/pr-review-triage"><img src="https://agentmods.dev/badge/skills/endogenai/dogma/pr-review-triage.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.00179 | $0.02758 |
| Opus 5 | $0.00089 | $0.01379 |
| Sonnet 5 | $0.00036 | $0.00552 |
| Haiku 4.5 | $0.00018 | $0.00276 |
Grade A, and why
pr-review-triage scanned grade A with 2 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
"body": "Using `urllib.request` here to keep the stdlib-only constraint — `pathlib` would not help with URL fetching.", Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
2. Comment 222 — "consider using `subprocess.run` instead of `os.system`" → **Suggestion** How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PR Review Triage
This skill enacts the Algorithms Before Tokens axiom from MANIFESTO.md:
the post-review triage and response workflow is encoded as a repeatable procedure, not re-derived
interactively on each PR. It is governed by AGENTS.md
§ Verify-After-Act for Remote Writes and § Agent Communication. When this skill conflicts
with those documents, the primary documents take precedence.
1. Governing Constraint
This skill is a mandatory pre-merge gate. A PR must not be merged, suggested for merge, or treated as "ready to merge" until this triage workflow has been run and all Blocking comments are resolved. CI passing is a necessary but insufficient condition — reviews must be triaged independently.
Trigger: Copilot review is automatically triggered when a PR is opened and on every subsequent push. Do not assume the review is empty — always retrieve it.
Per AGENTS.md § PR Review Triage Gate and § Verify-After-Act for Remote Writes:
- Every reply posted to a review comment is a remote write — Tier 0 validation applies before sending.
- Every thread resolved is irreversible — only resolve threads whose change is confirmed committed.
- After posting replies, verify with
gh issue vieworgh pr viewbefore treating the task as complete.
2. Workflow Overview
Read review → Classify comments → Prioritise → Batch fixes by file → Commit fixes
→ Build batch reply file → Post replies and resolve threads → Verify
3. Steps
Step 0 — Merge Authorization Pre-Check
Before beginning triage (and again before suggesting merge), run check_merge_authorization.py to get a structural snapshot of the PR's authorization state:
uv run python scripts/check_merge_authorization.py <pr_num> --dry-run
This prints a full check table (✅/❌) for all four authorization criteria without blocking. Use it to:
- Identify which checks are already passing (no need to re-verify manually)
- Confirm no
CHANGES_REQUESTEDis outstanding and no non-nit threads are unresolved - Note: CI status is not checked by this script — verify CI separately via
wait_for_github_run.py
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 · 286 lines · 179 tokens per session scan A f4519c57e954
pr-review-triage is a skill published in the GitHub repository EndogenAI/dogma (2 stars, last pushed 18d ago), licensed Apache-2.0. It adds 179 tokens to every session and 2,758 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
pact-check
Run PACT cognitive redirections against recent changes.
refactor
Constrains the Agent to follow a safe refactoring process — guarantee functional equivalence while improving code quality.
code_review
Constrains the Agent to perform structured code reviews across correctness, security, performance, and maintainability.
open-code-review
Performs AI-powered code review on Git changes using the ocr CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply…
continual-learning
Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…
learn-from-sage
Detection-gap (miss) analysis for Code Review Sage. Learn from shipped fixes, acted-on human comments, and design outcomes to close reviewer blind spots. Inline during review stages a candidate; a human triggers a one-shot AI consolidation into the live ruleset.