aif-review

Review staged changes and PR diffs for bugs, security, performance, and maintainability.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool provides AI-assisted code reviews for staged changes or pull requests, focusing on correctness, security, performance, and maintainability to catch issues early.

Core Features & Use Cases

  • Review staged changes when no PR is present to surface issues before committing.
  • Review pull requests by number, URL, or branch to analyze diffs and ensure compliance with best practices.
  • Review commits by ref to validate changes atomically and track incremental improvements.
  • Enforce non-blocking context gates against architecture, rules, and roadmap files to align with project policies.
  • Produce actionable, per-file feedback with suggested fixes and rationale.

Quick Start

Run /aif-review to review staged changes in the current repository.

Frequently Asked Questions about aif-review

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

FAQPage Schema
How do I review staged changes for bugs and security issues before committing?

You can review staged changes by running the tool directly in your repository to detect bugs, security issues, and performance problems before committing. It analyzes the diff and provides structured, per-file feedback with suggested fixes.

Can I use AI to review a pull request by number or URL directly?

Yes, you can review pull requests by number, URL, or branch to analyze diffs and ensure compliance with best practices. The tool enforces read-only context gates against architecture and rules files to align with project policies.

What is the best way to check commits by ref for maintainability concerns?

Checking commits by ref allows you to validate changes atomically and track incremental improvements for maintainability. The tool identifies issues across files and contexts, providing actionable feedback with rationale.

Does this AI code review tool work with git and gh integration?

Yes, the tool enforces technical requirements such as git and gh integration to ensure compliant, safe reviews. It uses these integrations to read staged changes, PRs, and commits without modifying your repository.

Are there limitations when reviewing pull requests for project-specific rules?

The tool enforces non-blocking context gates against architecture, rules, and roadmap files to align with project policies. It operates in a read-only manner, meaning it will not directly modify your codebase or automatically push fixes.