human-review

Request human code review via the ai-review desktop app. Use when code changes are complete and ready for a final human review before committing or merging. Opens an interactive diff viewer where the human can leave inline comments, then returns their feedback.

5 stars

Best use case

human-review is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Request human code review via the ai-review desktop app. Use when code changes are complete and ready for a final human review before committing or merging. Opens an interactive diff viewer where the human can leave inline comments, then returns their feedback.

Teams using human-review should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/human-review/SKILL.md --create-dirs "https://raw.githubusercontent.com/mrmans0n/ai-review/main/skills/human-review/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/human-review/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How human-review Compares

Feature / Agenthuman-reviewStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Request human code review via the ai-review desktop app. Use when code changes are complete and ready for a final human review before committing or merging. Opens an interactive diff viewer where the human can leave inline comments, then returns their feedback.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

You have finished writing code and need the human to review it before proceeding. Use the `air` CLI tool to open an interactive code review session, then address every piece of feedback.

## Steps

1. **Determine what to review.** Check these in priority order to pick the right `air` invocation:

   a. **Uncommitted changes exist** (staged or unstaged, check via `git status --porcelain`):
      Run `air --wait --json` with no branch/commit flags. This reviews the working directory diff.

   b. **All changes committed, on a gg stack branch** — the current branch matches the `user/name` pattern (no `--` in the name part) and `.git/gg/config.json` exists:
      Read the gg base branch from config (parse `defaults.base`, fall back to `main`). Run:
      ```
      air --wait --json --commits <gg-base>..HEAD
      ```
      This shows the full stack diff, matching what ai-review displays when opening a gg stack.

   c. **All changes committed, on a feature branch** (not main/master):
      Determine the base branch (`main` or `master`, whichever exists). Find the merge-base commit and use `--commit`:
      ```
      air --wait --json --commit $(git merge-base <base-branch> HEAD)
      ```

   d. **All changes committed, on main/master itself:**
      Identify the first commit you made during this session. If you can determine the exact commit (e.g., you created it earlier in this conversation), use that hash directly. Otherwise, fall back to the first unpushed commit: run `git log origin/main..HEAD --oneline --reverse` (or `origin/master`) and take the first commit hash. Run:
      ```
      air --wait --json --commit <first-relevant-commit-hash>
      ```

   e. **None of the above:** Run `air --wait --json` with no flags (empty diff — the app handles it).

   The `air` command opens the ai-review desktop app showing the relevant diff. The human will review the code, add comments, and submit. The command blocks until submission and prints structured JSON feedback to stdout.

2. **Parse the feedback.** The output is a JSON object with the following shape:

   ```json
   {
     "format": "ai-review.feedback/v1",
     "context": {
       "mode": "unstaged|staged|commit|range|branch",
       "commitRef": "...",
       "selectedCommit": { "hash": "...", "short_hash": "...", "message": "...", ... } | null,
       "selectedBranch": { "name": "...", "short_hash": "...", ... } | null
     },
     "comments": [
       {
         "id": "...",
         "file": "src/App.tsx",
         "startLine": 10,
         "endLine": 12,
         "side": "old|new",
         "text": "...",
         "createdAt": "..."
       }
     ]
   }
   ```

   Parse the JSON and iterate over the `comments` array. Each comment has a `file`, `startLine`/`endLine`, `side` (`"old"` = deleted code, `"new"` = added/current code), and `text`.

3. **Address every comment.** For each review comment:
   - Read the referenced file and lines
   - Make the requested change
   - If a comment is unclear, use your best judgment based on the surrounding code context

4. **Summarize.** After all changes are made, provide a concise summary listing each comment and what you did to address it.

## Notes

- If `air` is not found, tell the user to install via `brew install --cask mrmans0n/tap/ai-review` (macOS) or build from source at https://github.com/mrmans0n/ai-review.
- If the diff is empty (current branch is identical to base), inform the user there are no changes to review.
- Do NOT commit after making changes — let the user decide when to commit.

Related Skills

review-commits

5
from mrmans0n/ai-review

Open existing commits in the ai-review desktop app for review. Use when you need to review, understand, or get feedback on specific commits, a commit range, or a branch diff — not your own recent work, but existing history.

show-changes

5
from mrmans0n/ai-review

Present completed work to the human for optional review via the ai-review desktop app. Use when you've finished a task and want the human to see what you did — they can optionally leave feedback.

browse-diff

5
from mrmans0n/ai-review

Open the ai-review desktop app to visually browse a diff. Use when the user wants to see changes in a visual diff viewer without a review feedback loop — just for viewing.

performing-serverless-function-security-review

16
from plurigrid/asi

Performing security reviews of serverless functions across AWS Lambda, Azure Functions, and GCP Cloud Functions to identify overly permissive execution roles, insecure environment variables, injection vulnerabilities, and missing runtime protections.

performing-privileged-account-access-review

16
from plurigrid/asi

Conduct systematic reviews of privileged accounts to validate access rights, identify excessive permissions, and enforce least privilege across PAM infrastructure.

performing-oauth-scope-minimization-review

16
from plurigrid/asi

Performs OAuth 2.0 scope minimization review to identify over-permissioned third-party application integrations, excessive API scopes, unused token grants, and risky OAuth consent patterns across identity providers and SaaS platforms. Activates for requests involving OAuth scope audit, API permission review, third-party app risk assessment, or consent grant minimization.

performing-entitlement-review-with-sailpoint-iiq

16
from plurigrid/asi

Performs entitlement review and access certification campaigns using SailPoint IdentityIQ including manager certifications, targeted entitlement reviews, role-based access validation, SOD violation remediation, and automated revocation workflows. Activates for requests involving access reviews, entitlement certifications, SailPoint IIQ governance, or periodic user access recertification.

performing-access-review-and-certification

16
from plurigrid/asi

Conduct systematic access reviews and certifications to ensure users have appropriate access rights aligned with their roles. This skill covers review campaign design, reviewer selection, risk-based p

kbot-humanoid

16
from plurigrid/asi

K-Bot humanoid robot platform - hardware specs, MJCF models, and deployment configurations. The flagship K-Scale humanoid robot.

fix-review

16
from plurigrid/asi

Review security fixes and patches for completeness and correctness.

differential-review

16
from plurigrid/asi

Security-focused code review of diffs and pull requests using Trail of Bits expertise.

code-review

16
from plurigrid/asi

Automated code review for pull requests using specialized review patterns. Analyzes code for quality, security, performance, and best practices. Use when reviewing code changes, PRs, or doing code audits.