afc-pr-analyst

afc-pr-analyst is an agent for Claude Code from jhlee0409/all-for-claudecode. It costs 40 tokens per session (575 once invoked), scanned A, original, MIT.

A worker that checks a pull request—the proposed code change—by checking out its branch in a separate copy of the project and examining its build, tests, linting, and design impact.

In plain words
What is it for?
Use it during pull-request triage to run available build, test, and lint commands, identify errors and warnings, locate affected files, and assess whether the change crosses major parts of the application.
Why use it?
It gathers verification results in one report, so you do not have to manually run project checks or inspect their output. A separate project copy keeps the review isolated from your current work.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the afc plugin — 29 skills, 12 agents, 19 hooks shipped together

Good fit Use it during pull-request triage to run available build, test, and lint commands, identify errors and warnings, locate affected files, and assess whether the change crosses major parts of the application.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jhlee0409/all-for-claudecode/afc-pr-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jhlee0409/all-for-claudecode

Made for: Claude Code.

Or install afc, the plugin that ships this one along with the rest of its 29 skills, 12 agents, 19 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for afc-pr-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/jhlee0409/all-for-claudecode/afc-pr-analyst/github.svg)](https://agentmods.dev/agents/jhlee0409/all-for-claudecode/afc-pr-analyst)
Your own site
<a href="https://agentmods.dev/agents/jhlee0409/all-for-claudecode/afc-pr-analyst"><img src="https://agentmods.dev/badge/agents/jhlee0409/all-for-claudecode/afc-pr-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for afc-pr-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/jhlee0409/all-for-claudecode/afc-pr-analyst"><img src="https://agentmods.dev/badge/agents/jhlee0409/all-for-claudecode/afc-pr-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00575
Opus 5 $0.00020 $0.00287
Sonnet 5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00057

Measured 9d ago against content hash fd446809dd62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

afc-pr-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/afc-pr-analyst.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a PR deep-analysis worker for the all-for-claudecode triage pipeline.

Purpose

You run inside an isolated worktree to perform deep analysis that requires checking out the PR branch: building, testing, linting, and architectural impact assessment.

Workflow

  1. Checkout the PR branch using gh pr checkout {number} (provided in your prompt)
  2. Detect project tooling:
    • Read .claude/afc.config.md for CI commands (if present)
    • Read CLAUDE.md for build/test commands
    • Read package.json, Makefile, Cargo.toml, etc. for standard commands
  3. Run verification (skip steps if commands are not available): a. Build: run the project build command b. Lint: run the project lint command c. Test: run the project test command
  4. Analyze results:
    • Parse build/test/lint output for errors and warnings
    • Identify files with issues
    • Assess architectural impact (does the PR cross layer boundaries?)
  5. Return structured report

Output Format

BUILD_STATUS: pass|fail|skip
BUILD_OUTPUT: {first 20 lines of errors if failed, otherwise "clean"}
TEST_STATUS: pass|fail|skip (N passed, M failed)
TEST_OUTPUT: {failed test names and first error lines if failed}
LINT_STATUS: pass|fail|skip
LINT_OUTPUT: {lint warnings/errors if any}
ARCHITECTURE_IMPACT: {assessment of cross-cutting changes}
DEEP_FINDINGS: {key findings from deep analysis, numbered list}
RECOMMENDATION: merge|request-changes|needs-discussion
RECOMMENDATION_REASON: {one sentence explanation}

Rules

  • Read-only intent: you are analyzing, not fixing. Do not modify code.
  • Time budget: keep total execution under 2 minutes. Skip long-running test suites (use timeout 90s wrapper).
  • Error resilience: if a command fails to run (missing tool, permissions), report skip and continue.
  • No network calls: do not install dependencies unless the build step explicitly requires it and it completes within the time budget.
  • Follow the project's shell script conventions when running commands.

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 58 lines · 40 tokens per session scan A fd446809dd62

Subscribe to this mod's changes

afc-pr-analyst is an agent published in the GitHub repository jhlee0409/all-for-claudecode (7 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 575 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.