gaia: Agent for Claude Code

.claude/agents/code-audit-frontend.md

code-audit-frontend is an agent for Claude Code from gaia-react/gaia. It costs 42 tokens per session (9,437 once invoked), scanned A, original, MIT.

A broad code-review agent for React, TypeScript, and related application files. It examines security, performance, architecture, and maintainability, not just formatting or type errors.

In plain words
What is it for?
Use it for comprehensive reviews of frontend code, tests, workflows, configuration, and deployment-related files before merging a pull request.
Why use it?
It can identify problems that automated linting and type-checking do not catch, including risky data flows and architectural weaknesses.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

This is gaia-react/gaia's own configuration. It tells Claude Code how to work on gaia itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gaia configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gaia-react/gaia. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gaia-react/gaia/main/.claude/agents/code-audit-frontend.md
Clone the repo
git clone --depth 1 https://github.com/gaia-react/gaia

Made for: Claude Code.

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 code-audit-frontend

README.md
[![agentmods](https://agentmods.dev/badge/agents/gaia-react/gaia/code-audit-frontend/github.svg)](https://agentmods.dev/agents/gaia-react/gaia/code-audit-frontend)
Your own site
<a href="https://agentmods.dev/agents/gaia-react/gaia/code-audit-frontend"><img src="https://agentmods.dev/badge/agents/gaia-react/gaia/code-audit-frontend/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 code-audit-frontend

Your own site · 80×15
<a href="https://agentmods.dev/agents/gaia-react/gaia/code-audit-frontend"><img src="https://agentmods.dev/badge/agents/gaia-react/gaia/code-audit-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,437 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.00042 $0.09437
Opus 5.5 $0.00017 $0.03775
Sonnet 5.5 $0.00008 $0.01887
Haiku 4.5 $0.00004 $0.00944

Measured 6d ago against content hash 6d59ca69b29b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-audit-frontend 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 6d 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.

.claude/agents/code-audit-frontend.md · 371 lines

How it starts

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

Contents: Remit and self-skip; Extension Loading; How this review runs; Main-agent review dimensions; Project-Specific Rules to Enforce; Findings grading; Cross-remit findings; Finding Proof Gate (holistic reviewer); Findings outside the branch; Output Format; Finding classification; Methodology; Rules-Based Audit (Specialist Subagents + react-doctor + knip + advisories); Constraints; Report, marker and sidecar.

You conduct comprehensive code audits for production React 19 / React Router 7 SSR / TypeScript / Tailwind v4 applications. You go beyond what ESLint, TypeScript, and existing Claude rules catch, focusing on issues that require reasoning about intent, data flow, and architectural fitness. Think adversarially about security and holistically about architecture.

Remit and self-skip

  • frontend/app/**
  • frontend/test/**
  • frontend/.storybook/**
  • .github/workflows/**
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • frontend/package.json
  • frontend/tsconfig*.json
  • frontend/*.config.ts
  • frontend/*.config.mts
  • frontend/*.config.mjs
  • frontend/*.config.cjs
  • frontend/*.config.js
  • frontend/dev-ports*.ts
  • *.config.ts
  • *.config.mts
  • *.config.mjs
  • *.config.cjs
  • *.config.js
  • frontend/.playwright/**
  • .npmrc
  • .prettierignore
  • .nvmrc
  • .node-version
  • frontend/.lintstagedrc.json
  • frontend/.prettierignore
  • frontend/Dockerfile
  • frontend/Dockerfile.dockerignore
  • frontend/.env.example
  • frontend/components.json
  • frontend/gaia.package.json
  • frontend/.claude/**
  • frontend/CLAUDE.md

Your globs above are a second precedence tier: every claimant member's globs are matched first, first-match-wins over roster order, and a path any claimant claims belongs to that claimant even when a glob above also matches it. Only a path no claimant claims reaches you. The roster is the whole truth about your reach; nothing outside this region grants you a file it does not declare.

You are the Code Audit Team's default member.

Resolve the audited root first. The "Working root:" line and AUDIT_ROOT assignment the orchestrator dispatches you with are authoritative; the ambient directory is the fallback only when none was supplied.

AUDIT_ROOT="${AUDIT_ROOT:-$PWD}"
AUDIT_ROOT="$(cd "$AUDIT_ROOT" 2>/dev/null && pwd -P)" && [ -n "$AUDIT_ROOT" ] || exit 1
printf '%s\n' "$AUDIT_ROOT"

Run it once, as its own Bash call, with the dispatched AUDIT_ROOT= assignment ahead of it when the orchestrator supplied one. It prints the root resolved physically, and that printed path is what <root> stands for, typed as a literal, in every command below.

Before anything else, Read <root>/.claude/hooks/lib/audit-member-protocol.md by path and follow its "Scope resolution" section as part of this definition. It owns the literal-values rule and the worktree confinement behind it, what each line the scope resolver prints means, the scope-digest capture and the DIRTY= withhold. You run the resolver itself under "Resolve the review scope" below; its self-skip lines do not apply to you.

A full review is your default: run it unconditionally, without re-deriving your remit or self-skipping by hand. A bare self-match against your own glob list cannot see the claimant-precedence carve-out above.

Read the full file on GitHub · 371 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. 6d ago Changed 6d59ca69b29b
  2. 7d ago Changed · -1 lines 99bfe612724d
  3. 8d ago Changed · -116 lines 1996279fe4e6
  4. 10d ago Changed dc3348dfbeb1
  5. 11d ago Changed · +1 lines · -12 tokens per session a8ca664c4ef3
  6. 13d ago Changed · -10 lines 4d7b9dc0a62d
  7. 14d ago Changed · -5 lines 99afbbab600c
  8. 15d ago Changed · -1 lines cbbffa5a3fd9
  9. 16d ago Changed · -1 lines 5224704685eb
  10. 20d ago First seen · 504 lines · 54 tokens per session scan A dd5a585eaf24

Subscribe to this mod's changes

code-audit-frontend is an agent published in the GitHub repository gaia-react/gaia (26 stars, last pushed 4d ago), licensed MIT. It adds 42 tokens to every session and 9,437 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

Other agents, from other repositories

pr-reviewer

Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.

HoangNguyen0403/agent-skills-standard · 47 tokens

claude-md-compliance-checker

Use after completing implementation tasks to verify changes comply with CLAUDE.md project rules — file boundaries (src/, e2e/ only), path alias usage (@/), feature-slice architecture, AIDEV-NOTE comments, scope creep, and forbidden actions (unauthorized commits, API contract changes). NOT for general code quality …

bartstc/vite-ts-react-template · 85 tokens

pr-reviewer

STRICT internal pre-PR reviewer — the final gate BEFORE a PR is opened, so CodeRabbit finds fewer bugs. A generalist, diff-scoped critic that runs the repo's REAL tools, traces cross-file blast radius, verifies every finding, and applies React 19 / TS / Tauri 2 + Rust invariant checks. Use right before git push /…

saeedkolivand/ai-job-hunter-app · 119 tokens

finding-verifier

Per-finding verification judge for the review pipeline — a FRESH context that receives exactly ONE candidate review finding and scores how real it is (confidence 0-100). Spawned in parallel by /review's synthesis step for findings only one ensemble pass raised. Utility agent (no author pair, read-only, never edits…

saeedkolivand/ai-job-hunter-app · 92 tokens

extension-reviewer

Primary reviewer for the browser extension (apps/extension/ — MV3, Chrome + Firefox) and the desktop⇄extension bridge (native-host + loopback WebSocket pairing/token auth, origin allowlist) plus the shared extension protocol. Audits MV3 compliance, permission minimization, pairing/auth correctness, protocol lockstep…

saeedkolivand/ai-job-hunter-app · 88 tokens

pr-creator

Use for creating and editing pull requests via gh pr create, gh pr edit, gh pr view, gh pr diff, and gh pr list. Does NOT merge or mark ready (use pr-merger for that). A Bash command denied by the harness permission system is surfaced to the operator, never reshaped to evade the denial.

axiomantic/spellbook · 75 tokens