code-review
БесплатноБез исполняемых скриптовНе проверенReview code for quality, security, performance, and maintainability. Use when reviewing PRs, auditing a codebase, or refactoring. Covers TypeScript, Node.js…
от espennilsen★ 122 звезды на GitHubОб этом скилле
Code Review
Systematic code review for Espen's TypeScript/Node.js projects.
Process
Understand scope — Read the changed files or the area under review:
# For git changes git diff --name-only HEAD~1 git diff HEAD~1 # For a specific area find src/ -name "*.ts" -newer <reference-file>Read the code — Use the
readtool on each file. Don't guess.Analyze against checklist — Score each category.
Report — Use the output format below.
Review Checklist
Correctness
- Logic handles edge cases (null, empty, boundary values)
- Error handling is explicit (no swallowed errors, no bare
catch {}) - Async code handles rejection/cancellation properly
- Types are accurate (no unnecessary
any, proper narrowing)
Security
- No secrets or credentials in code
- User input is validated/sanitized before use
- SQL queries use parameterized statements (no string interpolation)
- File paths are resolved safely (no path traversal)
- Auth checks are present where needed
Performance
- No N+1 queries or unbounded loops over large datasets
- Heavy operations are async or streamed (not blocking)
- Database queries use appropriate indexes
- Large responses are paginated or truncated
Maintainability
- Functions do one thing with clear names
- No magic numbers or hardcoded values that should be config
- Types and interfaces are defined (not inline object shapes)
- Dead code and unused imports are removed
- Comments explain why, not what
Project Conventions
- Follows existing patterns in the codebase
- File naming and directory structure is consistent
- Error messages are helpful for debugging
- Logging is appropriate (not too noisy, not silent on errors)
Output Format
## Code Review: [scope]
### Summary
One paragraph: what the code does, overall quality assessment.
### Issues
#### 🔴 Critical
- [file:line] Description and fix
#### 🟡 Important
- [file:line] Description and suggestion
#### 🔵 Minor
- [file:line] Nit or style suggestion
### What's Good
- Call out well-written code, good patterns, clever solutions
### Recommendations
- Prioritized list of changes, starting with most impactful
Common Patterns in Espen's Stack
| Project Type | Key Things to Check |
|---|---|
| Pi extensions | Tool parameter schemas, error returns, signal/abort handling |
| Eleventy sites | Template data flow, permalink structure, Tailwind purge config |
| TanStack apps | Router setup, query keys, optimistic updates, Clerk auth guards |
| Infrastructure | Terraform state safety, Docker layer caching, env var handling |
| SQLite | Migration ordering, prepared statements, WAL mode, index coverage |
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review?
Review code for quality, security, performance, and maintainability. Use when reviewing PRs, auditing a codebase, or refactoring. Covers TypeScript, Node.js, infrastructure-as-code, and full-stack web apps.
Как установить скилл code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic