sde-reviewlisted
Install: claude install-skill tomtommyyuan/automated-sde-skill
# /sde-review — review like the senior engineer on the team
Two modes, chosen by the argument:
- **Self-review** (no argument): the current branch against its base, uncommitted changes included.
Findings are reported, then blockers and should-fixes are fixed and committed — reviewing your
own branch exists to make it ready. `--report-only` skips the fixing.
- **PR review** (a number or URL): someone else's pull request, checked out in a worktree so your
own tree stays untouched. Findings are shown in chat; they are posted to GitHub when the user
asked for that (review / comment on / post to the PR) or with `--post`.
Arguments: `$ARGUMENTS`
## Step 1 — Get the change in front of you
Self: base from `.claude/sde.json` (detect per `~/.claude/skills/sde-pr/references/repo-profile.md`
when missing). `git diff <base>...HEAD`, plus `git diff` and `git diff --cached` for the tree.
PR: `gh pr view <n> --json number,title,body,author,headRefName,baseRefName,files,reviews,comments,reviewDecision`.
Then `git fetch origin pull/<n>/head:pr-<n>` and `git worktree add ../<repo>-pr-<n> pr-<n>`; work
inside that worktree; `git worktree remove` it at the end. Diff: `git diff <base>...pr-<n>`.
## Step 2 — Understand what it claims to do
Read the PR body, the commit messages, the linked issue (`gh issue view <n>`), and any plan file
under `tasks/` that names the branch. Write one sentence: what this change is supposed to do. The
review checks the code against that sentence; drift