Re-runs an SEO audit, diffs against the previous baseline, and attributes query movement to specific content/distribution actions. Outputs a validated attribution diff and a human-readable monthly review report.
Ships in recomby-geo. Installing the plugin adds it to Claude Code.
Closes the loop. Without this command, the pipeline is open-loop — actions go out, no proof they did anything. With this command, every action gets graded: did it move queries, which queries, by how much, with what confidence.
clients/<slug>/visibility_baseline.json (current — about to be replaced)clients/<slug>/baselines/round-<N-1>.json (previous round)clients/<slug>/distribution/log.jsonl (every action since previous round)clients/<slug>/reaudit/round-<N>.json — validates against
schemas/attribution_diff.schema.json.clients/<slug>/reaudit/round-<N>.report.md — human-readable monthly
review.clients/<slug>/baselines/round-<N>.json — new baseline
preserved.clients/<slug>/visibility_baseline.json to the
new round.Before re-running audit, copy current visibility_baseline.json to
baselines/round-<N-1>.json if not already there. Idempotent.
Call 02-audit with meta.audit_round = N. Use the SAME target_queries
list as the previous round (do not silently drop or add queries — that
breaks the diff). If brand_context.target_queries has changed, log the
delta but keep the audit on the union for one round; signal to user that
next round will adopt the new list.
After 02-audit completes, the new baseline is at
clients/<slug>/visibility_baseline.json.
PREV=clients/<slug>/baselines/round-<N-1>.json
CURR=clients/<slug>/visibility_baseline.json
LOG=clients/<slug>/distribution/log.jsonl
Filter log entries to those with shipped_at between PREV.captured_at
and CURR.captured_at. These are the actions in this round's window.
For each query in PREV.summary.per_query:
query_id is derived from the query string (02-audit Step 1),
so any edit (even punctuation) mints a new id and silently drops the
query from the diff. To revise a tracked query, retire the old one and
add the new under a fresh id rather than editing in place.improved — mention_rate up by ≥10pp OR position improved by ≥1.regressed — mention_rate down by ≥10pp OR position worse by ≥1.newly-won — was 0 mention_rate, now > 0.3.newly-lost — was > 0.3 mention_rate, now 0.stable — within ±10pp and ±1 position.Two verdict frames — don't mix them. 02-audit's baseline verdicts
(winning / contested / absent) are ABSOLUTE snapshots: winning
needs mention_rate ≥ 0.6 and position ≤ 3. The verdict_change values
above are DELTAS between rounds: newly-won's 0.3 threshold means
"crossed from zero into contested territory", NOT "became winning".
A query can be newly-won here and still contested in the new
baseline. When reporting, use verdict_change for movement and the new
baseline's verdict for current state — never infer one from the other.
For each query with movement (improved / regressed / newly-won / newly-lost):
targets_query_ids includes this
query_id.attributed_actions[] = matched action ids.attribution_confidence:
high — exactly one matched action published 7–30 days ago, no
confounding factors.medium — one matched action with caveats (recent re-audit gap,
competitor also moved).low — multiple candidate actions, or movement direction
inconsistent with action.unknown — no matched actions; movement is unexplained (could be
competitor change, AI model update, market drift).For each action in this round's window:
summary.actions_with_impact.summary.actions_without_impact with a diagnosis field.Diagnosis options:
too-recent — published <7 days before re-audit; not enough re-index
time.wrong-target — action targeted query the brand had no shot at given
competitor entrenchment.weak-content — published but low citation density / no first-party
data; probably not getting cited.distribution-gap — published but no internal links / no llms.txt /
no external mentions; AI engines didn't find it.competitor-counter — action would have worked but a competitor
shipped a stronger piece.unknown — needs human review.Diagnosis feeds into the next 03-gap run.
queries_improved = count(verdict_change in {"improved", "newly-won"})
queries_regressed = count(verdict_change in {"regressed", "newly-lost"})
queries_stable = count(verdict_change == "stable")
overall_score_delta = CURR.summary.overall_visibility_score - PREV.summary.overall_visibility_score
next_round_recommendations[] — plain-language hand-off. Examples:
<query> produced 0 movement; diagnosis: too-recent.
Hold next round before re-prioritizing."<competitor> started winning <query>; consider displace-competitor
brief next round."<new query> to target_queries — surfaced 4 times in
Layer 2 user questions but not yet tracked."clients/<slug>/reaudit/round-<N>.json (machine)clients/<slug>/reaudit/round-<N>.report.md (human)Report layout:
# Re-audit Round <N> — <client>
> previous: round <N-1> @ <ts> — score <X>/100
> current: round <N> @ <ts> — score <Y>/100
> delta: <±Z>
## Headline movements
<table: query | prev → curr | delta | verdict | attributed action(s)>
## What worked
<list: actions_with_impact>
## What didn't (and why)
<list: actions_without_impact with diagnosis>
## Recommendations for next round
<from summary.next_round_recommendations>
python3 -c "import json,jsonschema; \
s=json.load(open('plugins/recomby-geo/schemas/attribution_diff.schema.json')); \
d=json.load(open('clients/<slug>/reaudit/round-<N>.json')); \
jsonschema.validate(d,s); print('OK')"
attribution_confidence: unknown. Do not invent causal stories.
Mechanical ceiling, not judgment: high requires EXACTLY ONE matched
action published 7–30 days before measurement — 2+ candidate actions
caps confidence at low, zero matches forces unknown. If you catch
yourself writing a narrative to justify high on a multi-action
query, that narrative is the invented causal story this rule bans.too-recent, not weak-content.skills/02-audit/SKILL.md — re-invoked with meta.audit_round = N
(Claude-native subagent path; no external shim).seo-geo-optimizer/scripts/freshness_monitor.py (vendored from
199-biotechnologies) — for freshness-update action diagnosis.references/auriti/princeton-geo-methods.md — empirical basis for
"what kind of content moves visibility" used in
actions_without_impact diagnosis (weak-content vs distribution-gap
vs wrong-target).Signal: "Round reaudit complete. Score →. /. Recommendations written. Run 03-gap next round on the new priorities."
What the command file sets; muted values are Claude Code's defaults
seo-audit, attribution, diff, monthly-review, closing-the-loop
7-day visitors to each command page
/recomby-geo:07-reaudit <client-folder, e.g. clients/acme>from recomby-geo
npx claudepluginhub viryazheng/recomby-geo --plugin recomby-geo7 commands in this plugin
/01-intake01 · Intake — Build the Brand ContextBuild the GEO brand context for a client by ingesting provided materials (PDF/DOCX/PPTX/XLSX, URLs, raw notes) and conducting structured AI-perception + competitor + community research. Writes brand_context.json validated against schemas/brand_context.schema.json. Use when starting a new client (clients/<slug>/inputs/ has materials but no brand_context.json), or when brand_context.json is marked status=stale. Downstream consumers: 02-audit, 03-gap, 04-content-brief, 05-production./02-audit02 · Audit — Claude Visibility BaselineRun a Claude-native visibility audit. For each query in brand_context.target_queries, ask Claude to answer the query as a real user would (using WebSearch + WebFetch), then record whether the client brand is mentioned, at what position, and which URLs were cited. Outputs visibility_baseline.json validated against schema. This is the BASELINE — the reference point for 07-reaudit. Use after 01-intake; rerun for re-audit rounds./03-gap03 · Gap & Opportunity — Prioritize What to BuildTranslate the visibility baseline + brand context into a ranked list of content actions that should move the needle. Identifies absent queries, contested queries, and competitor-displacement opportunities. Outputs content_priorities.json validated against schema. Use after 02-audit; consumed by 04-content-brief./04-content-brief04 · Content Brief — Human-in-Loop CheckpointFor one priority from content_priorities.json, generate a content brief with explicit slots for the human expert (founder/domain specialist) to fill with real cases, real data, and real opinions. This is the human-in-loop checkpoint — the moat that prevents the entire workflow from collapsing into "AI writing more AI-readable AI slop." Outputs briefs/<priority-id>.md. Use after 03-gap; consumed by 05-production ONLY after the expert has filled the marked slots./05-production05 · Production — Draft GenerationConvert an expert-filled brief into a publishable draft. Applies Princeton KDD 2024 GEO techniques (statistics, quotations, citations, authoritative language) to maximize AI citation likelihood. Refuses to run on briefs that haven't been filled by the expert. Outputs drafts/<id>.md. Use after 04-content-brief produces a brief with status=ready-for-production./06-distribution06 · Distribution & Schema — Publish-Ready BundleFor a published-ready draft, generate JSON-LD schema markup, internal linking suggestions, third-party distribution targets, and llms.txt block. Outputs distribution/<id>.json and distribution/<id>.publish-bundle.md. Use after 05-production; consumed by 07-reaudit (records actions for attribution).Other plugins' commands for the same job