Fxa review quick

From mozilla/fxa · View interactive version

Fxa review quick is an AI agent skill from the GitHub repository mozilla/fxa. Fast single-pass FXA-specific commit review covering security, conventions, logic/bugs, tests, and migrations. No subagents — runs directly in the main context.

How to use this skill

Skill file

FXA Quick Review

Review the most recent commit (or the commit specified in $ARGUMENTS) in a single pass, using FXA-specific knowledge. With no argument and uncommitted changes, review those changes instead.

Step 1: Get the Changes

With no argument and a dirty working tree, review the uncommitted work against the merge base. HEAD does not contain it:

if [ -z "$ARGUMENTS" ] && [ -n "$(git status --porcelain)" ]; then
  BASE="$(git merge-base HEAD origin/main)"
  git diff --stat "$BASE"
  git diff "$BASE"
  git status --short | grep '^??'
fi

Read every untracked (??) file. A diff does not show it.

Otherwise, review the commit:

COMMIT_REF="${ARGUMENTS:-HEAD}"
git show "$COMMIT_REF" --format="%H%n%an%n%ae%n%s%n%b"
COMMIT_REF="${ARGUMENTS:-HEAD}"
git show --stat "$COMMIT_REF"

Step 2: Read Changed Files

Use Read and Grep to examine the changed files and their surrounding context. Look at imports, callers, and related types to understand the full picture before judging.

Step 3: Review

Evaluate the diff through these lenses, in order of priority:

1. Security

2. FXA Conventions

3. Logic & Bugs

4. Tests

Apply the FXA testing rules in .claude/rules/testing/base.md and (for *.test.tsx changes) .claude/rules/testing/react.md — read them before reviewing test changes. Common quick-review triggers:

5. Database Migrations

6. Migration Direction

7. AI Slop Detection

Step 4: Output

Commit Summary

Commit: hash

Author: name

Message: commit message

Files Changed: count

Changes Overview

Write a brief summary of what the commit does based on the diff. Do not repeat the commit message.

Issues Found

Use a table with columns: #, Severity, Category, File, Line, Issue, Recommendation.

Severity definitions:

If no issues are found, skip the table and write: "No issues found."

Verdict

Recommendation: APPROVE, REQUEST CHANGES, or NEEDS DISCUSSION.

Include blocking issue count (CRITICAL + HIGH) and total issue count.

If clean: "This commit is ready to merge."

If not: "Please address the CRITICAL and HIGH issues before merging."

Guidelines

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.