namht-reviewlisted
Install: claude install-skill NamHT4Devlop/nam-claude-skill
# Spec Review — two-phase code review
A native port of Auto Spec extension's `/review`. Produce an **actionable** review: every issue
must show the exact bad code and the complete fixed code — never "add X here".
## Inputs
- **Find impacted consumers with Grep/Read.** Read the target, then **grep for its callers/callees**
to surface impacted consumers and test gaps for Phase 2 (flag any changed symbol with no covering test).
- **Target** — resolve in this order (detect the default branch with
`git symbolic-ref --short refs/remotes/origin/HEAD` → strip `origin/`; fall back to `main`, then `master`):
1. **A PR** — the arg is `#123`, a bare number `123`, a GitHub PR URL, or "pr 123"/"review PR 123".
**Preflight `gh` first (don't skip):**
- `command -v gh` — if missing, tell the user to install GitHub CLI (or paste the diff instead).
- **Determine the host**: from the PR URL's domain if a URL was given; else from the repo remote
(`git remote get-url origin`, parse the host); else `$GH_HOST`. A host that is **not
`github.com` ⇒ GitHub Enterprise Server** — common on a **company machine**.
- **Check login for that host:** `gh auth status --hostname <host>`. If not logged in, STOP and
ask the user to authenticate before retrying: `gh auth login --hostname <host>`
(for Enterprise use the company host, e.g. `github.mycompany.com`; org SSO often needs
`--web`). Offer the "paste the diff" fallback meanwhile. (Don't run `gh a