sii: Command for Claude Code

.claude/commands/review-pr.md

review-pr is a command for Claude Code from albertomarturelo/sii. It costs 0 tokens per session (1,407 once invoked), scanned A, original, MIT.

A pull-request review command that checks a proposed code change against the project's written rules and the linked issue's acceptance checklist. It reads the pull-request details and focused context instead of scanning every source file.

In plain words
What is it for?
Use it to review a GitHub pull request, verify its branch, title, commits, issue link, and acceptance criteria, and identify forbidden content or other checklist failures.
Why use it?
It helps catch process violations and mismatches with agreed decisions before a pull request is merged, while keeping the review within a limited token budget.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/albertomarturelo/sii/main/.claude/commands/review-pr.md
Clone the repo
git clone --depth 1 https://github.com/albertomarturelo/sii

Made for: Claude Code.

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

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

agentmods 80×15 button for review-pr

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,407 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.01407
Opus 5 $0.00000 $0.00704
Sonnet 5 $0.00000 $0.00281
Haiku 4.5 $0.00000 $0.00141

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

Security

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.

.claude/commands/review-pr.md · 112 lines

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/src imports 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 / misiir literals.
  • Adapters are injected at a surface composition root — no service-locator / global singletons reaching into the core.

Read the full file on GitHub · 112 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. 4d ago Changed · +1 lines 011dddb8e696
  2. 9d ago First seen · 111 lines · 0 tokens per session scan A 6a8d03e556f6

Subscribe to this mod's changes

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.