code-review-standards
БесплатноБез исполняемых скриптовНе проверенCode review framework and criteria. References security-sentinel for security checks. Use when performing code reviews or defining review standards.
Об этом скилле
Code Review Standards
When to Use
- Reviewing pull requests
- Performing code reviews
- Defining review criteria
- Establishing review process
Overview
Code review standards ensure consistent, thorough reviews that catch bugs before they reach production. This skill aggregates criteria from specialized skills.
Review Framework
4-Level Severity Classification
CRITICAL 🔴 - Must fix before merge
- Security vulnerabilities
- Data loss risks
- Authentication bypasses
- SQL injection risks
HIGH 🟠 - Should fix before merge
- TypeScript strict mode violations
- Missing error handling
- Performance issues (N+1 queries)
- Missing input validation
MEDIUM 🟡 - Fix soon (can merge with plan)
- Code quality issues
- Missing tests
- Poor naming
- Missing documentation
LOW 🟢 - Nice to have
- Style suggestions
- Optimization opportunities
- Refactoring ideas
Review Checklist
1. Correctness
→ See: correctness-criteria.md
- Logic is correct for all test cases
- Edge cases handled (null, empty, max, min)
- Error conditions properly handled
- Return types match function signatures
- Async operations properly awaited
- No race conditions
- No off-by-one errors
2. Security
→ See: security-sentinel skill → See: security-checklist.md
CRITICAL - Must check every review:
- No hardcoded secrets
- Input validation with Zod (ALL inputs)
- Authentication checked on protected routes
- Authorization enforced (resource ownership)
- SQL injection prevented (using Drizzle)
- XSS prevented (no dangerouslySetInnerHTML without sanitization)
- CSRF protection on state-changing operations
- No sensitive data in logs
- Passwords hashed (bcrypt, 12+ rounds)
- JWTs properly verified
For complete security criteria: → security-sentinel/SKILL.md
3. TypeScript Quality
→ See: typescript-strict-guard skill
- No
anytypes - No
@ts-ignorewithout extensive comment - No
!non-null assertions without comment - Explicit types on all function parameters
- Explicit return types on all functions
- Type guards used for unknown types
- Proper use of generics
- No implicit any
4. Testing
→ See: quality-gates/test-patterns.md
- Tests exist for new code
- Tests follow AAA pattern
- Coverage meets thresholds (75%/90%)
- UI tests verify DOM state (not just mocks)
- E2E tests for visual changes
- No skipped tests without reason
- Tests are independent
- Tests clean up after themselves
5. Performance
→ See: performance-criteria.md
- No N+1 query problems
- Database queries optimized
- Async operations parallelized where possible
- Large datasets paginated
- Images optimized
- No unnecessary re-renders
- Expensive calculations memoized
6. Code Quality
→ See: maintainability-rules.md
- No console.log in production code
- No commented-out code
- No TODO without GitHub issue
- Functions have single responsibility
- Variable names are descriptive
- No dead code
- No duplicated logic
- Proper error messages
7. Architecture Compliance
→ See: architecture-patterns skill
- Correct pattern chosen for problem
- Pattern implemented correctly
- No pattern violations
- Follows Next.js best practices
- Server vs Client Components correct
- State management appropriate
Review Process
Step 1: Pre-Review (2 minutes)
- Read PR description
- Understand what changed and why
- Check CI/CD status (tests, build, coverage)
- Identify high-risk areas (auth, payments, data handling)
Step 2: Security Review (5 minutes)
For ALL PRs:
- Check for hardcoded secrets
- Verify input validation
- Check authentication/authorization
For Auth/API/Data PRs:
- Run security-sentinel skill
- Review OWASP Top 10 criteria
- Check for injection risks
Step 3: Code Review (10-20 minutes)
- Correctness: Does it work as intended?
- TypeScript: Strict mode compliance?
- Testing: Adequate coverage and quality?
- Performance: Any obvious issues?
- Quality: Readable, maintainable code?
- Architecture: Follows established patterns?
Step 4: Write Feedback (5 minutes)
Use severity levels and templates: → review-templates.md
Format:
## 🔴 CRITICAL Issues
- [ ] [Security] Hardcoded API key in auth.ts:45
- **Risk**: API key exposed in version control
- **Fix**: Move
Установить code-review-standards в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepВложенные файлы
FAQ
Что делает скилл code-review-standards?
Code review framework and criteria. References security-sentinel for security checks. Use when performing code reviews or defining review standards.
Как установить скилл code-review-standards?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review-standards запускает скрипты?
Нет, скилл состоит только из инструкций (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