review-pr
Skill2 starsChanged 3 months agoMITView on GitHub
Review a PocketPal pull request, branch, or review worktree. Use for external PR reviews, requested code-review passes, risk classification, role-subreview orchestration, review-map creation, verification, and final review output.
96 other projects use a version of this.
Adopted by
Most recently taken up by
- nerymurillohnd/claude-essentialstheir own version, first seen Oct 5, 2026
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- briandconnelly/skillstheir own version, first seen Oct 4, 2026
- angusfretwell/skillstheir own version, first seen Oct 4, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- egregore-labs/egregoretheir own version, first seen Oct 1, 2026
Used with
Projects with it also use build-graph, review-delta and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
n24q02mSkillbuild-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Also in 3 projects that use this
n24q02mSkillreview-delta
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
Also in 3 projects that use this
jasoncrawfordSkillwork-on
Use to kick off work on a feature, bug, or task
Also in 3 projects that use this
DockerSkillfix-issue
Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".
Also in 6 projects that use this
JetBrainsSkillreview-plan
Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.
Also in 5 projects that use this
SentrySkillcreate-pr
Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.
Also in 21 projects that use this
Other versions96 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 96
- ToolJet/ToolJet★ 41ksame name
- tirth8205/code-review-graph★ 32ksame name
- microsoft/fluentui★ 20ksame name
- hashicorp/terraform-provider-aws★ 11ksame name
- maximhq/bifrost★ 8.6ksame name
- docker/docs★ 4.7ksame name
- mikeyobrien/ralph-orchestrator★ 3.2ksame name
- ShenSeanChen/waku-agent★ 1.9ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- google/site-kit-wp★ 1.4ksame name
86 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- benchSkill
- figma-implementSkill
- memory-profileSkill
- review-l10nSkill
- run-e2eSkill
- run-pr-e2eSkill
- start-taskSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 16 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 91 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Use this skill as the orchestration layer.
- Very specific: line 21
Read docs/standards/code-review.md before making review judgments.
- Distinctive: line 23
Use the PocketPal role reviewers when role subreviews are required.
- Very specific: line 25
Do not mutate repos/pocketpal-ai/, this is read only, instead use worktrees.
- Distinctive: line 27
Do not produce a complete high-risk final review unless required role subreviews completed.
- Distinctive: line 40
If essential target information is missing and cannot be found locally or from GitHub, stop and ask for the missing target.
- Distinctive: line 62
If an expected worktree path is missing but git worktree list contains a stale entry, do not remove it with raw git or filesystem commands.
- Distinctive: line 64
Create or reuse an allowed task or PR worktree according to the loaded repo instructions, or report the blocker.
- Distinctive: line 68
Read only the context that applies to the review target.
- Distinctive: line 77
Write durable artifacts in the following folder:
- Very specific: line 99
If a required role artifact is missing, the final review must say review_complete: no and role_subreviews: BLOCKED.
- Very specific: line 103
Create review-map.md before role review.
- Distinctive: line 126
Do not treat helper output as final review findings.
- Distinctive: line 155
If role subreviews are required, run read-only role subreviews before issuing the final review.
- Distinctive: line 157
If required role reviewers cannot run, do not produce a complete final review.
- Distinctive: line 161
Use this delegation shape:
- Distinctive: line 179
If a role reviewer returns output without writing the artifact, write that output verbatim to the required artifact path before final …
- Distinctive: line 181
Use the role artifacts to produce the final review.
- Distinctive: line 199
Run feasible verification from the app worktree.
- Distinctive: line 201
Before JS tests, ensure dependencies exist:
- Very specific: line 203
run yarn install in the app worktree when node_modules or jest is missing.
- Very specific: line 204
run yarn install in e2e/ before E2E commands.
- Very specific: line 214
Write verification status to verification.md.
- Very specific: line 218
Read all role artifacts and verification.md, then write final.md.
- Very specific: line 220
Use final.md as the team-facing review response and synthesis record.
- Very specific: line 232
Write final.md using the standard output shape from docs/standards/code-review.md.
“Common” is measured: kept by at least 6 in 10 of the 91 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review PR
Review the requested PocketPal change as a code-review workflow, not as implementation work.
The user may invoke this skill with a PR number, branch ref, or worktree path:
/review-pr <pr-number | branch-ref | worktree-path>Operating Contract
Use this skill as the orchestration layer.
Read docs/standards/code-review.md before making review judgments.
Use the PocketPal role reviewers when role subreviews are required.
Do not mutate repos/pocketpal-ai/, this is read only, instead use worktrees.
Do not produce a complete high-risk final review unless required role subreviews completed.
Inputs To Resolve
Resolve these before classification:
- Target identifier: PR number, branch ref, or worktree path.
- Review ID:
PR-<number>for PRs, or a stable name derived from the branch/worktree. - Worktree path under
worktrees/. - Base ref and head ref.
- PR metadata, changed filenames, diff, linked issue, and acceptance criteria when available.
- Existing review artifact folder for the current round, or the next new round folder.
If essential target information is missing and cannot be found locally or from GitHub, stop and ask for the missing target.
Worktree Setup
For PR targets, fetch the PR branch from repos/pocketpal-ai, then create or reuse a dedicated review worktree from that fetched ref.
MAIN_REPO="./repos/pocketpal-ai"
PR_NUMBER="{PR_NUMBER}"
REVIEW_ID="PR-${PR_NUMBER}"
WORKTREE_PATH="./worktrees/${REVIEW_ID}"
cd "${MAIN_REPO}"
PR_INFO=$(gh pr view ${PR_NUMBER} --json title,body,author,files,additions,deletions,commits,url,headRefName)
git fetch origin "pull/${PR_NUMBER}/head:pr-${PR_NUMBER}"
cd - >/dev/null
[ -d "${WORKTREE_PATH}" ] || ./tools/create-worktree.sh "${REVIEW_ID}" --branch "pr-${PR_NUMBER}" --ref "pr-${PR_NUMBER}"
./tools/sync-worktree-config.sh "${WORKTREE_PATH}"
cd "${WORKTREE_PATH}"If an expected worktree path is missing but git worktree list contains a stale entry, do not remove it with raw git or filesystem commands.
Create or reuse an allowed task or PR worktree according to the loaded repo instructions, or report the blocker.
Context To Read
Read only the context that applies to the review target.
context/pocketpal-overview.mdfor product and domain orientation.docs/standards/architecture.mdfor app boundaries, runtime surfaces, and data-flow orientation.context/patterns.mdfor local implementation and test conventions.docs/workflows/visual-capture.mdwhen UI screenshots or visual evidence are relevant.
Review Artifact Folder
Write durable artifacts in the following folder:
workflows/reviews/<TARGET_ID>/round-<N>/Determine N as (highest existing round-<k> dir for this TARGET_ID) + 1, unless explicitly continuing an in-progress round. The max-2-rounds cap and escalation are owned by the caller (the /start-task delivery loop). A standalone /review-pr run performs a single round, states its round number, and does not enforce the cap itself.
For a complete high-risk review, these files are required:
review-map.mdarchitect.mdqa.mdsecurity.mdperformance.mdmobile.mddata.mdux.mdlocal-invariants.mdverification.mdfinal.md
If a required role artifact is missing, the final review must say review_complete: no and role_subreviews: BLOCKED.
Review Map
Create review-map.md before role review.
The map is orientation for reviewers, not the final verdict.
Include:
- target metadata: target, base/head refs, worktree path, story/PR links.
- changed file groups.
- runtime and data-flow notes.
- requirements and acceptance-criteria coverage.
- risk classification.
- required role reviewers.
- suggested file focus per role.
- verification required by policy.
For large or ambiguous reviews, use these map helper agents before writing the final map:
pocketpal-review-map-architectpocketpal-flow-analystpocketpal-requirements-mapper
Summarize helper output into review-map.md.
Do not treat helper output as final review findings.
Risk Classification
Classify the review as high risk when any condition is true:
- changed files > 10.
- native dependency or native code changes.
- persistence, migration, or schema changes.
- security or trust-boundary changes.
- model, tool, or execution changes.
- multi-surface changes.
- the user explicitly asks for a robust, deep, or role-based review.
For high-risk reviews, run all required role subreviews. Role agents:
pocketpal-architect-reviewerpocketpal-qa-reviewerpocketpal-security-reviewerpocketpal-performance-reviewerpocketpal-mobile-reviewerpocketpal-data-reviewerpocketpal-ux-reviewerpocketpal-local-invariants-reviewer
Subreview Gate
This gate is mandatory for high-risk reviews.
If role subreviews are required, run read-only role subreviews before issuing the final review.
If required role reviewers cannot run, do not produce a complete final review.
Mark the output as review_complete: no and role_subreviews: BLOCKED.
Use this delegation shape:
Use <role-agent-name>.
Target: <target>
Worktree: <review worktree>
Base ref: <base SHA/ref>
Head ref: <head SHA/ref>
Review map: workflows/reviews/<TARGET_ID>/round-<N>/review-map.md
Output artifact: workflows/reviews/<TARGET_ID>/round-<N>/<role>.md
Return only concrete findings with severity, lens, file:line, impact, evidence, and fix, or NOTHING_FOUND.
Write the result to the output artifact when file writes are available.
Do not modify source files or review inputs.Role reviewers may write role artifacts directly.
If a role reviewer returns output without writing the artifact, write that output verbatim to the required artifact path before final review synthesis.
Use the role artifacts to produce the final review.
Each role artifact must use this shape:
# <Role> Review: <TARGET_ID> Round <N>
status: FINDINGS | NOTHING_FOUND
## Findings
### <ID>: <Title>
severity: BLOCKER | CONCERN | SUGGESTION confidence: high | med | low lens: Correctness | Architecture | Maintainability | Tests | Security | Data / Migration | Performance/Resources | UX / Accessibility | Platform / Native path: relative/path.ts line: 123 impact: One sentence. evidence: Short quote or concrete code reference. fix: One sentence.Verification
Run feasible verification from the app worktree.
Before JS tests, ensure dependencies exist:
- run
yarn installin the app worktree whennode_modulesorjestis missing. - run
yarn installine2e/before E2E commands.
Native dependency or native code changes require:
pod install.- iOS build.
- Android build.
Missing required native verification is a blocking review issue unless the user explicitly changes the requirement.
Write verification status to verification.md.
Final Synthesis
Read all role artifacts and verification.md, then write final.md.
Use final.md as the team-facing review response and synthesis record. It should contain the final normalized findings, role subreview status, verification status, residual risks, open questions, and review-completeness fields in the standard output shape.
Before final output:
- Confirm every required role artifact exists, or mark the review incomplete.
- Merge duplicate findings.
- Refute each BLOCKER/CONCERN (standard's Adversarial verification) as a reviewer independent of the one that raised it; record
refutation: standsor drop/downgrade withrefutation: withdrawn — <reason>. - Apply the mechanical verification gate: no
APPROVE/review_complete: yesoverNOT_RUNchecks. - Include short synthesis notes only when they matter, such as unavailable reviewers, merged duplicates, missing role artifacts, or verification gaps.
Final Response
Write final.md using the standard output shape from docs/standards/code-review.md.
Respond from final.md.
The final response must be team-shareable.
Include:
role_subreviews: COMPLETED | BLOCKED | NOT_REQUIRED.review_complete: nowhen required role subreviews did not complete.- findings grouped by severity.
- verification status.
- residual risks and open questions.
For a complete high-risk review, role_subreviews must be COMPLETED.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

