← ClaudeAtlas

sde-reviewlisted

Review a diff or a pull request the way a senior engineer would — verified, severity-rated findings (blocker / should-fix / nit), each anchored to file:line with a concrete fix, across correctness, security, tests, ML and data pitfalls, and the repo's own conventions. Use to self-review the current branch before opening a PR (fixes are applied and committed), or to review someone else's PR by number or URL and post the review on GitHub.
tomtommyyuan/automated-sde-skill · ★ 0 · Code & Development · score 70
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