Borrowing it
Nothing to install: this file belongs to doidor/agentrig. 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/doidor/agentrig/main/.agents/skills/no-self-approve/SKILL.mdgit clone --depth 1 https://github.com/doidor/agentrigWrote 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/doidor/agentrig/no-self-approve)<a href="https://agentmods.dev/skills/doidor/agentrig/no-self-approve"><img src="https://agentmods.dev/badge/skills/doidor/agentrig/no-self-approve.svg" alt="Measured on agentmods" 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.00030 | $0.00382 |
| Opus 5 | $0.00015 | $0.00191 |
| Sonnet 5 | $0.00006 | $0.00076 |
| Haiku 4.5 | $0.00003 | $0.00038 |
Grade A, and why
no-self-approve 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 6d 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.
What it actually says
no-self-approve (principles 9, 10)
Harness agents often authenticate with one shared bot identity. Casting an approve on a PR
that identity authored — including any harness-created PR on an agent/<id>/… branch — is a
self-approval: invalid, because approval must come from an independent reviewer (another agent on
the same identity cannot supply it either).
Rules
- Always post your review comments / findings — that work is valuable regardless of who authored the PR.
- Never cast an approving vote (
approve/ approve-with-suggestions) on a PR authored by your own identity. If your verdict is "approve" but you authored it, abstain and note that independent approval is required. - Negative verdicts (request changes / reject) on your own PR are fine — you may always ask for changes to your own work.
How to check before approving
- Compare the PR author to your own identity. For GitHub:
gh pr view <pr> --json author -q .author.loginvsgh api user -q .login. - If they match (or the branch is an
agent/…branch you produced), do not approve — abstain. - Prefer a deterministic
pre_mergegate that rejectsapprover == author, so a slip can never merge. This skill is wired intopre_mergein the state machine.
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.
- 6d ago First seen · 32 lines · 30 tokens per session scan A c3af2f4d7279
no-self-approve is a skill published in the GitHub repository doidor/agentrig (5 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 382 once invoked, about $0.0002 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-31.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
full-repo-review
Comprehensive four-wave review of all repo source files, producing a prioritized issue backlog.