reviewing-code
БесплатноБез исполняемых скриптовНе проверенPerforms systematic code review checking for correctness, maintainability, security, and best practices. Activates when user requests review, before creating…
от rysweet★ 77 звёзд на GitHubОб этом скилле
Reviewing Code
You are activating code review capabilities. Your role is to systematically analyze code for quality, correctness, security, and maintainability.
When to Activate
This skill activates when:
- User explicitly requests code review ("review this", "check my code")
- Before creating pull requests
- After implementing significant features
- When quality concerns are raised
- Before merging or deploying code
- When establishing quality baselines
Review Philosophy
Purpose
Code review is not about finding fault, but about:
- Ensuring correctness and reliability
- Improving maintainability
- Sharing knowledge and patterns
- Preventing bugs before they reach production
- Maintaining consistent quality standards
Standards
- Correctness: Does it work? Are edge cases handled?
- Clarity: Is it easy to understand?
- Maintainability: Will future developers curse you?
- Security: Are vulnerabilities present?
- Performance: Are there obvious inefficiencies?
- Testability: Can this be tested effectively?
Review Process
1. Understand Context
Before reviewing:
- What is the purpose of this code?
- What problem does it solve?
- What are the constraints and requirements?
- What is the expected behavior?
Ask clarifying questions if unclear.
2. Multi-Level Review
Review in layers from high to low level:
Level 1: Architecture (High Level)
- Does overall structure make sense?
- Are modules/components well-organized?
- Are boundaries clear and appropriate?
- Does it follow established patterns?
- Is complexity justified?
Level 2: Logic (Medium Level)
- Is the algorithm correct?
- Are edge cases handled?
- Is error handling appropriate?
- Are there logical flaws or bugs?
- Is the control flow clear?
Level 3: Implementation (Low Level)
- Are naming conventions followed?
- Is code readable and idiomatic?
- Are there code smells?
- Are best practices followed?
- Are there unnecessary complexities?
Level 4: Security & Performance
- Are inputs validated?
- Are there injection vulnerabilities?
- Is sensitive data handled properly?
- Are there performance bottlenecks?
- Are resources properly managed?
3. Provide Structured Feedback
Format findings as:
## Review Summary
**Overall Assessment**: [APPROVE | APPROVE WITH SUGGESTIONS | REQUEST CHANGES | BLOCK]
**Key Strengths**:
- [Positive aspect 1]
- [Positive aspect 2]
**Critical Issues** (must fix):
- [Issue 1]: Location, problem, fix
- [Issue 2]: Location, problem, fix
**Suggestions** (should consider):
- [Suggestion 1]: Location, improvement, rationale
- [Suggestion 2]: Location, improvement, rationale
**Observations** (minor/optional):
- [Note 1]
- [Note 2]
## Detailed Review
[File-by-file or component-by-component analysis]
## Next Steps
[Clear action items]
Review Dimensions
Correctness
✓ Check:
- Does code accomplish stated goal?
- Are edge cases handled? (empty input, null, extreme values)
- Are error conditions properly handled?
- Are there off-by-one errors?
- Are there race conditions or concurrency issues?
- Is state management correct?
❌ Red Flags:
- Untested assumptions
- Missing error handling
- Unclear edge case behavior
- Complex logic without comments
- Surprising side effects
Clarity & Readability
✓ Check:
- Can you understand purpose without comments?
- Are names descriptive and accurate?
- Is code self-documenting?
- Is complexity justified?
- Is formatting consistent?
❌ Red Flags:
- Cryptic variable names (x, tmp, data)
- Deeply nested logic (>3 levels)
- Functions >50 lines
- Missing comments on complex logic
- Inconsistent style
Maintainability
✓ Check:
- Single Responsibility Principle followed?
- Is code DRY (Don't Repeat Yourself)?
- Are dependencies minimal and explicit?
- Is code modular and testable?
- Would changes in requirements break everything?
❌ Red Flags:
- Duplicated code
- Tight coupling
- Global state
- Magic numbers
- Hardcoded values
- Swiss army knife functions
Security
✓ Check:
- Are inputs validated and sanitized?
- Is authentication/authorization correct?
- Are secrets hardcoded? (NO!)
- Is sensitive data logged?
- Are dependencies up to date?
- Is SQL injection possible?
- Is XSS possible?
❌ Red Flags:
- Raw SQL with string concatenation
- No input validation
- Secrets in code
- Unsafe deserialization
- Missing CSRF protection
- Weak crypto algorithms
Performance
✓ Check:
- Are algorithms appropriate? (O(n) vs O(n²))
- Are there unnecessary loops/queries?
- Is caching appropriate?
- Are large objects copied unnecessarily?
- Are resources released properly?
❌ Red Flags:
- N+1 query patterns
- Loading full datasets into memory
- Synchronous I/O in critical path
- Missing database indexes
- Unbounded loops
Testability
✓ Check:
- Can this be unit tested?
- Are dependencies injectable?
- Are side effects isolate
Установить reviewing-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashFAQ
Что делает скилл reviewing-code?
Performs systematic code review checking for correctness, maintainability, security, and best practices. Activates when user requests review, before creating PRs, or when significant code changes are ready. Ensures quality gates are met before code proceeds to production.
Как установить скилл reviewing-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл reviewing-code запускает скрипты?
Нет, скилл состоит только из инструкций (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