Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reviewing-code

БесплатноБез исполняемых скриптовНе проверен

Code review methodology for evaluating implementation changes. Use when reviewing code changes for quality, design, correctness, and maintainability. Focuses…

bostonaholicот bostonaholic★ 19 звёзд на GitHub8 установок в других каталогах

Об этом скилле

Code Review Methodology

Deep code reviews that protect architecture, catch correctness issues, and provide mentoring-quality feedback using Conventional Comments.

Purpose

This skill provides methodology for reviewing code changes introduced during implementation. Unlike full codebase audits, this focuses on the delta - what was added or modified - to catch quality issues before they're committed.

Review Workflow

Follow this order - don't jump to nits.

1. Understand Context

  • What problem is this solving?
  • Is there a linked ticket/design doc?
  • Read the implementation plan if available

2. Scan High Level

  • Files/directories touched
  • New public APIs or endpoints
  • New dependencies
  • Migrations and data changes
  • Size check: 200-400 lines optimal, >1000 recommend splitting

3. Evaluate Correctness

  • Does it solve the described problem?
  • Edge cases and error conditions handled?
  • Assumptions explicit?
  • Race conditions considered?

4. Evaluate Design

  • Aligns with existing architecture?
  • New pattern where existing one would work?
  • Local change or architecture decision in disguise?

Pattern Recognition:

Smell Pattern to Suggest
Long method Compose Method
Type-based conditionals Replace Conditional with Polymorphism
Duplicate algorithm structure Form Template Method
Scattered null checks Introduce Null Object
Type field drives behavior Replace Type Code with State/Strategy

Always name patterns explicitly.

SOLID Quick Check:

Principle Red Flag
SRP Class has multiple unrelated responsibilities
OCP Must modify existing code to add behavior
LSP Subclass changes expected behavior
ISP Fat interface forces unused dependencies
DIP High-level depends on low-level details

5. Evaluate Tests

  • Tests for critical paths and edge cases?
  • Tests read like specifications?
  • Stable, isolated, fast?

Red Flags:

  • Testing private methods instead of behavior
  • Mocking what can be used for real (never mock what you can use for real)
  • Tests slower than necessary
  • Missing edge case coverage

6. Evaluate Security (Lightweight)

Note obvious security concerns for security-reviewer to examine in depth:

  • User input crossing trust boundaries?
  • Authorization and privacy concerns?
  • Secrets handling?

Defer detailed security analysis to the security-reviewer agent.

7. Evaluate Operability

  • Logging, metrics, traces where needed?
  • Clear error messages?
  • Impact on alerts and SLOs?
  • Failure modes understood?

8. Evaluate Maintainability

  • Can a mid-level engineer understand this?
  • Coupling and cohesion appropriate?
  • Naming, structure, comments carry weight?
  • Future changes considered?

9. Provide Feedback

  • Use Conventional Comments syntax
  • Classify blocking vs non-blocking
  • Explain why each point matters
  • Include at least one praise per review
  • End with clear verdict

Conventional Comments

<label> [decorations]: <subject>
[discussion]

Labels

Label Use For
praise: Highlight positives (aim for 1+ per review)
nitpick: Trivial preferences (non-blocking)
suggestion: Propose improvement with what and why
issue: Concrete problem (pair with suggestion)
todo: Small necessary changes
question: Need clarification
thought: Non-blocking future ideas
chore: Process tasks before acceptance

Decorations

  • (blocking) - Must resolve before merge
  • (non-blocking) - Helpful but not required
  • (security), (performance), (tests), (readability), (maintainability)

Examples

[src/validation.ts:34]
**praise**: Clean extraction of validation logic improves readability.
[api/users.py:127]
**issue (blocking)**: Missing null check before accessing user.email.
Add guard clause or use optional chaining.
[handlers/payment.js:89-105]
**suggestion (non-blocking, readability)**: Nested conditionals hard to scan.
Consider early returns to flatten. Classic Compose Method pattern (Fowler).
[core/processor.go:234]
**question**: Is this on the hot path? If so, consider allocation cost in loop.

Principle-Based Review

Apply first principles and attribute by name for shared vocabulary:

**issue (blocking, design)**: This mutates shared state. Following Rich Hickey's
immutability principle, return new value from pure function instead.
**suggestion (non-blocking)**: Following Ousterhout's principle, pull this
complexity into the implementation. Simplify the interface.
**issue (blocking)**: Subclass overrides parent method but changes expected behavior.
This violates Liskov Substitution - callers can't safely substitute implementations.

Principles to apply:

  • Rich Hickey: Simple, immutable data structures; pure functions
  • **Jo
Полный SKILL.md на GitHub

Установить reviewing-code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл reviewing-code?

Code review methodology for evaluating implementation changes. Use when reviewing code changes for quality, design, correctness, and maintainability. Focuses on changes made during implementation using Conventional Comments for clear, actionable feedback.

Как установить скилл reviewing-code?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл reviewing-code запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить reviewing-code с