← ClaudeAtlas

pre-pr-reviewlisted

Review the current branch before creating a pull request. Use this skill whenever the user says 'review my changes', 'review this branch', 'pre-PR review', 'check before I merge', 'is this ready to merge', 'review before PR', or 'code review'. Also triggers on 'check my work' or 'anything I missed?' when there are uncommitted or branch-level changes. This skill is for changes made OUTSIDE the /pipeline — the pipeline has its own Stage 5 peer review. Use this after direct edits, implement skill work, or /hotfix runs.
telus-labs/stagecraft · ★ 0 · Code & Development · score 70
Install: claude install-skill telus-labs/stagecraft
# Pre-PR Review Review the current branch as a thorough, senior code reviewer. The goal is to catch issues before they reach human reviewers — saving review cycles and preventing convention drift. This skill is for changes made **outside the pipeline**. If you just ran `/pipeline`, Stage 5 already reviewed the code — you don't need this skill. ## Setup 1. **Detect the base branch** — do not assume `main`: ```bash BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@') if [ -z "$BASE" ]; then git show-ref --verify --quiet refs/heads/main && BASE=main || BASE=master fi echo "Base branch: $BASE" ``` 2. **Load the project's standards** (read whichever exist): - AGENTS.md (coding standards, platform rules) - `core/skills/code-conventions/SKILL.md` (project coding conventions) - `docs/audit/03-compliance.md` (known conventions and anti-patterns from audit) - `docs/audit/00-project-context.md` (project context, commands) - CONTRIBUTING.md 3. **Get the scope of changes:** ```bash git rev-parse --abbrev-ref HEAD git log --oneline $BASE..HEAD git diff --name-only $BASE...HEAD git diff $BASE...HEAD ``` 4. **Check for merge conflicts** with the base branch: ```bash git merge-tree $(git merge-base HEAD $BASE) $BASE HEAD | head -20 ``` If there are conflicts, flag them immediately — they must be resolved before any review makes sense. 5. **Read each changed file in full** (no