greglas75/zuvo/geo-fix

Claude Code and agent skill by greglas75/zuvo

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Apply fixes from geo-audit findings. Reads geo-audit JSON, classifies by safety tier (SAFE/MODERATE/DANGEROUS), applies framework-aware code patches for schema, robots.txt, canonical, sitemap, llms.txt, and freshness fixes. Emits content scaffolds for advisory findings. Deduplicates against seo-fix to prevent double-application.

Install

npx vskill@latest install greglas75/zuvo/geo-fix

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as greglas75/zuvo/geo-fix.

zuvo:geo-fix -- Apply GEO Audit Fixes

Read geo-audit JSON findings. Plan patches per finding. Validate each patch. Apply by safety tier. Verify build. Report.

Scope: Post-audit fix application for GEO findings (schema, robots AI policy, canonical, sitemap, llms.txt, freshness signals, content scaffolds). Out of scope: Content writing, BLUF restructuring, heading rewriting, statistics addition, anti-pattern removal, WordPress plugin config, React SPA fixes. Out-of-scope content findings emit advisory scaffolds only (structural markers, never body content).

Mandatory File Loading

Read these files before any work begins:

Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.

  1. ../../shared/includes/codesift-setup.md -- CodeSift discovery and tool selection
  2. ../../shared/includes/env-compat.md -- Agent dispatch and environment adaptation
  3. ../../shared/includes/backlog-protocol.md -- Filing findings through backlog-add
  4. ../../shared/includes/geo-fix-registry.md -- Canonical fix_type, safety, eta, and manual verification rules
  5. ../../shared/includes/fix-output-schema.md -- JSON report contract
  6. ../../shared/includes/seo-bot-registry.md -- Canonical AI/search bot policy taxonomy for robots fixes
  7. ../../shared/includes/run-logger.md -- Run logging contract
  8. ../../shared/includes/retrospective.md -- Retrospective protocol
  9. ../../shared/includes/verification-protocol.md -- Fresh-evidence rules for build and endpoint verification
  10. ../../shared/includes/knowledge-prime.md -- Project knowledge priming
  11. ../../shared/includes/knowledge-curate.md -- Learning extraction after work
  12. ../../shared/includes/no-pause-protocol.md -- HARD rule: no mid-batch pauses

Print the checklist:

CORE FILES LOADED:
1. codesift-setup.md -- [READ | MISSING -> STOP]
2. env-compat.md -- [READ | MISSING -> STOP]
3. backlog-protocol.md -- [READ | MISSING -> STOP]
4. geo-fix-registry.md -- [READ | MISSING -> STOP]
5. fix-output-schema.md -- [READ | MISSING -> STOP]
6. seo-bot-registry.md -- [READ | MISSING -> STOP]
7. run-logger.md -- [READ | MISSING -> STOP]
8. retrospective.md -- [READ | MISSING -> STOP]
9. verification-protocol.md -- [READ | MISSING -> STOP]
10. ../../shared/includes/knowledge-prime.md -- READ/MISSING
11. ../../shared/includes/knowledge-curate.md -- READ/MISSING
12. ../../shared/includes/no-pause-protocol.md -- READ/MISSING (HARD: no mid-batch pauses)

If any file is missing, STOP.

If native agent dispatch is unavailable, execute the workflow sequentially yourself, preserve the same validation checkpoints, and note the fallback mode in the final fix report.

Safety Gates (NON-NEGOTIABLE)

GATE 1 -- Write Scope

Allowed write targets:

  • Files listed in geo-fix-registry.md target paths (source/config files)
  • zuvo/audits/ for the fix report (.md and .json)
  • memory/backlog.md (closing a resolved entry: tick it and its resolution marker; the archive helper moves it) and memory/findings/ (written by backlog-add)

FORBIDDEN:

  • Installing packages without explicit user confirmation. If a fix requires dependency installation, escalate to NEEDS_REVIEW with install instructions.
  • Writing to files not referenced by template registry or finding evidence
  • Deleting files
GATE 2 -- DANGEROUS Fix Confirmation

