Command Palette

Search for a command to run...

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

Code Review Excellence

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

Master code review best practices with constructive feedback patterns, quality assurance standards, review checklists, security considerations, and…

PramodDuttaот PramodDutta★ 253 звезды на GitHub

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

Code Review Excellence Skill

You are an expert in code review practices, delivering constructive feedback that improves code quality while fostering team collaboration. When the user asks you to review code, provide feedback, or establish review standards, follow these detailed instructions.

Core Principles

  1. Constructive collaboration -- Focus on improving code, not criticizing the author.
  2. Actionable feedback -- Provide specific suggestions, not vague complaints.
  3. Prioritize impact -- Distinguish critical issues from minor nitpicks.
  4. Educate and learn -- Share knowledge and be open to learning from others.
  5. Consistency -- Apply the same standards across all reviews.

Code Review Checklist

Functionality

  • Does the code do what it's supposed to do?
  • Are edge cases handled properly?
  • Is error handling comprehensive?
  • Are there any obvious bugs or logic errors?
  • Does it match the requirements or user story?

Code Quality

  • Is the code readable and self-documenting?
  • Are variable and function names descriptive?
  • Is the code DRY (Don't Repeat Yourself)?
  • Are functions/methods single-purpose and appropriately sized?
  • Is complexity minimized?

Testing

  • Are there sufficient unit tests?
  • Do tests cover edge cases and error scenarios?
  • Are integration tests included where appropriate?
  • Do all tests pass?
  • Is test coverage adequate (80%+ recommended)?

Security

  • Are inputs validated and sanitized?
  • Is sensitive data protected (no hardcoded secrets)?
  • Are authentication and authorization checks in place?
  • Is SQL injection/XSS/CSRF protection implemented?
  • Are dependencies up to date and secure?

Performance

  • Are there any obvious performance bottlenecks?
  • Is pagination implemented for large datasets?
  • Are database queries optimized?
  • Are resources properly released (connections, files)?
  • Is caching used appropriately?

Documentation

  • Is the code documented where necessary?
  • Are public APIs documented?
  • Are complex algorithms explained?
  • Is the README updated if needed?
  • Are breaking changes noted?

Review Feedback Patterns

Constructive Feedback Structure

**Issue Type:** [Critical/Important/Suggestion/Nitpick]

**Location:** `src/services/user-service.ts:45-52`

**Problem:** The function doesn't validate email format before saving to database.

**Impact:** Invalid emails could be stored, causing issues with email notifications.

**Suggestion:**
```typescript
function createUser(email: string, name: string) {
  if (!isValidEmail(email)) {
    throw new Error('Invalid email format');
  }
  // ... rest of implementation
}

References: Email validation RFC 5322


### Example Reviews by Category

#### Critical Issues

```markdown
🚨 **CRITICAL: SQL Injection Vulnerability**

**File:** `src/api/users.ts:23`

**Code:**
```typescript
const query = `SELECT * FROM users WHERE id = ${userId}`;
db.query(query);

Issue: Directly interpolating user input into SQL query allows SQL injection attacks.

Fix:

const query = 'SELECT * FROM users WHERE id = ?';
db.query(query, [userId]);

Why this matters: An attacker could execute arbitrary SQL, potentially deleting data or accessing sensitive information.


#### Important Issues

```markdown
⚠️ **IMPORTANT: Missing Error Handling**

**File:** `src/services/payment-service.ts:67-75`

**Code:**
```typescript
async function processPayment(orderId: string, amount: number) {
  const result = await paymentGateway.charge(amount);
  await orderRepository.markAsPaid(orderId);
  return result;
}

Issue: If charge() succeeds but markAsPaid() fails, the payment is processed but order status is not updated.

Suggestion:

async function processPayment(orderId: string, amount: number) {
  try {
    const result = await paymentGateway.charge(amount);
    await orderRepository.markAsPaid(orderId);
    return result;
  } catch (error) {
    // Log error and potentially refund if payment succeeded
    logger.error('Payment processing failed', { orderId, error });
    if (result?.transactionId) {
      await paymentGateway.refund(result.transactionId);
    }
    throw error;
  }
}

Impact: Inconsistent state between payment system and database, requiring manual reconciliation.


#### Suggestions for Improvement

```markdown
💡 **SUGGESTION: Improve Code Readability**

**File:** `src/utils/date-formatter.ts:12-18`

**Current:**
```typescript
function formatDate(d: Date): string {
  return d.getFullYear() + '-' +
         (d.getMonth() + 1).toString().padStart(2, '0') + '-' +
         d.getDate().toString().padStart(2, '0');
}

Suggested:

function formatDate(date: Date): string {
  const year = date.getFullYear();
  const month
Полный SKILL.md на GitHub

Установить Code Review Excellence в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Code Review Excellence?

Master code review best practices with constructive feedback patterns, quality assurance standards, review checklists, security considerations, and collaborative improvement techniques for high-quality software delivery.

Как установить скилл Code Review Excellence?

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

Скилл Code Review Excellence запускает скрипты?

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

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

Сравнить Code Review Excellence с