Skip to content
Back to skills

Exact Head Review

ASecurity

Resolve the live PR head and verify an isolated checkout before reviewing or recording an exact-revision verdict.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
ai-agentstestinggitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill exact-head-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exact Head Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Exact Head Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-exact-head-review/badge)](https://www.skillsdirectory.com/skills/majiayu000-exact-head-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: exact-head-review
description: "Resolve the live PR head and verify an isolated checkout before reviewing or recording an exact-revision verdict."
---
# Review the actual pull-request head

A supplied SHA is a claim. Resolve the current head independently through the repository API or `gh pr view --json headRefOid,baseRefOid,state`. Confirm repository identity and open state. Compare full object IDs, never short prefixes.

1. Record the resolved head and base, repository, PR number and retrieval time.
2. Fetch the PR's ref through the verified repository remote. Check command success, then verify the fetched object equals the API head. Stop on mismatch or unavailable evidence; do not use stale `FETCH_HEAD`.
3. Create a new detached worktree at that exact commit in an operator-chosen review directory. Do not reuse, reset or clean another worktree. Confirm both HEAD and clean tracked/untracked state before testing.
4. Read the actual diff and consumers. A nonempty diff does not prove the behavior is wanted; a test count does not prove a guard can fail. Use `mutation-check` for important negative paths.
5. Re-read live head/base before issuing the verdict. If either changed, identify affected evidence and review the new candidate. Do not transfer approval by branch name.
6. Report full revision, findings, executed checks, limits and whether the verdict is current. Remove only your clean disposable worktree with `git worktree remove`; preserve dirty evidence for inspection.

No script is bundled for this workflow. Use the available repository connector or installed Git/GitHub CLI, and report unavailable dependencies explicitly.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.