DANGEROUS fixes (robots-ai-policy-change, schema-restructure, and safety-upgraded findings) are NEVER auto-applied. Procedure:

  1. Show the exact diff that would be applied
  2. Explain the risk and expected GEO impact
  3. List target files
  4. Wait for explicit positive confirmation from user
  5. Without confirmation: mark as MANUAL and move to next finding
GATE 3 -- Stale Audit Protection

If audit JSON timestamp is >24h old:

  • --dry-run mode: proceed with warning
  • Default mode (SAFE only): proceed with warning
  • --auto or --all mode: require user confirmation before mutating. Without confirmation, fall back to --dry-run.
GATE 4 -- Build Verification

After applying fixes, run build verification. Detect build command from project:

  1. package.json scripts: build, astro build, next build
  2. Hugo: hugo binary
  3. If no build command found: skip build verification, note in report

Build verification claims follow verification-protocol.md:

  • Capture stdout/stderr and the process exit code
  • Treat exit code != 0 as a build failure even if logs contain optimistic lines

such as Completed, Built, or similar

  • Only report build_result: PASS when the detected build exits with code 0

Build failure -> rollback (see Phase 3 rollback model).

GATE 5 -- Dirty File Check

Before modifying any file, check for uncommitted changes in that file (git diff --name-only). If the file has uncommitted changes, mark finding as NEEDS_REVIEW instead of modifying.


Arguments

ArgumentBehavior
(no args)Read latest geo-audit JSON, apply SAFE fixes, recommend MODERATE + DANGEROUS
--dry-runShow planned fixes without applying
--autoApply SAFE + MODERATE fixes automatically (skip DANGEROUS)
--allInclude DANGEROUS fixes (requires confirmation per fix)
--skip-adversarialSkip cross-provider adversarial review
--finding G5-schema-org,G3-robots-aiFix specific findings by stable ID
--fix-type schema-org-add,robots-ai-allowFix specific fix_type categories
[json-path]Use specific JSON file instead of latest

Knowledge Prime

Run the knowledge prime protocol from knowledge-prime.md:

WORK_TYPE = "implementation"
WORK_KEYWORDS = <keywords from user request>
WORK_FILES = <files being touched>

Phase 0: Load Findings

0.1 Locate audit JSON
  1. If [json-path] provided: use that file
  2. Otherwise: glob zuvo/audits/geo-audit-*.json, parse timestamp from each, select most recent by timestamp (not filename)
  3. If no JSON found: "No geo-audit JSON found. Run zuvo:geo-audit first." STOP.

Name geo-audit, not seo-audit: step 2 globs geo-audit-*.json and 0.2 below STOPs outright when "skill" is "seo-audit". Pointing the recovery at seo-audit sent the user to produce the one file this skill both fails to glob and explicitly refuses — the same STOP fires again, with no way out of the loop.

0.2 Validate schema and version

Version handshake: Check version field. Supported versions: "1.1" (minor bumps are backward compatible). If major version differs (e.g., "2.0"): STOP with "Unsupported audit schema version [X]. Update zuvo:geo-fix."

Required fields. If any missing, STOP with "Invalid audit JSON: missing field [X]":

Required: version, skill, timestamp, result, score.overall
Required array: findings[]
Required per finding: id, dimension, check, status, fix_type, fix_safety, fix_params

Skill validation: "skill" field must be "geo-audit". If it is "seo-audit", STOP with "This is an seo-audit JSON. Run geo-fix on geo-audit output only."

0.3 Check result and freshness

PROVISIONAL audit handling: If result = "PROVISIONAL":

  • Default mode and --dry-run: proceed normally, SAFE fixes are still safe regardless of incomplete gates
  • --auto mode: restrict to SAFE fixes only (do not auto-apply MODERATE). Warn: "Audit is PROVISIONAL -- restricting to SAFE fixes. Re-run seo-audit with --live-url for full GEO coverage."
  • --all mode: require confirmation per fix (same as DANGEROUS gate)

Freshness check: Read timestamp field. Calculate age.

  • If <=24h: proceed
  • If >24h: apply GATE 3 (stale audit protection)
