Command Palette

Search for a command to run...

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

code-review-standards

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

Code review framework and criteria. References security-sentinel for security checks. Use when performing code reviews or defining review standards.

aiskillstoreот aiskillstore★ 509 звёзд на GitHub9 установок в других каталогах

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

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

  1. CRITICAL 🔴 - Must fix before merge

    • Security vulnerabilities
    • Data loss risks
    • Authentication bypasses
    • SQL injection risks
  2. HIGH 🟠 - Should fix before merge

    • TypeScript strict mode violations
    • Missing error handling
    • Performance issues (N+1 queries)
    • Missing input validation
  3. MEDIUM 🟡 - Fix soon (can merge with plan)

    • Code quality issues
    • Missing tests
    • Poor naming
    • Missing documentation
  4. 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 any types
  • No @ts-ignore without 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)

  1. Read PR description
  2. Understand what changed and why
  3. Check CI/CD status (tests, build, coverage)
  4. 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

→ security-checklist.md

Step 3: Code Review (10-20 minutes)

  1. Correctness: Does it work as intended?
  2. TypeScript: Strict mode compliance?
  3. Testing: Adequate coverage and quality?
  4. Performance: Any obvious issues?
  5. Quality: Readable, maintainable code?
  6. 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Grep

Вложенные файлы

maintainability-rules.mdperformance-criteria.mdsecurity-checklist.mdskill-report.json

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), без исполняемых скриптов.

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

Сравнить code-review-standards с