claude/skills/diff/SKILL.md
Quick pre-commit smoke test of staged or unstaged changes. Scans for blockers (secrets, debug statements, commented code, silent failures) and warnings (oversized functions/files, deep nesting, domain leakage). Use when asked to review staged changes, run a pre-commit check, or when the /diff command is invoked.
npx skillsauth add paulnsorensen/dotfiles diffInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Quick smoke test. Catch the obvious, skip the nitpicks.
# Default: staged changes
git diff --staged
# If no staged changes, show unstaged
git diff
# If a ref is provided, diff against it
git diff {ref}
If there are no changes at all, say so and stop.
sg — structural checks: empty catch blocks, missing error handling, functions missing return typesrg — text patterns: TODO/FIXME, console.log, hardcoded secrets, debug statements, commented codeRead — context: when a pattern match needs surrounding code to judge if it's a real problemDefault to rg. Reach for sg when the question is about code shape, not text.
Check the diff for these categories only — in priority order:
Blockers (must fix before commit):
console.log / print / fmt.Println debug statements left inWarnings (worth a second look):
If clean:
Staged changes look clean. {N} files, {additions}+/{deletions}-.
Ready to commit.
If issues found:
## Pre-commit Check: {N} files
### Blockers
- {file}:{line} — {issue}
### Warnings
- {file}:{line} — {issue}
{Blockers} must be fixed. {Warnings} are your call.
This is a quick gate, not a code review. For thorough review, use /age or /code-review.
sg pattern matching operates on full files, not diff hunks — patterns may match pre-existing code--no-pager for machine-readable outputtools
Reconstruct what a past coding-agent session was doing so you can resume it — goal, files touched, last verified state, and the next step — by querying the session logs. Use when the user says "what was I working on", "recover that session", "reconstruct where I left off", "resume my last session", "what did that session change", "rebuild context from logs", or invokes /work-recovery. Report-only — it never scores or judges. Do NOT use for usage scoring (that is /skill-improver, /tool-efficiency, /prompt-analytics) or one-off interactive log queries (that is /session-analytics).
development
Curate this repo's hallouminate wiki (.hallouminate/wiki/, the repo:dotfiles:wiki corpus) — add or update architecture pages, per-harness docs, and gotchas. Use when the user says "update the wiki", "document this in the wiki", "refresh the harness docs", "add a wiki page", "curate the wiki", "the wiki is stale", or invokes /wiki-curator. Also use at session end to write back a non-obvious decision or gotcha worth preserving. Grounds the existing wiki first, follows one-topic-per-file conventions, verifies every external doc URL before writing, and reindexes. Do NOT use for general code search (that is cheez-search) or for editing AGENTS.md command reference.
tools
Audit how a tool, command, or MCP server is actually used across coding-agent sessions and produce calibrated recommendations — tool-vs-task fit, error forensics, fix recommendations, permission friction, MCP health, and token economics. Use when the user says "tool efficiency", "am I using X efficiently", "audit tool usage", "why does X keep failing", "how do I fix this error", "what should I change", "permission friction", "is this MCP worth it", "tool error rate", "fix recommendations", or invokes /tool-efficiency. Do NOT use for auditing a skill or agent definition (that is /skill-improver) or for one-off interactive log queries (that is /session-analytics).
tools
Analyze how prompts and skill routing behave across coding-agent sessions and produce calibrated recommendations — prompt-pattern analysis, routing accuracy, and knowledge gaps. Use when the user says "analyze my prompts", "prompt patterns", "is routing working", "which skill should have fired", "knowledge gaps", "what do I keep asking", or invokes /prompt-analytics. Do NOT use for auditing a single skill/agent definition (that is /skill-improver), tool/MCP efficiency (that is /tool-efficiency), or one-off interactive log queries (that is /session-analytics).