agentleFS
Red-Center-StudioRed-Center-Studio/rcs-agent-skills/skills/geo-audit/SKILL.md

geo-audit

Skill0 starsChanged 13 days agoMITView on GitHub

Audit and fix a website so AI assistants and search engines can read, understand and cite it. Checks robots.txt rules for AI crawlers, sitemap, llms.txt, JSON-LD structured data, canonical and Open Graph tags, then fixes what failed and proves it with the bundled verify-geo.mjs script. Use when asked for a GEO audit, AI search readiness, AI crawler access, llms.txt, or schema markup on a site or codebase.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use geo, seo-local and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ORBWEVASkill

    geo

    Generative Engine Optimization — optimize content for AI search engines (ChatGPT, Perplexity, Google AI Overviews, Gemini). Use when user wants to rank in AI search, improve AI citability, audit content for LLM visibility, or explicitly invokes /geo commands. Triggers on "GEO", "generative engine", "AI search", "AI overviews", "citability", "Perplexity", "ChatGPT search", or /geo commands.

    Also in 8 projects that use this

  • mangollcSkill

    seo-local

    Local SEO optimization: Google Business Profile post generation, 30-day posting calendars, NAP consistency checks, local citation audits, review response templates, local keywords.

    Also in 3 projects that use this

  • megastepSkill

    seo-schema

    Detect, validate, and generate Schema.org structured data. JSON-LD format preferred. Use when user says "schema", "structured data", "rich results", "JSON-LD", or "markup".

    Also in 3 projects that use this

  • webrenewSkill

    seo-technical

    Audit and improve technical SEO in Next.js apps. Use this skill for metadata, structured data, Open Graph, sitemaps, robots rules, canonical URLs, hreflang, redirects, search visibility, and crawlability.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 8 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invent facts: No made-up ratings, review counts, awards, prices, addresses, phone numbers, founding dates or social profiles.

    line 18
  2. Distinctive:

    Schema must match the page: Every claim in JSON-LD (price, FAQ question, rating, name) must be visible to a person on the same page.

    line 19
  3. Distinctive:

    Run the script and keep the output:

    line 27
  4. Very specific:

    Add --page path/to/page.html with --dir to check a page other than the home page.

    line 34
  5. Distinctive:

    Check at least the home page and one page of each main type (product or service page, article, contact).

    line 35
  6. Distinctive:

    Read the page source yourself for what the script cannot judge:

    line 36
  7. Very specific:

    Start from templates/robots.ai.txt.

    line 51
  8. Distinctive:

    Check the host as well as the file.

    line 55
  9. Very specific:

    Add one <script type="application/ld+json"> block per page, built where the site builds its <head>.

    line 59
  10. Very specific:

    Do not add aggregateRating or review unless real reviews are displayed on that page.

    line 67
  11. Distinctive:

    Delete any property you cannot fill with a real value.

    line 68
  12. Very specific:

    Every page gets exactly one <link rel="canonical"> with its full https URL.

    line 72
  13. Very specific:

    Every page gets og:title, og:description, og:url, og:image (absolute URL), og:type and twitter:card.

    line 73
  14. Very specific:

    Every page gets a unique <title> (60 characters or fewer) and meta description (about 155), one H1, a lang attribute and a <main> landmark.

    line 74
  15. Distinctive:

    Run the script again on the same pages as in Phase 1:

    line 82
  16. Very specific:

    Do not report the work as done while the script prints FAIL.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GEO audit and fix

You are making a website readable and citable by AI assistants (ChatGPT, Claude, Perplexity, Google AI Overviews) and search engines. Work in the five phases below, in order. Do not skip Phase 5: the job is done when the script passes, not when the files exist.

Paths in this file are relative to this skill's folder. The script needs Node 18 or newer and has no dependencies.

