review
Principle-grounded review of code changes, PRs, or plans. Use when asked to review, critique, or assess quality of work — "review", "review this", "code review", "check this".
Best use case
review is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Principle-grounded review of code changes, PRs, or plans. Use when asked to review, critique, or assess quality of work — "review", "review this", "code review", "check this".
Teams using review should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/review/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How review Compares
| Feature / Agent | review | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Principle-grounded review of code changes, PRs, or plans. Use when asked to review, critique, or assess quality of work — "review", "review this", "code review", "check this".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
SKILL.md Source
# Review Thorough review grounded in project principles. **Do NOT make changes — the review is the deliverable.** **Use Tasks to track progress.** Create a task for each step below (TaskCreate), mark each in_progress when starting and completed when done (TaskUpdate). Check TaskList after each step. ## Step 1 — Load Principles Read `brain/principles.md`. Follow every `[[wikilink]]` and read each linked principle file. These principles govern review judgments — refer back to them when evaluating issues. **Do NOT skip this. Do NOT use memorized principle content — always read fresh.** ## Step 2 — Determine Scope Infer what to review from context — the user's message, recent diffs, or referenced plans/PRs. If genuinely ambiguous (nothing to infer), ask. Auto-detect review mode from change size: - **BIG CHANGE** (50+ lines changed, 3+ files, or new architecture) — all sections, at most 4 top issues per section - **SMALL CHANGE** (under those thresholds) — one issue per section ## Step 3 — Gather Context For **SMALL CHANGE** reviews, read files directly in the main context — delegation overhead exceeds the cost of reading a few files. For **BIG CHANGE** reviews, delegate exploration to subagents via the `Task` tool. Spawn exploration agents (subagent_type: `Explore`) to: - Read the code or plan under review - Identify dependencies, callers, and downstream effects - Map relevant types, tests, and infrastructure Run multiple agents in parallel when investigating independent areas. ## Step 4 — Gather Domain Skills Check installed skills (`.agents/skills/`, `.claude/skills/`) for any that match the review's domain. **Invoke matched skills now** — read their output and use domain guidance to inform your review. For domains not covered by installed skills, use `find-skills` to search for a relevant skill. ## Step 5 — Assessment Pipeline Work through all sections in order. For each section, check against loaded principles. ### 1. Scope Check If the review targets work against a plan phase: - Read the plan phase that was assigned. - Run `git diff --stat` and `git log --oneline` for the relevant commits. - Flag files changed outside the plan phase's stated scope as scope violations. If no plan phase applies, skip this subsection. ### 2. Architecture - System design and component boundaries - Dependency graph and coupling - Data flow patterns and bottlenecks - Security architecture (auth, data access, API boundaries) ### 3. Code Quality - Code organization and module structure - DRY violations — be aggressive - Error handling patterns and missing edge cases (call out explicitly) - Over-engineering or under-engineering relative to principles; consider redesign-from-first-principles - Technical debt hotspots ### 4. Tests - Coverage gaps (unit, integration, e2e) - Test quality and assertion strength - Missing edge case coverage — be thorough - Untested failure modes and error paths - New behavior must have new tests. Tests must assert outcomes, not implementation details. ### 5. Performance - N+1 queries and database access patterns - Memory-usage concerns - Caching opportunities - Slow or high-complexity code paths ### Principle Compliance For each changed file, check against loaded principles. Common violations: - Bolted-on changes instead of redesign (redesign-from-first-principles) - Missing verification (prove-it-works) - Unnecessarily added complexity (subtract-before-you-add) ## Step 6 — Issue Format **NUMBER** each issue (1, 2, 3...). For every issue: - Describe the problem concretely with file and line references - Assign severity: **high** (blocks acceptance), **medium** (worth fixing, multiple may block), **low** (style/minor) - Present 2–3 options with **LETTERS** (A, B, C), including "do nothing" where reasonable - For each option: implementation effort, risk, impact on other code, maintenance burden - Give a recommended option and why, mapped to principles - Ask whether the user agrees or wants a different direction ### Severity Guide - **high**: Incorrect behavior, missing tests for new behavior, scope violation on core files, principle violation that changes architecture. - **medium**: Worth fixing but not blocking on its own. Multiple mediums may trigger rejection. - **low**: Style, documentation, minor improvements. Note but don't block on these. When using `AskUserQuestion`, label each option with issue NUMBER and option LETTER. Recommended option is always first. ## Step 7 — Verdict After presenting all issues, give an overall verdict: - **Accept**: All checks pass, scope clean, tests present and passing. - **Accept with notes**: Low-severity issues only. List them for optional follow-up. - **Revise**: High-severity issues found. Include specific actionable feedback — reference the exact file, line context, and principle violated. ## Interaction Rules - Do not assume priorities on timeline or scale - Do not make changes — present findings and wait for direction - Present all sections together, then ask for feedback once at the end - Per prove-it-works: if something can be tested, note how in the issue description
Related Skills
ruminate
Mine past Claude Code conversations for uncaptured patterns, corrections, and knowledge. Cross-references with existing brain content. Triggers: "ruminate", "mine my history".
reflect
Reflect on the conversation and update the brain. Use when wrapping up, after mistakes or corrections, or when significant codebase knowledge was gained. Triggers: "reflect", "remember this".
plan
Break down medium-to-large tasks into phased plans in brain/plans/. Planning only — does not implement. Use for new features, multi-file refactors, or architectural changes — not small fixes. Triggers: "plan this", "break this down".
meditate
Audit and evolve the brain vault — prune outdated content, discover cross-cutting principles, review skills for structural encoding opportunities. Triggers: "meditate", "audit the brain".
brain
Read/write brain files (Obsidian vault at brain/). Use for any task that persists knowledge — reflection, planning, or direct edits. Triggers: brain/ modifications, "add to brain".
flutter-dart-code-review
库无关的Flutter/Dart代码审查清单,涵盖Widget最佳实践、状态管理模式(BLoC、Riverpod、Provider、GetX、MobX、Signals)、Dart惯用法、性能、可访问性、安全性和整洁架构。
security-review
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
addressing-pr-review-comments
Address all valid review comments on a PR for the current branch in the streamlit/streamlit repo. Covers both inline review comments and general PR (issue) comments. Use when a PR has reviewer feedback to address, including code changes, style fixes, and documentation updates.
lightning-architecture-review
Review Bitcoin Lightning Network protocol designs, compare channel factory approaches, and analyze Layer 2 scaling tradeoffs. Covers trust models, on-chain footprint, consensus requirements, HTLC/PTLC compatibility, liveness, and watchtower support.
gha-security-review
Find exploitable vulnerabilities in GitHub Actions workflows. Every finding MUST include a concrete exploitation scenario — if you can't build the attack, don't report it.
gh-review-requests
Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member. Use when asked to "find PRs I need to review", "show my review requests", "what needs my review", "fetch GitHub review requests", or "check team review queue".
fix-review
Verify fix commits address audit findings without new bugs