02-audit

02-audit is a command for Claude Code from ViryaZheng/recomby-geo. It costs 94 tokens per session (2,213 once invoked), scanned A, original, MIT.

A command that measures how often Claude mentions and cites a client brand when answering the brand's target questions. Claude is an AI assistant, and the command records its answers, rankings, and cited web pages in audit files.

In plain words
What is it for?
Use it to run a Claude visibility audit from a client's brand context, save the baseline JSON and report, and compare later audit rounds.
Why use it?
It creates a repeatable baseline for seeing whether a brand appears in AI-generated recommendations and preserves results so later audits can be compared.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Part of the recomby-geo plugin — 9 skills, 7 commands shipped together

Good fit Use it to run a Claude visibility audit from a client's brand context, save the baseline JSON and report, and compare later audit rounds.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/viryazheng/recomby-geo/02-audit
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/ViryaZheng/recomby-geo

Made for: Claude Code.

Or install recomby-geo, the plugin that ships this one along with the rest of its 9 skills, 7 commands.

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 02-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/viryazheng/recomby-geo/02-audit/github.svg)](https://agentmods.dev/commands/viryazheng/recomby-geo/02-audit)
Your own site
<a href="https://agentmods.dev/commands/viryazheng/recomby-geo/02-audit"><img src="https://agentmods.dev/badge/commands/viryazheng/recomby-geo/02-audit/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 02-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/viryazheng/recomby-geo/02-audit"><img src="https://agentmods.dev/badge/commands/viryazheng/recomby-geo/02-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,213 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.00094 $0.02213
Opus 5 $0.00047 $0.01107
Sonnet 5 $0.00019 $0.00443
Haiku 4.5 $0.00009 $0.00221

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

Security

Grade A, and why

02-audit 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 10d 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.

plugins/recomby-geo/commands/02-audit.md · 221 lines

How it starts

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

02 · Audit — Claude Visibility Baseline

This command measures what Claude tells real users when they ask the brand's target queries — without telling Claude who the client is.

We deliberately scope the baseline to Claude only. Multi-LLM coverage (ChatGPT / Perplexity / Gemini / AI Overviews) sounds appealing but requires per-engine API keys and per-engine output normalization, which turns the plugin into a heavy ops project. Single-engine + reproducible beats multi-engine + flaky.

If you later need cross-engine coverage, the vendored seo-geo-optimizer (199-bio) skill has multi-engine analysis paths (see its scripts/platform_optimizer.py).


Inputs

  • clients/<slug>/brand_context.json — required. Reads target_queries, layer_1_business_identity.company.name, competitors.

Output

  • clients/<slug>/visibility_baseline.json (round 1) — validates against schemas/visibility_baseline.schema.json.
  • clients/<slug>/baselines/round-N.json (round 2+) — preserved snapshots for 07-reaudit diff.
  • clients/<slug>/baseline-report.md — human-readable summary.

Procedure

Step 1 — Prepare query list

jq '.target_queries | map({query, query_id: (.query | gsub(" "; "-") | ascii_downcase), priority, intent})' \
  clients/<slug>/brand_context.json > /tmp/queries.json

Strip P2 if budget-tight. Default: run all P0 + P1 + P2.

Step 2 — Define the unbiased query runner

For each query, spawn a fresh sub-agent context that does NOT see the brand_context. The sub-agent answers the query like a normal user — it uses WebSearch + WebFetch as Claude does by default, no system prompt nudging it toward our client.

Procedure for each query (loop):

Sub-agent task prompt (template):
  "You are answering a user's question. The user asked: <query>.
   Search the web (WebSearch + WebFetch as needed), then write a
   substantive answer (300-600 words) the way you would if asked
   conversationally. List specific brands/companies/products by
   name when relevant. Include the URLs you actually cited."

Read the full file on GitHub · 221 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. 10d ago First seen · 221 lines · 94 tokens per session scan A 75bcf94866b2

Subscribe to this mod's changes

02-audit is a command published in the GitHub repository ViryaZheng/recomby-geo (454 stars, last pushed 2mo ago), licensed MIT. It adds 94 tokens to every session and 2,213 once invoked, about $0.0005 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-30.