/attn:reviewfrom attn
Review a pull request from attn locally, in a temporary git worktree, without posting to GitHub. Use when the user asks to review a PR that is waiting on them in attn.
Ships in attn. 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.
Find the item. If the user did not name one, call attn_items with kind: "pr_review_request" and ask which to review.
Call attn_review_prompt with the item id. The result has the review prompt and localPath, the user's local clone. The prompt's "Base branch" line names the base.
If localPath is null, tell the user that attn found no local clone for the repository and stop. They can set ATTN_CHECKOUT_ROOTS or ATTN_REPO_PATH_MAP in the attn config.
Leave the user's working tree and branches as they are. Do not run the prompt's setup block, which checks branches out in the clone. Instead, in localPath, with <n> the PR number and <base> the base branch:
git fetch origin "+refs/pull/<n>/head:refs/attn/pr-<n>" "+refs/heads/<base>:refs/attn/base-<n>"
tmpdir="$(mktemp -d)"
git worktree add --detach "$tmpdir/pr-<n>" refs/attn/pr-<n>
refs/pull/<n>/head is the PR head on GitHub and GitHub Enterprise, including PRs from forks.
The explicit refspecs work whatever the clone's fetch configuration is.
In $tmpdir/pr-<n>, review git diff refs/attn/base-<n>...HEAD, following the prompt's goal and output format.
When the review is done, run these in localPath: git worktree remove "$tmpdir/pr-<n>", rmdir "$tmpdir", and git update-ref -d refs/attn/pr-<n> and git update-ref -d refs/attn/base-<n>.
Rules:
gh or the GitHub API, and do not post comments or submit a review. Give the findings to the user.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dawson-design/attn --plugin attn