aif-review

Automate code reviews of staged changes and pull requests.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/mind-systems/mind_context --skill aif-review-mind-systems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-review
Source: https://github.com/mind-systems/mind_context/tree/main/.claude/skills/aif-review
Command: npx skills add https://github.com/mind-systems/mind_context --skill aif-review-mind-systems

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual code reviews of staged changes and pull requests are time-consuming and error-prone. This skill automates comprehensive checks focusing on correctness, security, performance, and maintainability.

Core Features & Use Cases

  • Thorough review checks: Analyzes diffs from git diff --cached for staged changes or git diff for unstaged changes.
  • PR awareness: Fetches PR details with gh pr view and diffs with gh pr diff when a PR number or URL is provided.
  • Context-aware governance: Applies project-specific rules from the skill-context and operates in read-only mode to preserve source artifacts.

Quick Start

Review the current staged changes or a pull request using the aif-review skill.

Frequently Asked Questions about aif-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code review for git staged changes and pull requests?

Automated code review analyzes diffs from git diff --cached or pull requests via gh pr diff to check correctness, security, performance, and maintainability. This eliminates manual inspection errors and ensures best practices for staged changes.

Can I audit a GitHub pull request for security issues and performance problems?

Yes, you can audit a GitHub pull request for security issues and performance problems by fetching PR details with gh pr view and diffs with gh pr diff. The review applies project-specific rules to identify vulnerabilities and bottlenecks.

Does automated code review work with local unstaged git diffs?

Automated code review works with local unstaged git diffs by reading changes via git diff. It evaluates the unstaged changes against project-specific governance rules while operating in read-only mode to preserve source artifacts.

What is the best way to apply project-specific best practices during a pull request review?

The best way to apply project-specific best practices during a pull request review is loading rules from .ai-factory/skill-context/aif-review/SKILL.md. This context-aware governance ensures the automated checks match your repository's exact requirements.

Do I need the GitHub CLI installed to review pull requests for bugs and security issues?

You need the GitHub CLI installed to review pull requests when fetching details via gh pr view and gh pr diff. Local staged or unstaged reviews only require git diff to read the changes and apply the checks.

Why should I use automated code review instead of manually checking git diffs?

Automated code review replaces manually checking git diffs because manual reviews are time-consuming and error-prone. It consistently audits diffs for bugs, security vulnerabilities, and performance problems based on defined best practices.