Ground rules

  1. Never invent facts. No made-up ratings, review counts, awards, prices, addresses, phone numbers, founding dates or social profiles. If a value is not on the site or given by the user, leave the property out or ask.
  2. Schema must match the page. Every claim in JSON-LD (price, FAQ question, rating, name) must be visible to a person on the same page. If it is not on the page, it does not go in the schema.
  3. No leftover template text. Nothing containing {{, TODO, "Your Company" or example.com may ship. The script fails on these.
  4. Change the source, not the output. Find where the site generates its head tags, robots.txt and sitemap (a layout component, a build script, a CMS setting) and change it there. Do not edit files in a build output folder.
  5. Ask before a business decision. Whether to allow AI training crawlers is the owner's call. Ask once, then write the answer down in robots.txt.

Phase 1: Audit

  1. Work out what you are checking: a live URL, a built folder (dist, build, public, out, .next), or both. If the project has a build command, run it first so you check real output.
  2. Run the script and keep the output:

    node scripts/verify-geo.mjs --url https://the-site/
    node scripts/verify-geo.mjs --dir ./dist

    Add --page path/to/page.html with --dir to check a page other than the home page. Add --json if you want to parse the results.

  3. Check at least the home page and one page of each main type (product or service page, article, contact). Problems are usually per template, not per page.
  4. Read the page source yourself for what the script cannot judge:
    • Does the first screen of text say plainly what the business does, for whom and where?
    • Is the main content in the HTML, or does it only appear after JavaScript runs? AI crawlers mostly do not run JavaScript. If the HTML is an empty shell, say so: it matters more than everything else here.
    • Are headings in order (one H1, then H2, H3) and do they describe the content?
  5. Report to the user before changing anything: what failed, what you will change, and any question from Ground rule 5.

Phase 2: robots.txt and AI crawlers

There are two kinds of AI crawler, and they should be handled separately:

KindUser agentsDefault
Search and answer: fetch a page when a person asks about itOAI-SearchBot, ChatGPT-User, PerplexityBot, Perplexity-User, Claude-SearchBot, Claude-UserAllow
Training: collect text to train modelsGPTBot, ClaudeBot, Google-Extended, CCBotAsk the owner
  1. Start from templates/robots.ai.txt. Keep the site's existing Disallow rules for private paths.
  2. Give every crawler in the table its own User-agent group with Allow: / or Disallow: /. An explicit rule shows the choice was deliberate.
  3. Blocking a training crawler does not block the search crawlers, so a site can opt out of training and still be cited.
  4. Add Sitemap: https://the-domain/sitemap.xml.
  5. Check the host as well as the file. A firewall or bot protection rule (Cloudflare, Vercel, a WAF) can block AI crawlers even when robots.txt allows them. If you can see that configuration, check it. If you cannot, tell the user to check it.

Phase 3: Structured data (JSON-LD)

  1. Add one <script type="application/ld+json"> block per page, built where the site builds its <head>.
  2. Site-wide, on every page: Organization and WebSite (templates/schema-organization.jsonld, templates/schema-website.jsonld). Give them stable @id values and refer to them from other nodes.
  3. Per page type, only where it is true:
    • A software product or app: SoftwareApplication with an Offer (templates/schema-software-app.jsonld). price is digits only, priceCurrency is a three-letter code, and the same price is visible on the page.
    • A page with questions and answers shown on it: FAQPage (templates/schema-faq.jsonld). Copy each question exactly as it appears on the page.
    • Articles: Article or BlogPosting with headline, datePublished, dateModified, author.
    • A local business: LocalBusiness with the real address and opening hours.
  4. Generate the schema from the same data the page renders from (the product record, the FAQ array). Two hand-typed copies will drift apart.
  5. Do not add aggregateRating or review unless real reviews are displayed on that page.
  6. Delete any property you cannot fill with a real value. A shorter, true block beats a complete, guessed one.

Phase 4: Canonical, Open Graph and llms.txt

  1. Every page gets exactly one <link rel="canonical"> with its full https URL. Pick one form (with or without the trailing slash, with or without www) and use it in the canonical, og:url, the sitemap and internal links.
  2. Every page gets og:title, og:description, og:url, og:image (absolute URL), og:type and twitter:card.
  3. Every page gets a unique <title> (60 characters or fewer) and meta description (about 155), one H1, a lang attribute and a <main> landmark.
  4. The sitemap lists every page that should be found, and nothing that is noindex or redirected.
  5. llms.txt: write /llms.txt from templates/llms.template.txt, following the format at llmstxt.org: one # Title, a > summary blockquote, then ## Sections of - [Name](https://full-url): description links. Link the pages that best answer the questions a customer would ask. Generate it from the site's own page list if there is one.
  6. Be straight with the user about llms.txt: it is cheap to add and harmless, but independent log studies show most AI crawlers do not request it today. Phases 2 and 3 matter more. llms-full.txt (the full text of the key pages in one file) is optional; add it only if the user wants it.

Phase 5: Verify and finish

  1. Rebuild the site if it has a build step.
  2. Run the script again on the same pages as in Phase 1:

    node scripts/verify-geo.mjs --dir ./dist
    node scripts/verify-geo.mjs --dir ./dist --page pricing/index.html
  3. Fix every FAIL line and run it again. Repeat until the last line is PASS. Each failure prints the file, the line where it can tell, and the fix.
  4. Go through the warnings. Fix them or tell the user why one is left (for example, the owner chose not to add llms.txt).
  5. Finish with a short report: what you changed and where, the before and after script results, what the user still has to decide or do (firewall rules, a deploy), and anything you could not verify.

Do not report the work as done while the script prints FAIL.

What the script checks

AreaFails whenWarns when
robots.txtThe file is missing, or a search and answer crawler is blocked from the whole siteA crawler has no explicit rule, or there is no Sitemap line
llms.txtThe file exists but has no # Title, no > summary, no ## Section, or a link that is not a full URLThe file is missing
JSON-LDNo block, invalid JSON, missing @context or @type, leftover template text, an FAQ question or rating that is not on the page, a price that is not a plain number
CanonicalMissing, duplicated, or not an absolute https URL; og:url differs from itIt differs from the address being checked
Open Graphog:title, og:description, og:url or og:image missingog:type or twitter:card missing
Pagenoindex, no title, no meta description, no H1Long title or description, several H1s, no lang, no <main>
SitemapThe file is not a sitemapThe file is missing

--strict turns warnings into failures. Exit code 0 means pass, 1 means at least one failure.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.