pr-classifylisted
Install: claude install-skill yuri-semenenko/ai-engineering-workspace
# PR classify
Review the current branch (or a specified PR) and produce structured feedback in the user's canonical classification scheme. The user is a Staff Engineer who explicitly wants to filter out nitpicks and focus on meaningful engineering concerns.
## Preconditions (before any review work)
1. **Auth.** Run `gh auth status`. If unauthenticated, stop and tell the user to run `gh auth login` before continuing. Do not fall back to a local-branch-only review silently.
2. **PR target.** A PR number/URL or a checked-out branch with an open PR is required. If invoked as a bare review with no PR context, ask for the target instead of guessing.
3. **Open state.** Verify the PR is still open: `gh pr view <id> --json state,mergedAt`. If it is merged or closed, surface that and confirm the user still wants the review before proceeding.
## Steps
1. **Identify the PR scope.** If invoked on a branch, run `gh pr view --json title,body,baseRefName,headRefName,files` or `git diff <base>...HEAD`. If invoked with a PR number/URL, fetch via `gh pr view <id>`.
2. **Read the tests first, then the diff fully.** Start with the tests and the PR description to recover intended behavior — what the change is supposed to do — then read the implementation against that intent, not just changed-line context. Cross-reference touched files for callers and tests.
3. **For each finding, decide the bucket BEFORE writing it.** If it's borderline Important/Optional and you can't articulate the cost of