Code review

From aiskillstore/marketplace · View interactive version

Code review is an AI agent skill from the GitHub repository aiskillstore/marketplace. Expert code review specialist for quality, security, and maintainability. Use when reviewing code changes, ensuring high development standards, or conducting security audits. Provides actionable feedback organized by priority.

How to use this skill

Skill file

Code Review

This skill provides expert code review capabilities focusing on code quality, security vulnerabilities, and maintainability. It analyzes code changes and provides prioritized, actionable feedback.

When to Use This Skill

What This Skill Does

  1. Analyzes Code Changes: Reviews git diffs and modified files to understand what changed
  2. Security Auditing: Identifies exposed secrets, API keys, and security vulnerabilities
  3. Quality Assessment: Evaluates code readability, maintainability, and best practices
  4. Performance Review: Identifies potential performance issues and optimization opportunities
  5. Standards Compliance: Ensures code follows project conventions and style guidelines
  6. Prioritized Feedback: Organizes findings by severity (Critical, Warnings, Suggestions)

How to Use

Basic Code Review

Review the recent code changes in this branch
Check this file for security issues and code quality

Review Specific Files

Review src/auth.js for security vulnerabilities
Review the changes in this pull request

Review Process

1. Analyze Changes

When invoked:

  1. Get Recent Changes: Run git diff to see what changed

```bash

git diff $(git merge-base HEAD main)..HEAD

```

  1. Focus on Modified Files: Prioritize files with actual changes
  2. Review Context: Understand the purpose of changes from commit messages or conversation

2. Review Checklist

For each file, check:

Code Quality:

Security:

Maintainability:

Best Practices:

3. Organize Feedback

Provide feedback in three priority levels:

Critical Issues (Must Fix):

Warnings (Should Fix):

Suggestions (Consider Improving):

4. Provide Specific Examples

For each issue found:

Examples

Example 1: Security Issue Found

Input: Review src/api/auth.js

Output:

## Code Review: src/api/auth.js

### Critical Issues

**1. Exposed API Key**
- **Location**: `src/api/auth.js:23`
- **Issue**: Hardcoded API key in source code
- **Code**:
  ```javascript
  const API_KEY = "sk_live_1234567890abcdef"; // ❌ Exposed secret
  ```

- **Fix**: Use environment variables

  ```javascript
  const API_KEY = process.env.API_KEY; // ✅ Secure
  ```

- **Impact**: This exposes your API key in version control, allowing unauthorized access

### Warnings

**2. Missing Input Validation**

- **Location**: `src/api/auth.js:45`
- **Issue**: No validation on user input before processing
- **Recommendation**: Add input validation before authentication

### Example 2: Code Quality Review

**Input**: Review recent changes

**Output**:

Code Review Summary

Files Reviewed: 5

Critical Issues: 0

Warnings: 3

Suggestions: 5

Warnings

1. Duplicated Code

2. Missing Error Handling

Suggestions

1. Improve Variable Naming

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.