본문으로 건너뛰기
cccskills
무료GitHub에 공개

code-review

Claude-native review of code for quality, structure, naming, and maintainability (no external AI). Use when reviewing a file or diff for code quality before committing. Trigger on "review this code", "code review", "is this well-written". For security, use /security-verify; for companion-AI review, use /review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(3)

  • SKILL.md3.5 KB
  • review-checklist.md20.6 KB
  • security-patterns.md22.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Code Review Skill

Purpose

Code review focused on quality, structure, naming, and maintainability. For security reviews, use /security-verify scan.

Quick Start

/code-review <file-path>

Review Categories

1. Code Quality (Critical)

File Organization

  • File size <= 500 lines
  • Single responsibility
  • Clear module structure

Naming

  • Self-documenting names
  • Verbs for functions, nouns for data
  • Consistent naming style (snake_case/camelCase)
  • No abbreviations

Type Hints (Python) / Types (TS)

  • All function parameters typed
  • Return types specified
  • No implicit Any

Docstrings/Comments

  • Google-style docstrings on public API
  • Comments explain WHY, not WHAT
  • No commented-out code

2. Error Handling

  • Specific exception types
  • No bare except:
  • Clear error messages
  • Cleanup in finally/with blocks

3. Complexity

  • Functions < 50 lines
  • Cyclomatic complexity < 10
  • Nesting depth < 4 levels
  • No deep callback chains

4. Testing Readiness

  • Dependencies injectable
  • Side effects isolated
  • Pure functions where possible

5. Style

  • Consistent formatting
  • Imports organized
  • No unused imports/variables

Review Output

# Code Review: src/module.py

## Quality Score: 8/10

## Critical Issues (Must Fix)

- Line 45: Function `process_data` is 78 lines. Split into smaller functions.

## Important Issues (Should Fix)

- Line 23: Missing type hint on return value
- Line 67: Bare `except:` - specify exception type

## Suggestions

- Line 12: Consider extracting magic number 86400 to constant

## Strengths

- Clear function naming
- Good separation of concerns

Common Issues Checklist

Python

  • No mutable default arguments
  • Using context managers for resources
  • No string concatenation in loops
  • Using generators for large datasets

TypeScript

  • Strict mode enabled
  • No any types
  • Proper null checks
  • No type assertions without reason

General

  • No magic numbers (use constants)
  • DRY - no duplicate code blocks
  • Single return point (when reasonable)
  • Clear control flow

6. Security (Stack-Specific)

FastAPI/Python Backend:

  • Tenant ID from session middleware, never from request body
  • Pydantic models with extra = "forbid"
  • ORM-only queries (no string interpolation)
  • Argon2id for passwords, Redis for sessions

Jinja2/HTMX Frontend:

  • No | safe on user input (use | sanitize_html)
  • CSP nonces on inline scripts
  • CSRF token in forms and HTMX headers
  • No internal IDs exposed (use hashids)

PostgreSQL Database:

  • RLS enabled on tenant-scoped tables
  • SSL required in connection string
  • Separate roles (app/migration/readonly)

For comprehensive security scan: Run /security-verify scan.

Integration

For comprehensive validation before commit:

  1. /code-review - This skill (structure, quality)
  2. /security-verify scan - Security issues
  3. /pre-commit - Full validation suite

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

analysis

무료

Analyze feature requirements, dependencies, and security considerations. Use when starting feature implementation from GitHub issues to understand scope, technical feasibility, and risks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

analytics

무료

Run SQL queries against psql, BigQuery, or MySQL from the terminal, including natural-language-to-SQL and schema exploration. Use when analyzing data, inspecting DB state, or debugging tables. Trigger on "query the database", "SQL", "show me data from", "explore table".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

Design REST APIs or function contracts with clear request/response specifications, error handling patterns, authentication strategies, and comprehensive documentation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

Generate comprehensive API endpoint tests for REST and GraphQL APIs. Creates tests for all HTTP methods, status codes, authentication, and validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

Design component architecture and module structure using established architectural patterns for clean, maintainable, and scalable systems.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

matteocervelli/llms252026년 5월 22일 업데이트

matteocervelli의 스킬 모두 보기

이 스킬의 문제 신고