review
Review code changes, auto-fix safe issues, and report bugs
от elie222★ 13 196 звёзд на GitHub
Установить review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
review
Code review with craftsman's eye. Auto-fix obvious issues, surface real bugs.
Reference @AGENTS.md for project conventions. Apply those patterns as review criteria.
Critical Rules
- AUTO-FIX safe obvious issues - Don't ask permission for no-brainers
- HUNT FOR BUGS - Logic errors, edge cases, race conditions first
- WAIT for confirmation - On BUG/FIX, don't execute until user says "go"
- BE CONCISE - One-line items, choices at END
- USE clickable links -
path/to/file.ts:123format only
Categories
| Category | What | Action |
|---|---|---|
| [BUG] | Logic errors, security, data loss, race conditions | Report → wait |
| [FIX] | Type gaps, missing error handling, test gaps, slop | Report → wait |
| [AUTO] | Unused imports, dead code, console.log, typos | Fix immediately |
| [CONSIDER] | Refactors, style opinions, nice-to-have | Mention only |
AUTO Criteria (all must be true)
- Zero risk of breaking behavior
- <5 seconds to fix
- No judgment call needed
AUTO examples:
- Unused imports/variables
- Trailing whitespace
- Console.log (unless intentional)
- Dead/unreachable code
- Obvious typos in comments/strings
NOT AUTO (needs confirmation):
- Removing "unused" function (might be used elsewhere)
- Type changes (might change behavior)
- Any logic change
- AI slop removal (might be intentional)
Project-Specific Checks
Always ask these questions during review:
Can this be simpler?
- Is there unnecessary abstraction? Could this be done with less code?
- Are there helpers/utils being created for one-time operations?
- Over-engineered error handling, feature flags, or backwards-compat shims?
- Unnecessary wrapper components or HOCs?
Can we remove any code?
- Dead code, unused exports, commented-out blocks?
- Re-exports or barrel files (we don't use barrel files)?
- Backwards-compatibility hacks like renamed
_varsor// removedcomments? - Types/interfaces exported but only used in the same file?
Is it DRY without premature abstraction?
- Obvious copy-paste of entire functions or large blocks → refactor
- But 2-3 similar lines are fine — don't abstract too early
- The wrong abstraction is worse than duplication
Is it structured correctly?
- Colocate page-specific components next to their page (not in a nested
components/subfolder — we don't do that in route directories) - General/reusable components go in
apps/web/components/ - API routes: One resource per route, not combined data endpoints
- Server actions for mutations, not POST routes
- Validation schemas in separate
.validation.tsfiles - Helper functions at the bottom of files, not the top
- All imports at the top — no mid-file dynamic imports
- No barrel files (index.ts re-exporting everything from a folder)
Does it follow project patterns? (see @AGENTS.md)
- GET routes wrapped with
withAuthorwithEmailAccount? - Response types exported as
Awaited<ReturnType<typeof fn>>? - SWR for client-side data fetching?
LoadingContentfor loading/error states?useActionfromnext-safe-action/hooksfor form submissions?- Zod schemas with
z.infer<typeof schema>instead of duplicate interfaces? - Self-documenting code? Comments explain "why" not "what"?
logger.trace()for PII fields?- Test changes follow
.claude/skills/testing/SKILL.md? - Tests avoid mocking
@/utils/logger? - If draft-generation prompt, retrieval, routing, or post-processing changed, was
apps/web/utils/ai/reply/draft-attribution.tsDRAFT_PIPELINE_VERSIONbumped for analytics?
Learnings check
- Did this change teach us something that should be captured in
AGENTS.mdor this review file? - Are there patterns that keep coming up that we should document?
Mindset
Inheritance Test: Would I curse the previous author? Understand at 2am?
Pride Test: Would I put my name on this?
Workflow
Step 0: Determine Scope & Group Files
Auto-detect: conversation changes → staged → current diff
git diff --cached --name-only # or HEAD
Group files by area/dependency:
Batch 1: apps/web/app/api/agent/* (3 files)
Batch 2: apps/web/app/(app)/[emailAccountId]/agent/* (related components)
Batch 3: apps/web/utils/actions/* (2 files)
Output: Found X files in Y batches
──────────
Step 1: Create Review Plan (TODO)
BEFORE reading any file content, create todo list:
- [ ] Batch 1: API routes (skills, allowed-actions)
- [ ] Batch 2: agent page components (agent-page, chat, tools)
- [ ] Batch 3: server actions (agent.ts, agent.validation.ts)
Use todo_write to track batches.
──────────
Step 2: Process Each Batch
For each batch:
- Read diff for batch files only (
git diff --cached -- path/to/files) - Review & categorize issues
- Auto-fix [AUTO] items immediately
- Note [BUG]/[FIX]/[CONSIDER] items
- Mark batch complete in todos
Issue format: ``
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл review?
Review code changes, auto-fix safe issues, and report bugs
Как установить скилл review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…