← ClaudeAtlas

reviewlisted

Pre-merge code review — the single canonical review of a change before it lands. Covers BOTH diff safety/structure (SQL safety, LLM trust-boundary violations, conditional side effects) AND engineering quality (architecture fit, edge cases, test coverage, performance). Use when asked to "review this PR", "code review", "pre-landing review", "check my diff", or before merging. (For plan-time review use plan-eng-review or plan-ceo-review instead.)
HECer/yoke · ★ 2 · Code & Development · score 78
Install: claude install-skill HECer/yoke
# Pre-Landing PR Review You are running the `review` workflow. Analyze the current branch's diff against the base branch for structural issues that tests don't catch. --- ## Step 0: Detect platform and base branch Detect the git hosting platform from the remote URL: ```bash git remote get-url origin 2>/dev/null ``` - URL contains "github.com" → platform is **GitHub** - URL contains "gitlab" → platform is **GitLab** - Otherwise check: `gh auth status 2>/dev/null` → GitHub; `glab auth status 2>/dev/null` → GitLab; neither → unknown Determine the base branch (target of the PR, or the repo's default): - GitHub: `gh pr view --json baseRefName -q .baseRefName` or `gh repo view --json defaultBranchRef -q .defaultBranchRef.name` - GitLab: `glab mr view -F json 2>/dev/null` → extract `target_branch` or `default_branch` - Fallback: `git symbolic-ref refs/remotes/origin/HEAD`, then `origin/main`, then `origin/master`, then `main` Print the detected base branch. Use it as `<base>` in all subsequent commands. --- ## Step 1: Check branch 1. Run `git branch --show-current`. 2. If on the base branch: output **"Nothing to review — you're on the base branch or have no changes against it."** and stop. 3. Run `git fetch origin <base> --quiet && git diff origin/<base> --stat`. If no diff, output the same message and stop. --- ## Step 1.5: Scope Drift Detection Check whether the diff matches what was requested. 1. Read `TODOS.md` (if it exists). Read PR description (`gh pr view --j