0.4 Filter findings

Filter findings into two categories:

  • (a) Fixable: status is FAIL or PARTIAL with fix_type != null
  • (b) Scaffolds: status is any with fix_safety = "OUT_OF_SCOPE" (for scaffold emission)

Exclude findings where fix_type is not in geo-fix-registry.md fixable inventory (Fixable? = yes). Record these as NO_TEMPLATE.

0.5 Print summary
AUDIT: geo-audit 2026-04-07 (1h ago) | Score: 41/100 (D) | 18 findings
SAFE: 4 findings (auto-fixable)
MODERATE: 7 findings (fixable with validation)
DANGEROUS: 2 findings (manual only)
OUT_OF_SCOPE: 3 findings (scaffold only -- no content generation)
NO_TEMPLATE: 1 finding (fix_type not in registry)
INSUFFICIENT DATA: 1 finding (require live audit for verification)

Phase 0.5: Dedup vs seo-fix

0.5.1 Read seo-fix output

Glob zuvo/audits/seo-fix-*.json. For each file, parse actions[].

0.5.2 Check for overlapping fixes

For each seo-fix action with status: "FIXED":

  • Check if a matching fix_type + file pair exists in the current geo-audit findings
  • Specifically check llms-txt-add (seo-fix) against llms-txt-generate / llms-txt-update (geo-fix) -- these are equivalent operations on the same file
0.5.3 Apply dedup

If match found:

  • Skip the geo-fix finding with status ALREADY_APPLIED_BY_SEO_FIX
  • Record dedup_source: "seo-fix" in the action result

If seo-fix applied the fix but with NEEDS_REVIEW or FAILED:

  • Proceed with geo-fix attempt independently

If no seo-fix JSON is present:

  • Proceed normally
0.5.4 Print dedup summary
DEDUP: N findings already fixed by seo-fix, skipping

Phase 1: Plan & Classify

1.1 Stack detection (self-contained)

Detect framework directly -- do NOT depend on geo-audit at runtime:

bash
# Inline stack detection
ASTRO=$(find . -maxdepth 3 -name "astro.config.*" 2>/dev/null | wc -l)
NEXT=$(find . -maxdepth 3 -name "next.config.*" 2>/dev/null | wc -l)
HUGO=$(find . -maxdepth 2 \( -name "hugo.toml" -o -name "hugo.yaml" \) 2>/dev/null | wc -l)

Cross-check with stack field in audit JSON. If mismatch: warn "Stack changed since audit. Consider re-running geo-audit."

Detect output directory for static files:

  • Astro/Next.js/React: public/
  • Hugo: static/
  • Unknown: search for public/ or static/, default to public/
1.2 Sort by safety tier

Order findings: SAFE first, then MODERATE, then DANGEROUS.

1.3 Context-aware safety upgrade

Per geo-fix-registry.md upgrade_eligible rules:

fix_typeUpgrade conditionFrom -> To
schema-org-addTarget file contains existing JSON-LDMODERATE -> DANGEROUS
schema-article-addTarget file contains existing JSON-LDMODERATE -> DANGEROUS
schema-faq-addTarget file contains existing JSON-LDMODERATE -> DANGEROUS
schema-id-linkTarget file contains existing @id referencesMODERATE -> DANGEROUS
robots-ai-allowrobots.txt has existing bot rulesSAFE -> MODERATE
canonical-addLayout file has an existing canonical tagSAFE -> MODERATE

When a safety upgrade fires:

  1. Record upgraded: true and upgrade_reason in the fix result JSON
  2. Downgrade to NEEDS_REVIEW if running in non-interactive mode without --force
  3. Emit a warning block naming the conflict before applying
1.4 Resolve target files

For each fix: resolve framework-specific target file from registry templates.

Target file priority (key fix types):

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
7-day trend score
11

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/greglas75/zuvo/geo-fix/badge)](https://verified-skill.com/skills/greglas75/zuvo/geo-fix)

Something wrong with this skill or its page? Tell us.