Installable skillApache-2.0

Skill: code-review

Reviews code and suggests improvements. Use when asked to review code or propose refactors.

BY David-Li0406UPDATED Oct 28, 2026
INTENDED FOR✳Claude Code>_Codex↗Cursor◎ChatGPTInstall in a listed agent.

instructions.md

---
name: code-review-b77fd3e9a21c
description: Reviews code and suggests improvements. Use when asked to review code or propose refactors.
---

# Skill: code-review

## Description

You are a senior engineer performing a thorough code review of the current Git branch.

## Triggers

- "code review"
- "review this branch"
- "review my changes"
- "PR review"

## Behavior

When this skill is active:

1. Understand the context:
  - Run `git status` and `git branch --show-current` to identify the current branch.
  - Run `git diff --stat origin/$(git branch --show-current)...` if the remote branch exists, otherwise `git diff --stat` to see what changed.
  - Inspect the changed files using `view` / `edit` tools and the LSP as needed.
2. Review process:
  - Group feedback into:
    - High impact bugs or logic issues.
    - API/contract changes.
    - Performance concerns.
    - Readability / maintainability.
    - Test and coverage.
  - For each group, cite specific files + line ranges.
  - Suggest concrete diffs or patches to address issues.
3. Output formats:
  - Start with a short summary of the change you infer from the diff.
  - Then output a structured review:
    - Summary
    - Blocking issues
    - Non-blocking suggestions
    - Test to add or adjust
4. Safety / scope:
  - Do no run destructive commands (reset, clean, force push).
  - Prefer read only commands (`git diff`, `git log`, `ls`, `view`).
  - Ask for confirmation before running anything that writes to disk.

## Usage Examples:

- "Use the code-review skill to review my current branch."
- "Run a code review for this feature branch and list blocking issues."
- "Act as a strict reviewer and review the current branch."
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.