From deep-review
Use this skill when the user wants to create or set up a REVIEW.md configuration file for their repository. Trigger for ANY of these: (1) user says "create REVIEW.md", "set up REVIEW.md", or "configure review rules", (2) deep-review Phase 2c detects no REVIEW.md and suggests creating one, (3) user wants to customize what the deep-review skill focuses on or ignores, (4) user asks "how do I configure the reviewer" or "how do I set review rules". Do NOT trigger for: reviewing code (use deep-review), explaining what REVIEW.md does in the abstract, or editing an already-complete REVIEW.md the user is satisfied with. This skill NEVER loads into the main deep-review context — it is a standalone configuration wizard.
How this skill is triggered — by the user, by Claude, or both
Slash command
/deep-review:build-review-mdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guided wizard that creates a REVIEW.md configuration tailored to the repo's actual languages, frameworks, and priorities. Produces a root REVIEW.md and subdirectory configs only when the multi-stack test justifies them.
Guided wizard that creates a REVIEW.md configuration tailored to the repo's actual languages, frameworks, and priorities. Produces a root REVIEW.md and subdirectory configs only when the multi-stack test justifies them.
This skill produces configuration files, not code review. Do not run review agents or analyze code for bugs. Stay in configuration mode until exit.
Scan the repository to understand what you are configuring. Do this silently — do not ask the user to describe their stack.
Languages — scan file extensions:
.ts, .tsx → TypeScript/React.js, .jsx → JavaScript.py → Python.go → Go.rs → Rust.cs → C#/.NET.java → Java.rb → Ruby.php → PHPFrameworks and runtimes — check for manifest files:
package.json → Node/JS/TS ecosystem; read dependencies and devDependencies for React, Next.js, Vue, Express, NestJS, RTK Query, Zod, Vitest, Jestrequirements.txt / pyproject.toml / setup.py → Python; check for Django, FastAPI, SQLAlchemy, pytestCargo.toml → Rust; check for tokio, axum, sqlxgo.mod → Go; check for gin, echo, gormpom.xml / build.gradle → Java/Kotlin; check for Spring Boot, Hibernate*.csproj / *.sln → .NET; check for ASP.NET Core, EF Core, xUnit, NUnitGemfile → Ruby on RailsMulti-stack / mono-repo detection — a repo is multi-stack when it contains multiple package manifest files in different subdirectories (e.g., frontend/package.json AND backend/*.csproj). Record the subdirectory paths.
Existing REVIEW.md — check whether a root REVIEW.md already exists. If it does, announce what you found and ask:
AskUserQuestion({
"question": "A REVIEW.md already exists at the repo root. What would you like to do?",
"options": [
"Start fresh — replace it with a new one",
"Extend it — add rules to what's already there",
"Cancel — keep what I have"
]
})
If "Cancel", exit immediately with the message: "Your existing REVIEW.md is unchanged."
Announce your detection findings in one sentence (e.g., "I found a TypeScript/React frontend and a .NET backend in separate directories."), then ask:
AskUserQuestion({
"question": "What matters most for this review configuration?",
"options": [
"Security & Correctness — catch secrets, auth gaps, bugs, async errors, type misuse",
"Code Quality & Performance — complexity, duplication, naming, N+1 queries, resource leaks",
"Test Coverage & Conventions — flag missing tests, enforce commit messages, PR size, naming patterns",
"All of the above"
]
})
Record the selected priorities. Security and Correctness always produce prescriptive rules ("MUST", "NEVER", "CRITICAL") because violations are always wrong. Code quality, performance, test coverage, and conventions produce directional rules ("prefer", "consider", "flag when") that allow judgment.
Generate a root REVIEW.md with 8–10 rules drawn from the detected stack and selected priorities. Rules must be specific and verifiable — see guidance below.
Rule writing standards (derived from research on LLM instruction-following):
Start with conservative thresholds:
## Confidence Threshold
85
## Severity Threshold
medium
## Model Tier
frontier
The research consensus: start at confidence 85 and severity medium for the first 2–4 weeks. Lower thresholds after reviewing acceptance rates. Document this in a comment above the thresholds block.
Rule sections — organize by selected priorities:
Skip patterns — always include a full skip block with generated/binary/lock files appropriate to the detected stack. Standard set:
## Skip
**/bin/**
**/obj/**
**/dist/**
**/node_modules/**
**/.next/**
**/Generated/**
package-lock.json
pnpm-lock.yaml
yarn.lock
**/*.g.cs
**/Migrations/*.Designer.cs
**/.vs/**
**/*.suo
**/*.user
**/*.png
**/*.jpg
**/*.woff2
**/*.woff
Adjust for detected stack (e.g., add **/target/** for Rust/Java, **/__pycache__/** for Python, **/vendor/** for Go).
Output — write the file to REVIEW.md at the repo root. Announce: "Root REVIEW.md written with [N] rules."
Apply the multi-stack decision test: for each technology-specific rule you want to add, ask: "Would this rule generate false positives when applied to the other stack?"
If yes → the rule belongs in a subdirectory REVIEW.md. If no → the rule belongs in the root REVIEW.md.
Only create subdirectory configs when the answer is "yes" for at least 3 rules. A single technology-specific rule does not justify a new file — add it to root with a path qualifier in the rule text: "For files in backend/: prefer event-sourced state transitions over direct entity mutation."
When creating subdirectory configs:
## Model Tier and technology-specific ## Skip patterns onlyCommon subdirectory rules by stack:
TypeScript/React frontend:
any, no @ts-ignore without comment).NET/C# backend:
Python:
Go:
Output — write each subdirectory REVIEW.md. Announce each file written and the rule count.
After all files are written, output a brief summary:
REVIEW.md created. Start your review — the config will be picked up automatically.
Files written:
REVIEW.md — [N] rules ([threshold] confidence, medium severity)
[subdir]/REVIEW.md — [N] rules (if applicable)
Thresholds are conservative for week 1. After 2–4 weeks, review your acceptance rate:
- If >60% of findings result in fixes, lower severity threshold to "low"
- If false positives accumulate, raise confidence threshold to 90
- Run `deep-review` on any open PR to see results immediately
Do not offer to run a review or explain the review process. The user can trigger deep-review separately.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub liatrio-labs/claude-deep-review --plugin deep-review