code-review
БесплатноБез исполняемых скриптовНе проверенSystematic code review patterns covering security, performance, maintainability, correctness, and testing — with severity levels, structured feedback…
от bighardperson★ 71 звезда на GitHubОб этом скилле
Code Review Checklist
Thorough, structured approach to reviewing code. Work through each dimension systematically rather than scanning randomly.
Installation
OpenClaw / Moltbot / Clawbot
npx clawhub@latest install code-review
Review Dimensions
| Dimension | Focus | Priority |
|---|---|---|
| Security | Vulnerabilities, auth, data exposure | Critical |
| Performance | Speed, memory, scalability bottlenecks | High |
| Correctness | Logic errors, edge cases, data integrity | High |
| Maintainability | Readability, structure, future-proofing | Medium |
| Testing | Coverage, quality, reliability of tests | Medium |
| Accessibility | WCAG compliance, keyboard nav, screen readers | Medium |
| Documentation | Comments, API docs, changelog entries | Low |
Security Checklist
Review every change for these vulnerabilities:
- SQL Injection — All queries use parameterized statements or an ORM; no string concatenation with user input
- XSS — User-provided content is escaped/sanitized before rendering;
dangerouslySetInnerHTMLor equivalent is justified and safe - CSRF Protection — State-changing requests require valid CSRF tokens; SameSite cookie attributes are set
- Authentication — Every protected endpoint verifies the user is authenticated before processing
- Authorization — Resource access is scoped to the requesting user's permissions; no IDOR vulnerabilities
- Input Validation — All external input (params, headers, body, files) is validated for type, length, format, and range on the server side
- Secrets Management — No API keys, passwords, tokens, or credentials in source code; secrets come from environment variables or a vault
- Dependency Safety — New dependencies are from trusted sources, actively maintained, and free of known CVEs
- Sensitive Data — PII, tokens, and secrets are never logged, included in error messages, or returned in API responses
- Rate Limiting — Public and auth endpoints have rate limits to prevent brute-force and abuse
- File Upload Safety — Uploaded files are validated for type and size, stored outside the webroot, and served with safe Content-Type headers
- HTTP Security Headers — Content-Security-Policy, X-Content-Type-Options, Strict-Transport-Security are set
Performance Checklist
- N+1 Queries — Database access patterns are batched or joined; no loops issuing individual queries
- Unnecessary Re-renders — Components only re-render when their relevant state/props change; memoization is applied where measurable
- Memory Leaks — Event listeners, subscriptions, timers, and intervals are cleaned up on unmount/disposal
- Bundle Size — New dependencies are tree-shakeable; large libraries are loaded dynamically; no full-library imports for a single function
- Lazy Loading — Heavy components, routes, and below-the-fold content use lazy loading / code splitting
- Caching Strategy — Expensive computations and API responses use appropriate caching (memoization, HTTP cache headers, Redis)
- Database Indexing — Queries filter/sort on indexed columns; new queries have been checked with EXPLAIN
- Pagination — List endpoints and queries use pagination or cursor-based fetching; no unbounded SELECT *
- Async Operations — Long-running tasks are offloaded to background jobs or queues rather than blocking request threads
- Image & Asset Optimization — Images are properly sized, use modern formats (WebP/AVIF), and leverage CDN delivery
Correctness Checklist
- Edge Cases — Empty arrays, empty strings, zero values, negative numbers, and maximum values are handled
- Null/Undefined Handling — Nullable values are checked before access; optional chaining or guards prevent runtime errors
- Off-by-One Errors — Loop bounds, array slicing, pagination offsets, and range calculations are verified
- Race Conditions — Concurrent access to shared state uses locks, transactions, or atomic operations
- Timezone Handling — Dates are stored in UTC; display conversion happens at the presentation layer
- Unicode & Encoding — String operations handle multi-byte characters; text encoding is explicit (UTF-8)
- Integer Overflow / Precision — Arithmetic on large numbers or currency uses appropriate types (BigInt, Decimal)
- Error Propagation — Errors from async calls and external services are caught and handled; promises are never silently swallowed
- State Consistency — Multi-step mutations are transactional; partial failures leave the system in a valid state
- Boundary Validation — Values at the boundaries of valid ranges (min, max, exactly-at-limit) are tested
Maintainability Checklist
- Naming Clarity — Variables, functions, and classes have descriptive names that reveal int
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-review?
Systematic code review patterns covering security, performance, maintainability, correctness, and testing — with severity levels, structured feedback guidance, review process, and anti-patterns to avoid. Use when reviewing PRs, establishing review standards, or improving review 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