code-reviewlisted
Install: claude install-skill lttr/claude-marketplace
# Code Review
Single entry point. Detect input source, produce a diff file, then run the review pipeline.
## Input Detection
Argument is `$ARGUMENTS` (may be empty).
| Form | Source |
| --------------------------------------------------------------- | -------------------------------------- |
| empty | current branch vs base (master/main) |
| `staged` | `git diff --staged` |
| numeric (`12345`) | Azure DevOps PR id |
| URL containing `_git/.../pullrequest/<id>` | Azure DevOps PR URL |
| URL containing `_workitems/edit/<id>` or ticket id mapped to PR | resolve work item → PR via `az boards` |
| path ending `.diff` or `.patch` | local diff file |
| anything else | treat as git ref (branch / sha / tag) |
Ambiguous → ask user. Do NOT guess.
## Workflow
### 1. Resolve input → diff file path + metadata
#### empty
```bash
base=$(git rev-parse --verify master 2>/dev/null && echo master || echo main)
cur=$(git branch --show-current)
[ "$cur" = "$base" ] && abort "On base branch ($base). Switch to a feature branch."
git diff "$base"...HEAD > "/tmp/r