/i:pr-risk [pr-number|pr-url]from i
Rate an open PR's engineering risk across five areas and publish an auditable review
Ships in i. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Assess a pull request's engineering risk — consequence, blast radius, and recoverability — and publish an auditable review.
This is not a defect hunt. /review answers "what is wrong with this diff?"; /i:pr-risk answers
"how much does it matter if this is wrong, and who is qualified to approve it?" Both may be run on
the same PR.
Reference policy, all four required. Every one of them is repo-specific and lives in the repo you
are working in, under docs/intus-skills/:
pr-risk/risk-model.md — the five areas, scoring, aggregation, calibrationpr-risk-path-policy.md — deterministic floors, human-only surfaces, content findingspr-risk/gates.md — check gate, approval gates, disposition, blocker guidancepr-risk/output-contract.md — report format, review body, publishingBelow, these are named by filename alone. If docs/intus-skills/pr-risk/ is missing, this repo has not
configured this command — say so and stop, rather than assessing against invented policy. If only
pr-risk-path-policy.md is missing, proceed without deterministic floors and say that you did.
If $ARGUMENTS is empty, use the current branch's PR:
gh pr view --json number,url
If $ARGUMENTS is a URL, take the number from the path. If it is already a number, use it as-is.
If no PR exists for the current branch, say so and stop.
Confirm the local checkout matches the PR head before reading anything. Fetch the full metadata payload once here — step 2 reuses it rather than re-requesting:
git rev-parse HEAD
gh pr view <number> --json number,title,body,state,isDraft,mergeable,headRefName,baseRefName,headRefOid,author,additions,deletions,changedFiles,files,reviews,statusCheckRollup,headRepositoryOwner,isCrossRepository
Compare .headRefOid against local HEAD.
A mismatch does not block the assessment. It means you must read the diff and all surrounding code
from the PR head via gh rather than from the working tree — do that and gate 6 passes; note the
provenance in the report. Only reading local files while the tree is on another commit fails gate 6.
Read the docs listed above, then collect the facts. Do not judge from the PR description. The PR metadata already came from step 1 — do not fetch it again. Two reads remain, and neither depends on the other, so issue them concurrently in one batch:
gh pr diff <number>
# plus the unresolved-thread GraphQL query from gates.md
The unresolved-thread query is in gates.md; derive owner/repo rather
than guessing them.
Read the changed files and enough surrounding implementation to justify each rating — call sites, the collection or router being touched, existing tests. For context beyond the diff, prefer the local checkout; when the local tree is not on the head commit, fetch from the head ref instead:
gh api repos/{owner}/{repo}/contents/<path>?ref=<headRefName> --jq '.content' | base64 -d
Do not modify the working tree at any point in this command.
Work pr-risk-path-policy.md steps 1–7 in order against the file list
and diff. Produce:
These are table lookups, not judgment calls. Do them before forming an opinion, so the opinion cannot bend them.
Using risk-model.md: pick the closest archetype profile, then
rate change complexity, blast radius, data and security, operational and recovery, and verification.
Print every rating, floor, band, and finding severity with its disc — 🔵 very low, 🟢 low, 🟡 medium,
🔴 high. The legend is risk-model.md, "Rating discs".
Rate above the archetype only for a concrete consequence, and name the evidence for it. Add any non-mandatory findings you actually found, at the severity their consequence justifies.
Set confidence. It measures trust in the assessment, not safety of the change.
Compute overall = max(dimension peak, policy floor, finding floor) and keep the trace.
Then evaluate all 15 approval gates from gates.md, select the
disposition, and pick the primary blocker by rank. Report every failed gate, not just the primary.
Print the terminal report exactly as laid out in
output-contract.md. Then ask:
Post this to GitHub as a
<COMMENT|REQUEST_CHANGES>review? Reply "post" to publish, "post without inline" to skip the line comments, or "no" to keep it local.
Wait for the answer. "No" ends the command having written nothing.
One exception, narrowly drawn. A checked-in command file that names publishing as one of its own
steps has already carried the decision — /i:pull-request says "Run /i:pr-risk on this PR and publish
the results to the PR". Treat that as the answer, say in the report that publishing was
pre-authorised and name the invocation path that authorised it, and go straight to step 7.
This holds however /i:pull-request was reached — typed by a developer, or called by /i:shipit,
/i:fix, or /i:one-shot. Those conductors are documented to run unattended, so prompting here would
either hang the chain or be answered by the model on the human's behalf, which is worse than not
asking: it manufactures a consent record. The authorisation comes from the command file's text,
which is checked in and reviewed like any other code — not from who typed it.
The exception is bounded by what step 7 can do, not by the caller: never APPROVE, never a merge,
never a settings change. It publishes a review comment on a PR that still needs a human approval.
What no caller can extend it to cover:
/i:pr-risk without naming publication in its own file.Only after explicit confirmation. Re-verify the head SHA, check for an existing marker with the same
SHA and decision, then post per
output-contract.md, "Publishing". Print the review URL and a
one-line confirmation.
APPROVE. A LOW-risk result publishes as COMMENT labeled FAST-TRACK ELIGIBLE
and states that a human approval is still required.What SKILL.md sets; muted values are Claude Code's defaults
39 skills in this plugin
/builditTake a Jira ticket key from branch to pushed branch in one pass: /i:workon, /i:test-first, /i:ncommit, /i:implement, /i:ncommit, /i:push. Use when asked to build / do / take on a ticket end to end./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.Other plugins' skills for the same job
npx claudepluginhub intuscare/intus-skills --plugin i