Code Reviewer Skill · Testing Security

Automated Code Reviewer Agent

Automated code review agent for TypeScript, Python, and more.

Enforce coding standards, detect anti-patterns, and generate review reports automatically.

  • Productivity
  • DevTools
  • Automation

About This Skill

The Code Reviewer skill is your automated partner for maintaining code quality. It handles the repetitive tasks of code review.

Quick Start

  1. 1Install the Antigravity CLI if you haven't already.
  2. 2Run `python .agent/skills/code-reviewer/scripts/pr_analyzer.py <project-path>` to structure-check your PR.
  3. 3Run `python .agent/skills/code-reviewer/scripts/code_quality_checker.py <target-path>` for deep analysis.

Core Capabilities

Automated PR Analysis

Validates Pull Request structure, checks for scaffolding issues, and enforces basic contribution guidelines automatically.

Deep Static Analysis

Scans codebase for performance bottlenecks, security vulnerabilities, and complex anti-patterns across multiple languages.

Review Report Generation

Compiles findings into a professional, human-readable report suitable for sharing with stakeholders or attaching to PRs.

SKILL.md

---
name: code-reviewer
description: Automated code review assistant for analyzing Pull Requests and enforcing coding standards. Use when you need to review complex PRs, check for anti-patterns, or generate quality reports.
---

# Code Reviewer

Automated code review assistant that integrates static analysis, best practice auditing, and report generation.

## Agent Protocols

1.  **Context Analysis**: Always start by analyzing the project context and `references/coding_standards.md` to understand the rules.
2.  **Progressive Review**:
    - Step 1: Run `pr_analyzer.py` for structural and high-level checks.
    - Step 2: Run `code_quality_checker.py` for deep static analysis.
    - Step 3: Use `review_report_generator.py` to compile findings.
3.  **Constructive Feedback**: When providing feedback, reference specific items from `references/code_review_checklist.md`.

## Tool Definitions

### 1. PR Analyzer (Script)

Analyzes a Pull Request or a local branch for common issues and structural constraints.

-   **Execution**: `python .agent/skills/code-reviewer/scripts/pr_analyzer.py [options] <path>`
-   **When to use**: At the beginning of a review to catch obvious errors.

### 2. Code Quality Checker (Script)

Performs deep static analysis to identify performance bottlenecks and anti-patterns.

-   **Execution**: `python .agent/skills/code-reviewer/scripts/code_quality_checker.py [options] <path>`
-   **When to use**: Before merging, to ensure codebase health.

### 3. Review Report Generator (Script)

Generates a formatted report for stakeholders.

-   **Execution**: `python .agent/skills/code-reviewer/scripts/review_report_generator.py [options]`
-   **When to use**: To summarize findings for non-technical stakeholders or final approval.

Frequently Asked Questions

FAQ

Which languages are supported?
Currently supports TypeScript, JavaScript, Python, Go, Swift, and Kotlin.
Can I customize the rules?
Yes, you can modify the rule definitions in the `references/` directory.

Discussion

Discussion

0 comments
U

Trigger Phrases

Use these phrases to activate this skill in your AI coding assistant:

Review this PRCheck code qualityAnalyze this repositoryGenerate review report