← ClaudeAtlas

github-code-reviewlisted

Review PRs: diffs, inline comments via gh or REST.
Jessinra/Lorekeeper · ★ 3 · Code & Development · score 72
Install: claude install-skill Jessinra/Lorekeeper
# GitHub Code Review Perform code reviews on local changes before pushing, or review open PRs on GitHub. ## Prerequisites - Authenticated with GitHub (see `github-auth` skill) - Inside a git repository ### Setup ```bash if command -v gh &>/dev/null && gh auth status &>/dev/null; then AUTH="gh" else AUTH="git" if [ -z "$GITHUB_TOKEN" ]; then if [ -f ~/.hermes/.env ] && grep -q "^GITHUB_TOKEN=" ~/.hermes/.env; then GITHUB_TOKEN=$(grep "^GITHUB_TOKEN=" ~/.hermes/.env | head -1 | cut -d= -f2 | tr -d '\n\r') elif grep -q "github.com" ~/.git-credentials 2>/dev/null; then GITHUB_TOKEN=$(grep "github.com" ~/.git-credentials 2>/dev/null | head -1 | sed 's|https://[^:]*:\([^@]*\)@.*|\1|') fi fi fi REMOTE_URL=$(git remote get-url origin) OWNER_REPO=$(echo "$REMOTE_URL" | sed -E 's|.*github\.com[:/]||; s|\.git$||') OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1) REPO=$(echo "$OWNER_REPO" | cut -d/ -f2) ``` --- ## 1. Reviewing Local Changes (Pre-Push) ### Get the Diff ```bash git diff --staged # staged changes git diff main...HEAD # all changes vs main git diff main...HEAD --name-only # file names only git diff main...HEAD --stat # stat summary ``` ### Review Strategy 1. **Big picture:** `git diff main...HEAD --stat` + `git log main..HEAD --oneline` 2. **File by file:** `git diff main...HEAD -- src/auth/login.py` + `read_file` for context 3. **Check for common issues:**