code-reviewlisted
Install: claude install-skill nrimen/clean-code-skills
# Code Review
Produce an honest, useful review of the code the user is working on: find real problems, rank them by severity, and save the result as a markdown report in the repo. The review is **read-only** — never edit source files, never commit, never push. The only file this skill writes is the report.
A good review is one the user can act on in a few minutes: the most important problems first, each pinned to a `file:line`, each explaining *why* it matters. A review padded with nitpicks or speculative warnings is worse than a short one, because it buries the findings that count.
## Workflow
### 1. Work out what to review
Unless the user points at specific files, directories, a commit range or a PR, review **the work on the current branch**: everything it adds compared with the branch it was created from, plus uncommitted and staged changes.
Run `bash scripts/detect_context.sh` from the repo root. It prints the current branch, the likely base branch, the merge base, the changed files, and the lint/test commands it can find. Then:
- If the script reports that this is not a git repository, review the files the user names; if they named none, ask what to review.
- Use `git diff <merge-base>` (no second ref) to see committed + uncommitted changes together, and `git status --porcelain` for untracked new files (read those in full).
- If the current branch *is* the base branch (e.g. working directly on `main`), there's nothing to diff against — review uncommitted changes i