buYoung

code-review

4
1
# Install this skill:
npx skills add buYoung/skills --skill "code-review"

Install specific skill from multi-skill repository

# Description

Capable of performing comprehensive code reviews on git commits. Analyzes commit changes, investigates side effects in the codebase, and categorizes findings by severity levels (critical, major, minor, nit).

# SKILL.md


name: code-review
description: Capable of performing comprehensive code reviews on git commits. Analyzes commit changes, investigates side effects in the codebase, and categorizes findings by severity levels (critical, major, minor, nit).


Code Review Capabilities

This skill enables the agent to perform structured code reviews on git commits by analyzing changes, tracing side effects, and providing categorized feedback.

Core Capabilities

  • Git Commit Analysis: Retrieves commit metadata, messages, and diffs from git hash
  • Change Classification: Categorizes modified files by type (source, test, config, new, modified, deleted)
  • Side Effect Detection: Traces function/class usage across the codebase to identify potential impacts
  • Severity Classification: Categorizes review findings into four severity levels

Review Flow

Phase Capability Output
1. Context Collection Git hash lookup, diff statistics Commit metadata, change scope
2. Change Analysis File-by-file diff inspection Categorized file changes
3. Impact Analysis Dependency tracing, test coverage check Side effect report
4. Review Execution Code inspection with severity classification Categorized findings
5. Result Summary Formatted output generation Structured review report

Severity Levels

Level Scope
Critical Security vulnerabilities, data loss risks, service outage potential
Major Bugs, performance issues, incorrect logic
Minor Code quality, readability, duplication
Nit Style, naming conventions, comment improvements

Domain Knowledge

Supported Analysis Types

  • Single Commit: Review changes in a specific commit hash
  • Commit Range: Review changes across multiple commits
  • File-Scoped: Review specific files within a commit

Constraints

  • Read-Only Operations: Uses only non-destructive git commands
  • Local Repository: Operates on locally available git history

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.