Unified codebase quality review: merge readiness verdict + maintainability (Clean Code) + docs-vs-code consistency...
Goal: turn βis this change good?β into a repeatable review with a clear merge/production readiness verdict.
This skill intentionally merges three review lenses:
This is the single entry point for Ship Faster reviews. It includes an internal auto-triage:
review-react-best-practices and include its findings.file:line findings.BASE_SHA and HEAD_SHA for diff-based reviewsPLAN_OR_REQUIREMENTS path (e.g. run_dir/evidence/features/<feature_slug>-plan.md)README.md, docs/**, API contracts)run_dir (Ship Faster run directory, if available)# Baseline: main/master merge-base
BASE_SHA=$(git merge-base HEAD main 2>/dev/null || git merge-base HEAD master)
HEAD_SHA=$(git rev-parse HEAD)
git diff --stat "$BASE_SHA..$HEAD_SHA"
git diff "$BASE_SHA..$HEAD_SHA"
Goal: reduce user choice. The reviewer decides which specialized review lens to apply, deterministically, based on the diff.
Collect signals (minimum):
git diff --name-only "$BASE_SHA..$HEAD_SHA"
git diff --stat "$BASE_SHA..$HEAD_SHA"
git diff "$BASE_SHA..$HEAD_SHA"
Routing rules (apply in order):
Docs-only change (fast path):
docs/** or ends with .md|.txt|.rstReact/Next.js performance-sensitive change:
**/*.tsx, **/*.jsxnext.config.*, app/**, pages/**, src/app/**, src/pages/**layout.tsx, page.tsx, middleware.ts, route.ts, loading.tsx)git diff):use client, Suspense, dynamic(, next/dynamic, next/navigation, React.cache, revalidate, fetch(, headers(), cookies()review-react-best-practices and include its output (or link to its artifact) in the final report.UI Web Interface Guidelines audit (a11y/UX rules, terse output):
**/*.tsx, **/*.jsx, **/*.vue, **/*.html, **/*.css, **/*.scssapp/**, pages/**, src/app/**, src/pages/**, components/**, src/components/**https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.mdcurl -fsSL <url>file:line format, grouped by file (high signal, low prose). Treat a11y + focus issues as higher severity than cosmetic issues.Output requirement (at top of your report):
## Triage
- Docs-only: yes|no
- React/Next perf review: yes|no
- UI guidelines audit: yes|no
- Reason: <1-3 bullets based on file paths / patterns>
Use the template: references/code-reviewer.md.
Minimum checks:
Review the diff (and nearby touched code) across these dimensions:
data1, tmp, mixed naming for same concept)Check that docs do not lie:
README.md, docs/**/*.md, config examples, env keys, API contractsProduce a structured report:
quality-review.mdquality-review.json (optional but recommended)If you are working inside a Ship Faster run directory, write to:
run_dir/evidence/quality-review.mdrun_dir/evidence/quality-review.jsonIf triage selects React/Next performance review and a Ship Faster run_dir is available, also persist:
run_dir/evidence/react-best-practices-review.mdIf triage selects UI guidelines audit and a Ship Faster run_dir is available, also persist:
run_dir/evidence/ui-guidelines-review.md (terse file:line findings, grouped by file)## Summary
- Verdict: Ready / With fixes / Not ready
- Scope: BASE_SHA..HEAD_SHA (or file list)
## Triage
- Docs-only: yes|no
- React/Next perf review: yes|no
- UI guidelines audit: yes|no
- Reason: ...
## Strengths
- ...
## Issues
### Critical (Must Fix)
- Location: path:line
- What
- Why it matters
- Minimal fix
### Important (Should Fix)
...
### Minor (Nice to Have)
...
## UI Guidelines (terse, only if audit=yes)
- path:line <finding>
- path:line <finding>