skills/mine-implementation-review/SKILL.md
Use when mine-orchestrate Phase 3 runs the post-execution quality gate. Reviews changed files against design doc and task files using a Sonnet subagent.
npx skillsauth add NodeJSmith/Claudefiles mine-implementation-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.
Post-execution quality gate. After /mine-orchestrate finishes, this reviews the full implementation against the original design doc and task files. Uses a Sonnet subagent for structured review across 7 categories.
$ARGUMENTS — path to a feature directory (design/specs/NNN-feature/) or a design.md file. If empty, find the most recently modified design/specs/*/design.md and confirm before proceeding.
If $ARGUMENTS points to a design/specs/NNN-*/ directory, use it directly.
If $ARGUMENTS points to a design.md file, the feature directory is one level up.
If $ARGUMENTS is empty:
Glob: design/specs/*/design.md
Sort by modification time, take the most recent. The feature directory is one level up. Confirm:
AskUserQuestion:
question: "Found feature at <feature_dir>. Review its implementation?"
header: "Confirm feature"
multiSelect: false
options:
- label: "Yes — review it"
- label: "No — let me specify the path"
description: "Tell me the correct feature directory and I'll use that"
Read <feature_dir>/design.md in full.
Read all <feature_dir>/tasks/T*.md files in order. If no task files exist, proceed with design-only review and note this in the summary.
Run git-branch-diff-files to find which files were changed since the branch diverged from its base. This handles base-branch detection automatically (closest remote branch, then default branch fallback):
git-branch-diff-files
If still empty (e.g., no commits yet), fall back to:
git diff --name-only HEAD~1
Read each changed file. If the list is large (more than 15 files), prioritize files referenced in the task Prompt sections first.
Run get-skill-tmpdir mine-impl-review and use <dir>/review.md for the review output.
Read ${CLAUDE_CONFIG_DIR:-~/.claude}/skills/mine-implementation-review/reviewer-prompt.md.
Launch a general-purpose subagent with model: sonnet. Pass this prompt (fill in bracketed values):
You are reviewing a completed caliper v2 feature implementation.
## Design doc
<full design.md content>
## Task files
<full content of each T*.md in order, separated by "--- T<NN> ---" headers>
## Changed files
<for each changed file: filename header + full content>
## Your instructions
<full reviewer-prompt.md content>
Write your complete structured review to: <temp file path>
The subagent will write the review to the temp file.
Read the temp file. Format the results clearly:
N. <name>: PASS|WARN|FAIL — notePhase 3 is the final output. The caller (mine-orchestrate) handles all gate logic, status updates, and next-step decisions. This skill does not prompt the user or update design.md.
development
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.