Automated summary
An internal review dispatcher that classifies changed files from git diffs and runs the appropriate reviews while skipping ones that already ran.
Strengths
- Automatically maps changed paths to eight distinct review types via path-pattern matching
- Skips redundant reviews by detecting existing artifacts (staged .finish-reviewed stamps, UAT scorecards, privacy markers)
- Single entry point with no confirmation or briefing: /finish alone triggers everything
- Gathers git context in parallel (unstaged, staged, diff vs main, branch commits)
Limitations
- Tightly coupled to a specific repo layout (src/, features/p*.md, .claude/commands/slava/, supabase/migrations/, criteria/ files)
- Assumes prerequisites such as a main branch and subagents wired up to the criteria/*.md files
- Built to be called from /dev and /fix; standalone use is explicitly discouraged except for manually written code
Use it when you coded manually without /dev and want a review before /ship, or as the automatic review step inside /dev and /fix.
Don't use it on a repository that doesn't follow the expected directory structure, nor to review a single isolated file outside this workflow.
Security analysis
SafeThe skill runs read-only git inspection commands (diff, log, branch, rev-parse, rev-list) and dispatches review subagents. It does not execute destructive actions, exfiltrate secrets, or obfuscate payloads. No network calls, no shell pipelines that could be abused.
No concerns found
How this analysis is madeExamples
/finish/finish codeI built this feature by hand without /dev. Run /finish to review all my changes before I ship.name: finish description: "Internal review dispatcher — called by /dev and /fix for code review. Run standalone only if you coded manually without /dev." when_to_use: "Automatically inside /dev (step 9.5) and /fix (QA gate). Standalone use: only when user coded without /dev and wants a review before /ship." version: 1.1.0
/finish
Smart review dispatcher. Classifies what changed, runs the right reviews, skips what already ran.
Principle: The right review for the right change. One command, zero briefing.
Usage
/finish # Review all changes (auto-classify)
/finish code # Code review only (for /dev and /fix auto-mode)
Step 1: Gather Context
Run in parallel:
git diff --name-only # Unstaged changes
git diff --cached --name-only # Staged changes
git diff main...HEAD --name-only # All branch changes vs main
git branch --show-current # Current branch
git log main..HEAD --oneline # Branch commits
Union all file lists into CHANGED_FILES.
If empty: Report "Nothing to review — working tree clean, no commits ahead of main." → exit.
If a P-number feature is detected (from branch name or commits): read the feature spec for context to pass to reviewers.
Step 2: Classify Changes
Apply path-pattern matching to CHANGED_FILES. Each file can trigger one or more review types:
| Path pattern | Review key | Reviewer |
|---|---|---|
| src/**, e2e/**, scripts/*.ts | code | Subagent with criteria/code.md |
| src/app/**/*.tsx, src/app/**/*.css | uat | Delegate to /verify |
| .claude/commands/slava/** | skills | Subagent with criteria/skills.md |
| .claude/rules/**, CLAUDE.md | rules | Subagent with criteria/rules.md |
| supabase/migrations/** | migrations | Subagent with criteria/migrations.md |
| features/p*.md (not in done/) | specs | Subagent with criteria/specs.md |
| docs/**, features/** (public prose) | privacy | Delegate to /privacy |
| docs/decisions.md, docs/technical/** | docs | Subagent with criteria/docs.md |
If /finish code was invoked: only run code type, skip all others.
Report briefly and proceed immediately — no confirmation prompt:
Reviewing 12 files — spawning 3 reviewers (code, skills, privacy). Skipping uat (scorecard exists).
Do NOT ask "proceed?" — the user invoked /finish, that IS the proceed.
Step 3: Detect Already-Ran Reviews
For each review type, check for existing artifacts. Skip reviews that already completed:
| Review key | Detection method |
|---|---|
| uat | features/uat/p{N}.md exists with passing marks in Test Execution Log |
| privacy | .claude/.privacy-reviewed OR $(git rev-parse --git-common-dir)/.privacy-reviewed stamp exists AND its SHA covers all watched-path commits since git rev-list --count origin/main..HEAD -- WATCHED_PATHS returns 0 uncovered commits |
| code | $(git rev-parse --git-common-dir)/.finish-reviewed has a {"type":"code","branch":"<current branch>",...} entry newer than last commit |
| skills | $(git rev-parse --git-common-dir)/.finish-reviewed has a {"type":"skills","branch":"<current branch>",...} entry newer than last commit |
| rules | $(git rev-parse --git-common-dir)/.finish-reviewed has a {"type":"rules","branch":"<current branch>",...} entry newer than last commit |
| migrations | $(git rev-parse --git-common-dir)/.finish-reviewed has a {"type":"migrations","branch":"<current branch>",...} entry newer than last commit |
| docs | $(git rev-parse --git-common-dir)/.finish-reviewed has a {"type":"docs","branch":"<current branch>",...} entry newer than last commit |
| specs | $(git rev-parse --git-common-dir)/.finish-reviewed has a {"type":"specs","branch":"<current branch>",...} entry newer than last commit |
Report what was skipped: "Skipping uat — UAT scorecard p621.md exists (5/5 passing)."
Step 4: Dispatch Reviews
Subagent reviews (spawn in parallel — single message, multiple Agent calls)
For each review type that needs a subagent:
- Read the criteria file:
.claude/commands/slava/build/finish/criteria/{type}.md - Read the changed files (or their diffs if files are large)
- If feature spec exists: read it for context
- If
docs/decisions.md[technical] entries exist: extract them for the code reviewer - Spawn subagent with all content inlined:
Agent(
description="{type} review",
subagent_type="general-purpose",
model="sonnet",
prompt="You are reviewing {type} changes for ClarityPledge.
[CRITERIA FILE CONTENT INLINED]
## Changed Files
[FILE CONTENTS OR DIFFS INLINED]
## Feature Context (if available)
[SPEC SUMMARY]
## Prior Technical Decisions (for code review)
[decisions.md [technical] entries]
Find all specific issues (expect 3-15 for typical changes). If genuinely clean, state what you checked and why no issues were found."
)
Delegated reviews
uat: Report "UAT needed — run/verifyafter fixing any issues from this review."privacy: Invoke/privacydirectly (it handles its own scanning and.privacy-reviewedstamp).
Step 5: Present Findings and Apply Approved Fixes
After all subagents complete:
-
Present concisely. For each issue found, one line:
- What was wrong (the issue)
- Why it matters (what would happen without the fix)
- What the fix would do
-
Ask for decision: "Fix issues before closing? (all HIGH / select / skip)"
all HIGH— apply fixes for every HIGH issue; leave MEDIUM for user review.select— user picks which issues to fix by number.skip— no fixes applied; findings recorded in stamp withissues_fixed: 0.
-
Apply only what user approved. Never auto-apply without explicit consent — this is the user's decision point.
-
Flag ambiguous issues separately. If a fix could change behavior beyond the stated issue (e.g., tightens a validator in a way that might reject prior-valid input), present it as "Flagged — needs your decision because [reason]" and do NOT include it in
all HIGHbulk-apply.
Example output:
/finish — 4 issues found.
HIGH:
1. Stale `/review-all` ref in dev.md:459 — would route to archived skill. Fix: update to `/finish`.
2. Missing null check in story-card.tsx:67 — would crash on deleted points. Fix: add optional chaining.
MEDIUM:
3. Third-party names in p581:72 — PII risk in public repo. Fix: anonymize.
4. Unreleased pricing in p599:33 — competitive exposure. Fix: replace with [FOUNDER DECISION].
Fix issues before closing? (all HIGH / select / skip)
After user decision, apply approved fixes and proceed to Step 6.
Manifest drift check (supabase changes detected)
After applying fixes, if the branch touches supabase/migrations/ or supabase/functions/, run:
if git diff --name-only main..HEAD | grep -qE '^supabase/(migrations|functions)/'; then
if ! ./scripts/check-deploy-manifest.sh --env prod 2>/dev/null; then
echo "⚠ Prod manifest drift detected — run before /ship:"
echo " ./scripts/migrate.sh --env prod (if migrations pending)"
echo " supabase functions deploy ... (if edge functions pending)"
echo "This won't block /ship, but you'll hit the same gate there."
fi
fi
Non-blocking — /finish continues regardless of drift. Surfaces the warning while the work is fresh; the hard gate remains at /ship step 3.6. Do NOT write anything to .finish-reviewed for this check.
Step 6: Write Artifact
Subagent mode — skip this step. When /finish is dispatched as a subagent by /dev (step 9.5) or /fix (QA gate step 1), the caller writes the stamp itself in step 9.5a / 1a. Subagents cannot reliably run this step — only standalone /finish invocations reach Step 6.
After review completes, write the shared stamp at <git-common-dir>/.finish-reviewed (resolves to the main repo from any worktree, mirroring .privacy-reviewed, P950/P1002):
GIT_COMMON_DIR="$(git rev-parse --path-format=absolute --git-common-dir)"
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
echo "{\"type\":\"code\",\"branch\":\"$BRANCH\",\"timestamp\":\"2026-04-03T14:00:00Z\",\"issues_found\":2,\"issues_fixed\":2}" >> "$GIT_COMMON_DIR/.finish-reviewed"
JSON-lines format — one line per review type, each carrying the branch it was reviewed on (the file is shared across every worktree, so this lets gate 2.7/2.7b distinguish this branch's review from a concurrent worktree's review of an unrelated feature — P1002). Append (don't overwrite) so partial runs are preserved.
Notes
- Parallel = fast. All subagent reviews run simultaneously.
- User-approved fixes.
/finishpresents findings and asks before applying. This matches how/devand/fixuse it (they inherit the same approval gate). - Partial results OK. If one subagent times out, fix what was found and note what was skipped.
- Re-run is cheap.
/finishafter fixes will skip already-reviewed types (checks.finish-reviewedtimestamps).
Related Skills
/verify— Live UAT via Playwright/Chrome (delegated by /finish for UI changes)/privacy— PII scan (delegated by /finish for public doc changes)/dev— Implementation pipeline (calls/finish codeat step 9.5)/fix— Bug fix pipeline (calls/finish codeat QA gate)/ship— Shipping gate (checks.finish-reviewedexists)
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/finish-code-review-dispatcher-ms71b445' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/finish-code-review-dispatcher-ms71b445/download' --output '.skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md.part' && mv '.skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md.part' '.skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md' && test -s '.skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/finish' && cp -R '.skill-downloads/finish-code-review-dispatcher-ms71b445' '.claude/skills/finish'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/finish-code-review-dispatcher-ms71b445'openskills read 'finish-code-review-dispatcher-ms71b445'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/finish-code-review-dispatcher-ms71b445/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.