Code review

From pigweed-project/pigweed · View interactive version

Code review is an AI agent skill from the GitHub repository pigweed-project/pigweed. Comprehensive workflow for reviewing Git patches and Gerrit Change Lists (CLs).

How to use this skill

Skill file

Overview

Analyze Git commits or Gerrit Change Lists (CLs) and provide constructive,

concise feedback focused on bugs, edge cases, security vulnerabilities, API

consistency, and Pigweed style.

Review Criteria

Evaluate every change against:

in full at review time and apply its universal aspects and the language

style guides it links (tests, style, commit message, API docs, silent

failures, and the rest). Cite findings as

https://pigweed.dev/code_reviews.html#<anchor> or the linked style

guide's own anchor.

Workflow

  1. Fetch the Patch:

```bash

./gh pr view [<id>] --comments

./gh pr diff [<id>] --all > patch_CL_<ID>.diff # or: ./gh pr checkout <id>

```

  1. Track & Analyze (tasks.md):
  1. Record or Stage Findings:

```bash

# Substantive issue:

./gh pr comment [<id>] --path <file> --line <line> -m "Check for empty span before indexing." --draft

# Minor style or readability nit:

./gh pr comment [<id>] --path <file> --line <line> -m "nit: Prefer pw::Status over int return code." --draft

```

  1. Final Output: Provide the LGTM status and absolute paths to the generated artifacts.
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.