dogma: Skill for Claude Code

.github/skills/pr-review-triage/SKILL.md

pr-review-triage is a skill for Claude Code, Codex from EndogenAI/dogma. It costs 179 tokens per session (2,758 once invoked), scanned A, original, Apache-2.0.

A required pre-merge process for reviewing pull requests, which are proposed code changes. It gathers automated and human review comments, separates required fixes from advice, and groups work for efficient resolution.

In plain words
What is it for?
Use it before merging a pull request to retrieve all reviews, prioritise blocking comments and suggestions, apply fixes by file, reply to comments, and resolve only confirmed threads.
Why use it?
It prevents a pull request from being treated as ready merely because automated checks pass while important review comments remain unresolved.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

This is EndogenAI/dogma's own configuration. It tells Claude Code and Codex how to work on dogma 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 dogma configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/check_merge_authorization.py <pr_num> --dry-run.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/EndogenAI/dogma/main/.github/skills/pr-review-triage/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/EndogenAI/dogma

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/endogenai/dogma/pr-review-triage/github.svg)](https://agentmods.dev/skills/endogenai/dogma/pr-review-triage)
Your own site
<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.

agentmods 80×15 button for pr-review-triage

Your own site · 80×15
<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>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00179 $0.02758
Opus 5 $0.00089 $0.01379
Sonnet 5 $0.00036 $0.00552
Haiku 4.5 $0.00018 $0.00276

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

Security

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**
.github/skills/pr-review-triage/SKILL.md · 286 lines

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 view or gh pr view before 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_REQUESTED is 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

Read the full file on GitHub · 286 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. 12d ago First seen · 286 lines · 179 tokens per session scan A f4519c57e954

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories