requesting-code-reviewlisted
Install: claude install-skill Jessinra/Lorekeeper
# Pre-Commit Code Verification
Automated verification pipeline before code lands. Static scans, baseline-aware quality gates, an independent reviewer subagent, and an auto-fix loop.
**Core principle:** No agent should verify its own work. Fresh context finds what you miss.
## When to Use
- After implementing a feature or bug fix, before `git commit` or `git push`
- When user says "commit", "push", "ship", "done", "verify", or "review before merge"
- After completing a task with 2+ file edits in a git repo
- After each task in subagent-driven-development
**Skip for:** documentation-only changes, pure config tweaks, or when user says "skip verification".
**This skill vs github-code-review:** This skill verifies YOUR changes before committing. `github-code-review` reviews OTHER people's PRs on GitHub.
## Step 1 — Get the diff
```bash
git diff --cached
```
If empty, try `git diff` then `git diff HEAD~1 HEAD`. If still empty, run `git status`.
If the diff exceeds 15,000 characters, split by file:
```bash
git diff --name-only
git diff HEAD -- specific_file.py
```
## Step 2 — Static security scan
See `references/scan-and-patterns.md` for the full scan commands (hardcoded secrets, shell injection, eval/exec, unsafe deserialization, SQL injection).
## Step 3 — Baseline tests and linting
See `references/scan-and-patterns.md` for test framework detection and linting commands (Python, Node, Rust, Go).
Baseline comparison: stash changes, run baseline, pop. Only NEW failure