Fxa PR Status
Productivityfxa-pr-statusFxa PR Status is an Agent Skill for productivity published in the mozilla/fxa repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Lists open FXA PRs matching a search term with a rich status table — file/line counts, draft state, review activity, and approval status. Defaults to all open PRs needing review.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/mozilla/fxa/blob/HEAD/.claude/skills/fxa-pr-status/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fxa-pr-status, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
FXA PR Status
Show a status table for open FXA PRs matching $ARGUMENTS (or all open PRs if no argument given).
Step 1: Fetch matching PRs
SEARCH="${ARGUMENTS:-}"
gh pr list \
--repo mozilla/fxa \
--state open \
--search "$SEARCH" \
--json number,title,author,createdAt,isDraft,reviewDecision \
--limit 30
Step 2: Fetch per-PR details in parallel
For each PR number returned in Step 1, run these two commands in parallel (batch all PRs together — one gh pr view call per PR, all firing at the same time):
# For each PR number N:
gh pr view N --repo mozilla/fxa --json additions,deletions,changedFiles
gh pr view N --repo mozilla/fxa --json isDraft,reviewDecision,reviews
Step 3: Compute age
For each PR, compute a human-readable age from createdAt relative to today's date:
- Under 24 h → "Xh"
- 1–6 days → "Xd"
- 7+ days → "Xw" (round to nearest week)
Step 4: Summarize reviews
From the reviews array for each PR:
- Approved: yes if any review has
state == "APPROVED"from a member of the mozilla/fxa-devs team (exclude mozilla/fxa-l10n, bots and Copilot reviewers); otherwise no. - Reviews column: list unique human reviewer logins (exclude
copilot-pull-request-reviewerand bots) whose state isAPPROVED,CHANGES_REQUESTED, orCOMMENTED, joined by comma. If only Copilot has reviewed, write "Copilot only". If no reviews at all, write "—".
Step 5: Output the table
Render a markdown table with these columns:
| # | Title | Author | Age | Files | +/- | Draft | Reviews | Approved |
|---|
- #: linked to the PR (
[#N](url)) - Title: full PR title, linked to the PR URL
- Author:
login— append " (you)" if login matches the current git user - Age: computed in Step 3
- Files:
changedFiles - +/-:
+additions / -deletions - Draft: "Yes" (bold) if
isDraft, otherwise "No" - Reviews: computed in Step 4
- Approved: "Yes" if any
APPROVEDreview from a non-bot human; otherwise "No"
After the table, call out any actionable items in a short bulleted list:
- PRs still in draft that look ready (have reviews or approvals)
- PRs with
CHANGES_REQUESTEDthat haven't been updated since the review - PRs with no human reviews after 3+ days