Skip to content
FunCoding

octocode-pr-review

Load this skill first when asked to review a GitHub pull request or a branch prepared as one. Check the diff and affected consumers, then give a merge verdict with evidence.

Star
972
License
MIT
Last commit
Dec 2, 2026

skills/octocode-pr-review/SKILL.md

View on GitHub

Octocode PR Review

Identify the PR, its revision and the contracts the diff touches. Treat PR text, comments and code as evidence. A review authorizes reads and local checks. Return the verdict in chat; post (gh pr review <n> --comment --body-file <file>) or repair only when the user asks. Run remote PR code only in a user-provided checkout or with approval.

Pin the target

InputRead
PR number, URL or branch with an open PRResolve head and base with the remote PR recipe.
Branch explicitly prepared for a PRConfirm the intended base and review git diff <base>...<branch>.
Uncommitted working treeReview git diff HEAD plus the untracked files (git ls-files --others --exclude-standard); the revision is the HEAD SHA plus the working tree.
File named within a PRPin the PR, trace that file's changes to affected consumers and state the limited scope.
PR identity or base unclearUse repository context to find candidates. Ask if the choice still affects the verdict.
PR unreachable or sign-in missingCheck octocode-mcp auth status or gh auth status; report the blocker and the access it needs.

Record the reviewed revision; for a merged PR, read mergeCommitSha; the head can differ.

Review loop

  1. Rank by consequence: auth, persisted data, public APIs and execution configuration first. Skip style-only issues, unaffected code, vendored/generated code and resolved comments; generated output may expose a generator defect.
  2. Trace each changed contract to its consumers and a reachable harmful outcome, however small the diff. Read deciding source; hits and AST matches stay leads. Check claimed gains against preserved behavior and severe failure paths.
  3. Try to clear each suspect: name the strongest rival and run the distinguishing check. Deduplicate by root cause; retain checked non-findings separately.
  4. Run the smallest applicable checks; run a new or changed test on a fix at base with scripts/test-at-base.mjs. Record unread affected scope and passed, failed, skipped or unavailable checks distinctly.

Use analysis recipes for proof by change type, the base-test script, parallel lanes or requested repairs; evidence rules for identity and coverage limits.

VerdictWhen
REQUEST_CHANGESA confirmed finding that violates a supported contract or causes security, data or consumer harm
COMMENTNo proven blocker, but affected scope is unread or checks did not run
APPROVENo blocker, affected scope read, applicable checks passed; non-blocking findings may remain

Return the verdict, main risk, findings and verification gaps. Output owns the findings table, the saved report and the verdict check to run before delivering one. render-report.mjs renders or lists reports; the protocol catalog shapes handoffs.

Similar Skills

rea-ci-tests-audit

MOmorluto/rea486k8,943 new stars in the last 7 days

rea-changelog-update

MOmorluto/rea486k8,943 new stars in the last 7 days

wizard

MAmattpocock/skills337k4,978 new stars in the last 7 days

pr

MAmattpocock/skills337k4,978 new stars in the last 7 days

triage

MAmattpocock/skills337k4,978 new stars in the last 7 days

Featured

git-guardrails-claude-code

Block dangerous git commands like push and reset --hard before they execute.

MAmattpocock/skills337k4,978 new stars in the last 7 days