Borrowing it
Nothing to install: this file belongs to albertomarturelo/sii. 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/albertomarturelo/sii/main/.claude/commands/review-pr.mdgit clone --depth 1 https://github.com/albertomarturelo/siiWrote 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/commands/albertomarturelo/sii/review-pr)<a href="https://agentmods.dev/commands/albertomarturelo/sii/review-pr"><img src="https://agentmods.dev/badge/commands/albertomarturelo/sii/review-pr/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/commands/albertomarturelo/sii/review-pr"><img src="https://agentmods.dev/badge/commands/albertomarturelo/sii/review-pr.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.00000 | $0.01407 |
| Opus 5 | $0.00000 | $0.00704 |
| Sonnet 5 | $0.00000 | $0.00281 |
| Haiku 4.5 | $0.00000 | $0.00141 |
Grade A, and why
review-pr 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The user passes a PR number. If not provided, infer from the current
branch (gh pr status --repo albertomarturelo/sii --json number --jq '.currentBranch.number').
If still none, ask.
1. Fetch PR metadata + diff (do FIRST)
gh pr view <n> --repo albertomarturelo/sii \
--json baseRefName,headRefName,title,body,labels,commits,closingIssuesReferences
gh pr diff <n> --repo albertomarturelo/sii
git log <base>..<head> --pretty=format:%s
2. Load context indices (do NOT read full source files)
CLAUDE.md,docs/CONVENTIONS.md,docs/decisions/_index.md.- The linked issue body (
gh issue view <n>) — extract the AC checklist + the "ADRs to load" list. - Each ADR named in the issue under
docs/decisions/NNN-*.md.
Token cost so far ~2–4k. Still no full source-file reads.
3. Cross-check the diff against this checklist
GitHub workflow
- Branch name matches
<type>/GH-<issue>-<slug>(type ∈ feature/fix/chore/docs). - PR body references
Closes #<issue>when there is a linked issue. - PR title is Conventional Commits, subject ≤72 chars; all commits the same.
- No AI attribution anywhere (commits, title, body, comments). Block on any.
- English everywhere.
Architecture (ADR-002 / ADR-003)
- The CLI / MCP packages import ONLY
@albertomarturelo/sii-core's task layer (+ seam interfaces). No reaching past tasks into a portal/dte facade. packages/core/srcimports NO Node-only module (node:*,fs,playwright, a keyring lib). Side-effects go through ports. Grep the diff.- No hard-coded SII hostnames outside the core config module. Grep the diff
for
sii.cl/palena/zeusr/misiirliterals. - Adapters are injected at a surface composition root — no service-locator / global singletons reaching into the core.
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.
- 4d ago Changed · +1 lines 011dddb8e696
- 9d ago First seen · 111 lines · 0 tokens per session scan A 6a8d03e556f6
review-pr is a command published in the GitHub repository albertomarturelo/sii (7 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,407 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-08-31.
Other commands, from other repositories
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
find-issues
Find GitHub issues that a PR might fix.
find-duplicate-prs
Find open PRs that may duplicate a given PR.
align
Context-aware alignment. When in plan mode, it reviews the active plan. Otherwise, it reviews all branch changes against Ion quality gates and principles, implements the fixes and commits them after operator approval.
dream
Overnight autoresearch + maintainer sweep that surfaces a MORNING REPORT — suggested changes, issues raised with fixes, and kept improvements. Shadow-first; never auto-pushes. Runs on-demand or scheduled for off-hours.
code-review
A code-review command that examines a pull request, which is a proposed set of code changes, and produces a Traditional Chinese report with weighted scores from 1 to 5.