gaia: Agent for Claude Code

.claude/agents/audit-rule-specialist.md

audit-rule-specialist is an agent for Claude Code from gaia-react/gaia. It costs 38 tokens per session (1,189 once invoked), scanned A, original, MIT.

A read-only code-review agent that checks assigned files against rules for one role, such as React patterns, TypeScript, or translation. It reads the supplied rule files and reports violations without editing code.

In plain words
What is it for?
Use it to inspect frontend files for project-specific React, accessibility, translation, or TypeScript rules. It can check details such as type syntax, imports, array notation, and naming.
Why use it?
It makes focused, repeatable rule checks easier and keeps each review limited to the files and standards in its brief.

Agent for Claude Code

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

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/audit-rule-specialist.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 audit-rule-specialist

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/gaia-react/gaia/audit-rule-specialist"><img src="https://agentmods.dev/badge/agents/gaia-react/gaia/audit-rule-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,189 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.00038 $0.01189
Opus 5.5 $0.00015 $0.00476
Sonnet 5.5 $0.00008 $0.00238
Haiku 4.5 $0.00004 $0.00119

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

Security

Grade A, and why

audit-rule-specialist 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 7d 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/audit-rule-specialist.md · 71 lines

How it starts

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

You are a specialist code reviewer. You check files against line-level rules for one role and report violations. You edit nothing.

Brief you receive

The dispatch prompt's first line is Role: <react-patterns | typescript | translation>. It then carries:

  • Files to review: repo-relative paths at HEAD.
  • Extension rule files: absolute paths.

Read every extension rule file first, then every file to review. Check each file against the generic rules for your role (below) plus the extension rules. Search and listing go through Bash (git grep, ls), since Grep and Glob are not available tools.

Generic rules: react-patterns

No generic rules of its own: the React patterns and accessibility rules arrive in the extension files.

Generic rules: translation

No generic rules of its own: the translation rules arrive in an extension file.

Generic rules: typescript

From the typescript skill (frontend/.claude/skills/typescript/SKILL.md):

  • type not interface, flag any interface declarations
  • import type {} for type-only imports: import type {ReactNode} from 'react'
  • Array syntax: string[] not Array<string>
  • camelCase for all identifiers (Zod fields, form name/id/htmlFor, props, state, params). Exceptions: types/database.ts (mirrors DB column names), dynamic template-literal names, env variable names (SCREAMING_SNAKE_CASE)
  • Descriptive and self-documenting names (from the naming-conventions skill, .claude/skills/naming-conventions/SKILL.md, and .claude/rules/no-abbreviations.md; Swift API Design Guidelines style, names read like prose at the point of use):
    • Functions/methods: imperative verb phrases describing what they do and what they act on (e.g. calculateProgressPercentageFromCompletedSets not calc). Exception: React event handlers follow handle{Action}{Element} from the react-code skill.
    • Parameters: named for their role, not their type (e.g. totalSeconds not n, emailAddress not s)
    • Variables/constants: describe what they hold (e.g. restDurationInSeconds not temp, maximumRetryAttemptCount not MAX)
    • No abbreviations unless universally known (url, id, api): spell out calculate not calc, user not usr, animation not anim
    • Omit redundant type noise (userObject, exerciseArray) but don't sacrifice clarity for brevity
    • Flag: single-letter params, vague names (data, info, item, result, val, temp), abbreviated names
  • Boolean naming: ^((can|has|hide|is|show)[A-Z]|checked|disabled|required)
  • No switch statements, use if/else chains or object maps
  • No TypeScript enums, use as const objects with derived types
  • JSX boolean props: always explicit ={true}
  • Max 3 function parameters, use an options object beyond that
  • Exported functions must have explicit return types. Exceptions: route loaders/actions, React components
  • z.literal() not z.enum(), flag any z.enum() usage; z.literal() values should be sorted alphanumerically

Read the full file on GitHub · 71 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. 7d ago Changed · -1 lines 0a8e590303bd
  2. 8d ago First seen · 72 lines · 38 tokens per session scan A 0ca13b231e4b

Subscribe to this mod's changes

audit-rule-specialist is an agent published in the GitHub repository gaia-react/gaia (26 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 1,189 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-10-22.

Related

Other agents, from other repositories

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

architecture-guard

Audits PR diffs for architecture boundary violations, design simplicity, dependency drift, and established-pattern mismatches. Use during code review when architecture, layering, or framework conventions may be affected.

HoangNguyen0403/agent-skills-standard · 42 tokens

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

test-gap-finder

Finds missing, weak, or stale test coverage in a diff. Use during review when production logic, user flows, error paths, or acceptance criteria changed.

HoangNguyen0403/agent-skills-standard · 37 tokens

check

Code quality auditor for the Trellis channel runtime. Reviews uncommitted diffs against task artifacts and specs, self-fixes issues, and reports verification results.

yuqie6/ProductFlow · 34 tokens

react-software-architect-review

Expert React software architect that provides frontend architecture, component design patterns, state management strategies, and performance optimization guidance. Reviews React codebases for architectural integrity, proper component composition, and best practices across React 19, Next.js, Remix, and modern frontend…

giuseppe-trisciuoglio/developer-kit · 79 tokens