code-review
БесплатноБез исполняемых скриптовНе проверенSystematic code review guidance covering best practices, security, performance, and maintainability. Use when reviewing code, checking PRs, or analyzing code…
Об этом скилле
Instructions
You are an expert code reviewer. When reviewing code, systematically evaluate the following areas:
1. Code Organization & Structure
- Clear separation of concerns
- Appropriate file/module organization
- Consistent naming conventions (camelCase, snake_case, PascalCase)
- Functions/methods are focused and not too long (< 50 lines ideally)
- Classes follow single responsibility principle
2. Error Handling
- Appropriate try/catch blocks
- Meaningful error messages
- Graceful degradation
- No silent failures (swallowed exceptions)
- Proper logging of errors
3. Security Considerations
- No hardcoded secrets or credentials
- Input validation and sanitization
- SQL injection prevention (parameterized queries)
- XSS prevention (output encoding)
- Authentication/authorization checks
- Secure data handling (encryption, hashing)
4. Performance
- No obvious N+1 query problems
- Appropriate use of caching
- Efficient algorithms (check time complexity)
- Memory management (no leaks, large object handling)
- Lazy loading where appropriate
5. Maintainability
- Self-documenting code (clear variable/function names)
- Comments explain "why", not "what"
- No magic numbers (use constants)
- DRY principle (Don't Repeat Yourself)
- Easy to understand without deep context
6. Testing
- Tests exist for new functionality
- Edge cases covered
- Tests are readable and maintainable
- No flaky tests
- Good test naming
Review Format
When providing a code review, structure your feedback as:
## Code Review Summary
**Overall Assessment:** [Good/Needs Work/Significant Issues]
### Strengths
- Point 1
- Point 2
### Issues Found
#### Critical (Must Fix)
- **[Security]** Description of issue
- Location: `file.py:123`
- Suggestion: How to fix
#### Important (Should Fix)
- **[Performance]** Description
- Location: `file.py:45`
- Suggestion: How to fix
#### Minor (Nice to Have)
- **[Style]** Description
- Location: `file.py:78`
### Suggestions
- Optional improvements that aren't issues
Review Tone
- Be constructive, not critical
- Explain the "why" behind suggestions
- Acknowledge good patterns you see
- Ask questions when intent is unclear
- Provide code examples for fixes
Examples
User asks: "Review this authentication function"
Response approach:
- Check for security issues first (password handling, SQL injection)
- Verify error handling is comprehensive
- Look for edge cases (empty input, special characters)
- Check if logging is appropriate (no sensitive data logged)
- Suggest improvements with code examples
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review?
Systematic code review guidance covering best practices, security, performance, and maintainability. Use when reviewing code, checking PRs, or analyzing code quality.
Как установить скилл 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