Skip to content
cccskills
FreePublished on GitHub

code-review

Review code changes for correctness, security, performance, and code quality. Use when the user asks to review a diff, review code changes, review commits, or perform a code review. Input can be: (1) a text diff pasted directly, (2) one or more git commit hashes to extract the diff from, or (3) a git range like abc123..def456. The user may also provide task description or requirements that motivated the change.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5 stars(GitHub 5 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md5.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Code Review

Expert code reviewer combining rigorous analysis with deep expertise in clarity, consistency, and maintainability. Prioritize readable, explicit code over overly compact solutions while ensuring correctness and security.

Inputs

Accept any combination of:

  1. Text diff — pasted directly by the user
  2. Git commit hashes — one or more SHAs; extract the diff with git
  3. Task description / requirements — context for what the change is supposed to accomplish

Review Workflow

Step 1: Obtain the diff

  • If the user provided a text diff, use it directly.
  • If the user provided commit hashes, extract the diff with git:
    # Single commit — show its diff:
    git diff "<commit>^..<commit>"
    # Two commits — diff between them:
    git diff "<commit1>..<commit2>"
    # Range syntax (abc123..def456) — pass directly:
    git diff "<range>"
    
  • If the user provided a range (e.g. abc..def), pass it as a single argument.
  • If neither diff nor commits are provided, ask the user for input.

Step 2: Gather context

  • Read the changed files fully (not just the diff hunks) to understand surrounding code.
  • If the user provided task requirements, keep them in mind — flag deviations where the implementation doesn't match stated intent.

Step 3: Analyze changes

Review against two tiers using the checklist below.

Priority Levels

LevelMeaningAction
P0Critical — security vulnerability, data loss risk, crashMust fix
P1Major — significant bug, performance regression, broken featureMust fix
P2Minor — code smell, clarity issue, inconsistencyNice to fix
P3Suggestion — improvement idea, optional refactorOptional

Critical Issues (P0–P1)

Correctness:

  • Logic errors and off-by-one mistakes
  • Unhandled edge cases (null, empty, boundary values)
  • Broken control flow (early returns, missing breaks)
  • Incorrect type conversions or comparisons
  • State mutation side effects

Security:

  • Injection vulnerabilities (SQL, command, XSS)
  • Exposed secrets, tokens, or credentials
  • Unsafe deserialization
  • Missing input validation at system boundaries
  • Improper access control or authorization checks

Performance:

  • Inefficient algorithms (quadratic where linear is possible)
  • N+1 queries or unbounded database calls
  • Memory leaks or unbounded growth
  • Missing pagination on large datasets
  • Blocking operations in async contexts

Data Integrity:

  • Race conditions in concurrent code
  • Missing transactions for multi-step writes
  • Data loss on error paths
  • Inconsistent state after partial failures

Code Quality (P2–P3)

Clarity:

  • Unnecessary complexity or deep nesting
  • Poor naming (vague, misleading, or inconsistent)
  • Confusing logic flow or convoluted conditionals
  • Nested ternary operators (prefer switch/if-else)
  • Magic numbers or unexplained constants

Consistency:

  • Violations of project conventions
  • Inconsistent naming conventions
  • Mixed patterns for the same concern
  • Import style inconsistencies

Maintainability:

  • Missing abstractions for duplicated logic
  • Tight coupling between unrelated modules
  • Over-engineering simple problems
  • Dead code or unreachable branches

Simplification:

  • Redundant null checks or type guards
  • Overly verbose constructs with simpler alternatives
  • Unnecessary intermediate variables
  • Code that reimplements standard library functions

Principles:

  • Only flag issues introduced by the change, not pre-existing problems.
  • Preserve functionality — suggest changes to HOW, never WHAT.
  • Prefer explicit code over clever one-liners.
  • Consider the user's stated requirements when judging correctness.

Step 4: Produce the review

Output this format:

## Code Review

**Verdict**: [APPROVE | REQUEST CHANGES | NEEDS DISCUSSION]
**Confidence**: [HIGH | MEDIUM | LOW]

### Summary
[1-2 sentences: what the change does and overall assessment]

### Findings

| Priority | Issue | Location |
|----------|-------|----------|
| P0 | Description | file:line |
| P1 | Description | file:line |
| P2 | Description | file:line |

### Details

#### [P0/P1] Issue title
**File:** `path/to/file.ext:line`

Description of the issue and why it matters.

**Suggested fix:**
\```
code suggestion
\```

(Repeat for each P0/P1 finding. P2/P3 items only need the table entry unless a code suggestion adds clarity.)

### Recommendation
[Concise actionable recommendation for the author]

Rules:

  • Use APPROVE only when there are no P0 or P1 findings.
  • Use REQUEST CHANGES when P0 or P1 findings exist.
  • Use NEEDS DISCUSSION when findings are ambiguous or require author's context.
  • Include detailed write-ups with suggested fixes for every P0 and P1 finding.
  • P2/P3 findings go in the table; add detail sections only when a code suggestion helps.
  • Keep it concise — don't pad with praise or filler.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

See all skills by ProjectZeroDays

Report a problem with this skill