← ClaudeAtlas

wise-pr-add-reviewerslisted

Attach Copilot code review to the PR for the current branch, then prompt the user for individual reviewers (free-text comma-separated logins, with CODEOWNERS-derived candidates and org members shown inline for reference). Idempotent — already-requested reviewers are detected and not re-requested. This skill runs just the reviewer attach step on an existing PR. Fails with a clear message if the current branch has no open PR — run `/wise-pr-create` first. Invoked as `/wise-pr-add-reviewers` (bare alias) or `/wise:wise-pr-add-reviewers` (canonical). Use when the user says "add reviewers", "request review", "ping Copilot", or types `/wise-pr-add-reviewers`.
e1024kb/wise-claude · ★ 1 · AI & Automation · score 77
Install: claude install-skill e1024kb/wise-claude
# /wise-pr-add-reviewers — attach reviewers to the current branch's PR ## Why this skill exists Most PRs end up requesting Copilot code review plus 0–N individuals picked from CODEOWNERS or the org. This skill is the narrowed surface — just the reviewer attach step, on a PR that already exists (`/wise-pr-create` makes the PR; `/wise-pr-watch` drives CI). Single source of truth for the reviewer logic: `plugins/wise/references/pr/ensure-reviewers.md`. This skill reads it at run time and follows it. ## Invocation ``` /wise-pr-add-reviewers /wise:wise-pr-add-reviewers # canonical namespaced form ``` No positionals, no flags. Anything the user types beyond the skill name is ignored. ## Procedure This skill does NOT probe dependencies up-front. If `gh` / `git` is missing or `gh` is unauthenticated, the first command below fails with a clean error (`command not found`, or `gh: auth status: not logged in`) and Claude surfaces that to the user with a pointer at `/wise-init`. ### 1. Verify a PR exists for this branch ```bash BRANCH="$(git rev-parse --abbrev-ref HEAD)" PR_JSON="$(gh pr view --json number,url 2>/dev/null)" ``` If `PR_JSON` is empty (gh returned non-zero — no PR for this branch), STOP with: ``` No open PR found for branch <BRANCH>. Create one first: /wise-pr-create ``` Do NOT attempt to create a PR here — that's `/wise-pr-create`'s responsibility. This skill operates only on existing PRs. Otherwise parse the JSON: - `pr_number = .number` - `pr_ur