skills/mine-review/SKILL.md
Use when the user says: "review my changes", "run the reviewers", "code and integration review", "readability review", "maintainability review", "sniff test this", "WTF check", "code smells", "is this code any good", "fresh eyes on this branch", "review this directory", "check this module", "review this skill", "review these instructions". Dispatches three parallel reviewers — code, integration, and a readability pass for code; consistency, instruction quality, and writing quality for instruction files — and consolidates findings into one prioritized report.
npx skillsauth add NodeJSmith/Claudefiles mine-reviewInstall 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.
Dispatches three parallel reviewers adapted to content type. Code: correctness, integration fit, readability. Instruction files: consistency, instruction quality, writing quality. Consolidates into a prioritized report.
$ARGUMENTS — optional scope. Empty for full branch diff, or a directory/file list. Path mode when files exist with no branch changes.
Read and execute ${CLAUDE_CONFIG_DIR:-~/.claude}/skills/mine-review/scope-detection.md.
get-skill-tmpdir mine-review → <tmpdir>git rev-parse HEAD → <sha><diff command> > <tmpdir>/diff.patchA file is an instruction file if it has a .md extension. If ALL files are instruction files, use instruction mode. Otherwise code mode.
Diff at <tmpdir>/diff.patch (HEAD: <sha>). Read changed files for surrounding context. Before relying on the diff, verify HEAD matches <sha>.Review these existing files (not a diff): <file list>Read every changed file in full, not just diff hunks.Each agent has its own checklist and output format. Pass scope only:
subagent_type: "code-reviewer" — Review changes. <scope line>subagent_type: "integration-reviewer" — Review changes. <scope line>subagent_type: "wtf-reviewer" — Review changes. <scope line>subagent_type: "fine-toothed-comb" — Review these instruction files for consistency, accuracy, and completeness. <scope line>. Read sibling files for cross-reference context.subagent_type: "instruction-quality-reviewer" — Review these instruction files. <scope line>subagent_type: "writing-quality-reviewer" — Review these instruction files. <scope line>If two reviewers flagged the same issue, keep one entry and note the cross-signal: (flagged by code-review + readability pass).
Apply the protocol from ${CLAUDE_CONFIG_DIR:-~/.claude}/skills/mine-challenge/findings-protocol.md: findings valid by default; flagging one as likely invalid requires a concrete evidence trail.
Organize by severity, not by reviewer. Report header:
## [Technical|Instruction] Review: [branch name or target path]
**Scope:** N files changed, +X/-Y lines (diff) | N files, X total lines (path)
**[Reviewer 1]:** PASS / WARN / FAIL
**[Reviewer 2]:** PASS / WARN / FAIL
**[Reviewer 3]:** X findings (N HIGH, N MEDIUM, N LOW)
**Likely-invalid:** N
Source labels — code mode: Code, Integration, Readability. Instruction mode: Consistency, Instruction, Writing.
Findings in severity-grouped tables (### Critical / High, ### Medium, ### Low). Each finding includes the proposed fix — the specific edit that would be applied. The user decides what to fix based on seeing both the problem and the proposed edit. Likely-invalid findings in a separate section with Claimed/Actually/Why-invalid fields.
AskUserQuestion:
question: "What would you like to do with these findings?"
header: "Next steps"
multiSelect: false
options:
- label: "Fix all"
description: "Apply the proposed fixes listed above, highest severity down, then re-read the modified content"
- label: "Fix critical/high only"
description: "Address blockers, leave medium/low for later"
- label: "Note and move on"
description: "Acknowledged — no fixes this session"
If fixing: work through findings top-down by severity, making edits directly. After fixes: "Fixes complete — run /mine-commit-push or proceed to commit when ready."
/mine-audit/mine-clean-codedevelopment
Use when the user says: "document how X works", "write up how this works", "durable explanation", "explain this for the docs", "document this subsystem". Writes a durable, architectural-altitude explanation that survives code churn.
development
Use when picking up a fresh session after /clear, a stop, or an unanswered AskUserQuestion. Reconstructs the prior session's intent from its transcript tail and surfaces any unresolved decision; user-invoked only — for a hand-written end-of-day handoff use /mine-good-morning instead.
development
Use when the user says: "what did we discuss", "continue where we left off", "remember when", "as I mentioned", "you suggested", "we decided", "search my conversations", "find the conversation where", "what did we work on", or uses implicit signals like past-tense references, possessives without context, or assumptive questions. Direct search over past Claude Code sessions via cass.
tools
Use when the user says: "what context do I have", "relevant history for this task", "what have we done related to this". Also usable proactively when starting work that likely has prior history. Assembles a structured context brief from past session history via cass, scoped to the current task and workspace.