← ClaudeAtlas

local-code-reviewlisted

Review uncommitted local code changes (working directory + staged) in a git repo, hunting for bugs, security issues, missing test coverage, and blast radius — everything downstream the change could break — then report findings grouped by severity and lay out an ordered plan to fix them. Use this skill whenever the user asks to review their changes, check their diff, look over what they wrote before committing, sanity-check a patch, trace what a change might affect, or says anything like "review my code", "can you look at this before I push", "did I break anything", "what does this touch", or "check my changes" — even if they don't say the words "code review". Also use it when the user is about to commit, open a PR, or asks whether their work-in-progress looks correct.
rdlugs/ai-skills · ★ 0 · Code & Development · score 60
Install: claude install-skill rdlugs/ai-skills
# Local Code Review Review the user's uncommitted work the way a careful teammate would: read the actual diff, understand the surrounding code before judging it, and report only what matters. ## Scope Default to **uncommitted changes**: both the working directory and the staging area. That is what the user is about to commit, so that is what deserves scrutiny. If the user names a different scope (a branch comparison, the last N commits, a specific file), follow their lead instead. ## Workflow ### 1. Establish the diff ```bash git status --short # what's touched, including untracked git diff # unstaged changes git diff --staged # staged changes ``` Untracked files never show up in `git diff`, and new files are frequently the ones with the real problems. Read them in full with `cat`. If there are no changes, say so plainly rather than inventing something to review. ### 2. Read for context, not just for the diff A diff hunk shows what changed, not whether it's correct. Before flagging anything, open the surrounding function or file. Most false positives come from reviewing a hunk in isolation — a "missing null check" is often handled by the caller three lines above the hunk boundary. Where a change touches an interface, grep for its callers. A renamed parameter or a changed return type is only safe if every call site agrees. ### 3. Map the blast radius The diff tells you what changed. The blast radius tells you what