anotherben/claude-harness/enterprise-pr-review
Claude Code and agent skill by anotherben/claude-harness
- community
Checking that the SKILL.md file is still in the repository.
End-to-end PR conversation closer and advisory review harvester for enterprise work. Use this whenever the user mentions unresolved PR conversations, Copilot/GitHub review comments, a PR that cannot merge, skipped/non-blocking Copilot feedback, a failed PR review, or asks to address/resolve/learn from PR feedback. It supports blocking-closeout mode for merge blockers and advisory-harvest mode for valuable non-blocking comments, fixes real bugs with tests, verifies the current head, replies/resolves only where appropriate, and compounds learnings so the same review failure is caught earlier next time.
Install
npx vskill@latest install anotherben/claude-harness/enterprise-pr-reviewSKILL.md
The same SKILL.md was published earlier as anotherben/claude-harness/enterprise-pr-review.
Enterprise PR Review
Helpdesk Overlay Bootstrap
When the current git root is a Helpdesk worktree, make the repo-local overlays available before PR review work:
This creates or refreshes .codex/repo-skills/helpdesk-enterprise-pr-review, .codex/repo-skills/helpdesk-enterprise-stack-review, and the Helpdesk enterprise manifest in whichever branch or worktree is active. After it runs, prefer the repo-local helpdesk-enterprise-pr-review overlay for Helpdesk-specific rules.
Global Precheck
Before reading further, writing artifacts, delegating, or changing files, run:
If it exits non-zero, stop and report stderr verbatim. Do not hand-craft packet files or evidence markers to bypass it.
Overview
This skill turns PR review feedback into a closed, verified engineering loop. It is not a comment-cleanup skill. Treat every unresolved blocking thread as a possible production bug until current code, tests, CI, and review evidence prove otherwise. Treat non-blocking Copilot/advisory comments as valuable review signal to harvest, classify, and learn from without making them default merge blockers.
Use this when the user says:
- "PR 123 has unresolved conversations"
- "address Copilot comments"
- "cannot merge because conversations are unresolved"
- "learn from this failed PR review"
- "skip Copilot conversations but learn from them"
- "harvest non-blocking Copilot comments"
- "resolve PR feedback"
- "make a harness skill that handles PR conversations"
Modes
Use exactly one mode per run:
blocking-closeout: for merge-blocking unresolved conversations, requested PR cleanup, or PRs that cannot merge. Blocking threads must be fixed/replied/resolved or explicitly reported as blocked before declaring merge-ready.advisory-harvest: for Copilot/GitHub comments that are valuable but not blocking after the repo's async-review wait and thread sweep have passed. Advisory comments do not block merge by default, but every useful finding must become one of: immediate fix, tracked follow-up, trap-matrix update, repo gate/script recommendation, contract/plan rule, or skill eval.
Escalate any advisory comment to blocking-closeout or an immediate hotfix if it credibly indicates security, data loss, tenant isolation, schema/query correctness, money/order/invoice/inventory corruption, or broken user-visible behavior in the current diff.
Draft PR Policy
Do not make every PR draft by default. Use this policy:
normal: open PR and keep it open until required gates, async review checks, review-thread state, and any repo-specific pre-merge sweep pass. Do not enable auto-merge by default.high-risk: draft PR until enterprise review/forge/verify/harness have passed and Copilot has either reviewed the current head or an explicit advisory-harvest follow-up is recorded.draft-default: only use draft for all PRs if the repo is confirmed to run Copilot review on draft PRs. If that setting is unknown or disabled, draft-by-default can hide the PR from useful review and slow delivery.
High-risk means schema/query/data-sensitive work, tenant/security, money, orders, invoices, inventory, external integrations, destructive writes, authentication, or UI/PDF/file workflows that affect real operators.
If a PR is already open and later becomes high-risk, do not churn the PR state mechanically. Instead, record the risk, run the required gates, request/re-request Copilot review where useful, and route advisory findings through advisory-harvest.
Universal Enterprise Hardening Baseline
- Use the GPT-5.5 fresh baseline: outcome, success criteria, constraints, evidence, and stop rules come before legacy prompt ceremony.
- Green checks are not enough for blocking-closeout. Async review comments can arrive after checks pass, so live blocking thread state is the merge blocker source of truth.
- Non-blocking Copilot/advisory comments are not default merge blockers, but they are not disposable. Harvest them into fixes, follow-ups, traps, gates, contract/plan rules, or evals.
- Never resolve a review thread just because it is outdated, annoying, or probably fine. Reply with evidence first, then resolve only after proof.
- If a thread identifies a real bug class, add or update a regression test before or with the fix. Do not rely on mock-only, migration-only, or diff-only proof for schema/query/data-sensitive changes.
- If the fix touches UI, PDF upload, file upload, preview/download, modal, navigation, rendered output, print labels, or browser behavior, run headless browser proof.
- If the fix touches database shape, tenant isolation, query semantics, money, order, invoice, inventory, integrations, or writes, use current runtime code reads plus live or migrated-integration DB proof where available.
- If the fix touches a query path, including read-only SELECT/report/verifier/
live-proof code, prove the DB/Query Ownership Packet: owner seam, current DB/schema, tenant/owner scope, affected-row or readback semantics, bounded proof, cleanup, and redaction.
- If the fix touches a mixed-responsibility file, apply the Touched File SRP
Assessment from the contract or create a blocking recycle item. Review-thread cleanup must not leave the touched responsibility tangled just because the thread was narrow.
- If the review comment reveals the final diff drifted from the original user
intent, update the Intent Continuity Ledger and recycle before claiming the PR is ready.
- All verification must be headless. Manual browser or GitHub UI observation is supporting context only.
- If any code, contract, docs, or gate changes are made after review/forge/verify evidence, prior evidence for affected files expires.
- Keep PR review orchestration inside the current harness. Do not route enterprise PR review through external bridge roles.
Entry Gate
Before doing PR work, the global precheck above must already have passed.
PR Requirements Snapshot
Before deep work, read .codex/enterprise-state/hook-ledger/latest-route-card.json and state the current PR target in one compact snapshot. Use the route card for required PR body sections and PR/merge gate names; use live GitHub for the PR facts:
- PR number/URL, target repository, base branch, head branch, and head SHA.
- Draft policy:
normal,high-risk, ordraft-default, with the reason. - Required PR body sections from
route_card.required_pr_body_sections. - Async review/thread policy from
route_card.required_pr_gates, plus required checks, review-ai/Copilot/Claude wait, live unresolved-thread query, and pre-merge sweep. - Enterprise status: whether review, forge, verify, and
pr-readinessor merge gate are already satisfied for the current head, or still required.
Then collect the current PR facts:
Use GraphQL or the GitHub review-thread API to list review threads with:
- thread id
- resolved state
- outdated state
- file path and line
- top-level comment database id
- author
- body
- replies
Do not trust the PR page summary or stale transcript memory for unresolved count.
Deep Think Precheck
Before fixing anything, state a compact precheck:
- Ask: PR number and requested outcome.
- Mode:
blocking-closeoutoradvisory-harvest, and why. - Source read: PR metadata, live thread list, current head SHA, changed files, checks.
- Root objective: close review blockers without hiding real bugs.
- Blast radius: changed runtime/doc/test/gate surfaces and required proof.
- Ownership: source-of-truth files/modules/contracts affected by each thread.
- Edge cases: stale/outdated thread, async new review, branch behind base, CI rerun, false positive, docs path deletion, test-only branch, UI/DB surface.
- SRP:
fix-now: real review findings and missing regression proof.follow-up: broader gate improvements not required to unblock the PR.note-only: historical comments or unrelated docs.- Verification: local commands, repo gates, live thread re-query, CI status, head SHA, and merge readiness.
Workflow
1. Snapshot The PR
Record:
- PR URL and number
- base branch, head branch, and head SHA
- current merge state
- all check names and statuses
- changed files against the PR base
- unresolved review threads
If the branch is behind the base, update/rebase first only when safe for the task. If the local workspace is dirty with unrelated files, use or create an isolated worktree.
2. Build The Conversation Matrix
Create a matrix with one row per relevant thread or comment:
| Thread/comment | File | Author | Blocking? | Outdated | Classification | Required action | Evidence |
|---|
Classify each thread as exactly one:
real-bug: code, test, contract, doc, or gate must change.already-fixed: current head already addresses it; needs evidence and reply.false-positive: reviewer is wrong; needs code-grounded explanation and proof.duplicate: same root cause as another thread; still reply and resolve both after proof.stale-but-valid-learning: no PR fix needed, but update compound/trap learning.advisory-learning: non-blocking comment with useful prevention value; track and compound it without resolving/holding merge.blocked: cannot classify without missing credentials, failing checkout, or unclear branch state.
In blocking-closeout, if any blocking thread is blocked, stop before resolving anything.
In advisory-harvest, do not hold merge for advisory-only comments. Stop only when an advisory comment escalates to a credible P0/P1/P2 correctness risk and the required proof/fix is unavailable.
3. Fix Real Findings
For every real-bug:
- Read the current implementation and the consumer path before editing.
- Trace the root cause and same-class siblings.
- Add or update a contract/postcondition when the finding reveals a missing invariant.
- Add a regression test that fails for the bug class.
- Implement the smallest correct fix.
- Run the focused test and the relevant repo gate.
Use the PR reviewer trap matrix:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/enterprise-pr-review/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anotherben/claude-harness/enterprise-pr-review)