seo-ai-discovery
Skill81 starsChanged 2 months agoMITView on GitHub
Audit AI discovery files and agent endpoints at the site root — /llms.txt and /llms-full.txt structure and link health, /agents.md, the UCP merchant profile at /.well-known/ucp (only when no ecommerce module owns it), the ARD /.well-known/ai-catalog.json, and /sitemap_agentic_discovery.xml — plus a robots cross-check that these files are not blocked for the bots meant to read them. Module M21 "AI discovery & agent endpoints" (weight 0 — reported, never scored). Appears in the AI Visibility report only.
In this repository33 other files it gives its agents.
- auditSkill
- compareSkill
- fixSkill
- geoSkill
- scoreSkill
- seo-agent-readinessSkill
- seo-ai-crawlersSkill
- seo-core-web-vitalsSkill
- seo-crawlabilitySkill
- seo-crawl-renderSkill
- seo-ecommerceSkill
- seo-eeatSkill
- seo-entity-linkingSkill
- seo-fix-applySkill
- seo-freshnessSkill
- seo-geo-answerblocksSkill
- seo-geo-factdensitySkill
- seo-headings-structureSkill
- seo-images-mediaSkill
- seo-indexabilitySkill
- seo-internal-linkingSkill
- seo-internationalSkill
- seo-localSkill
- seo-meta-onpageSkill
- seo-mobileSkill
- seo-orchestratorSkill
- seo-platform-detectSkill
- seo-renderingSkill
- seo-schema-jsonldSkill
- seo-scoreSkill
- seo-sitemapsSkill
- seo-social-cardsSkill
- seo-vertical-detectSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
When the discovery probes did not run (no network, local path), status is needs_api — never a false pass.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Portions Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) - see LICENSE for original authors · tododeia.com · id er-d03758e1 -->seo-ai-discovery (M21 — AI discovery & agent endpoints)
Discovery files tell agents and coding assistants where to look; none of them is a documented answer-engine ranking or citation signal, so every M21 finding is speculative or directional and the module's weight is 0. Robots/UA posture lives in seo-ai-crawlers (M14); agentic-commerce readiness (UCP + catalog feeds on stores) lives in seo-ecommerce (M18).
Inputs
Work from the PageSnapshot named in your dispatch envelope: <run_dir>/site/discovery.json holds the probe results (status, content-type, bytes, raw bodies ≤256 KB) for /llms.txt, /llms-full.txt, /agents.md, /.well-known/ucp, /.well-known/ai-catalog.json, /sitemap_agentic_discovery.xml, /api/ucp/mcp; <run_dir>/site/robots.json holds the per-bot verdicts for the robots cross-check; vertical in the envelope decides UCP ownership. Deterministic findings already emitted by audit.mjs are listed in <run_dir>/findings.deterministic.json — do not re-emit those ids; add model-judged findings only. If invoked directly with a URL/path and no snapshot exists, first run node "${CLAUDE_PLUGIN_ROOT}/scripts/snapshot.mjs" <target> --out "${CLAUDE_PLUGIN_DATA}/runs" and use the printed snapshot path.
Audits
- llms.txt — present (200, text); llmstxt.org structure: one H1 title, optional summary blockquote, H2 sections of
- [title](url): notelinks; linked URLs resolve (--deep, ≤25 checked); the file is not disallowed in robots to the AI bots that would read it./llms-full.txtis reported present/absent only. - agents.md — present/absent; note when it is a platform default (Shopify ships one) — informational.
- UCP profile (
/.well-known/ucp) — only whenecommerceis not active (M18 owns it otherwise): public (200, no auth), JSON,ucp.versionasYYYY-MM-DD,services/capabilitiesobjects keyed by reverse-DNS names → arrays of{version, spec, transport?, endpoint?, schema}. Note a declareddev.shopify.catalogentry — it says the platform exposes a catalog service, which is a platform default, not a merchant decision. - ARD catalog (
/.well-known/ai-catalog.json) — present and parseable JSON. Report-only: v0.9 draft (2026-05-28), near-zero adoption. - Agentic sitemap (
/sitemap_agentic_discovery.xml) — present, well-formed XML, sampled<loc>entries resolve.
Fixes
- AUTO (
fixable: auto), disclosure-gated and scored 0: generate or repairllms.txt/llms-full.txtfrom the site's own structure (sitemap URLs + parsed titles) only on explicit request (fix --category ai-discovery, aliasllms), shown as a diff before writing, always with the disclosure that impact is low/uncertain. - ADVISORY (
fixable: advisory): UCP/ARD/agentic-sitemap adoption, and unblocking a disallowed discovery file (the robots write belongs to M14). The tool never authors a merchant profile — platforms generate those. - Never fabricate link targets, descriptions, endpoints, or versions — ask the user or leave a clearly-marked
TODOplaceholder.
Verification
node "${CLAUDE_PLUGIN_ROOT}/scripts/ai-discovery.mjs" --snapshot <pages/<slug>.json> [--deep]— re-readssite/discovery.json, validates llms.txt structure (dom_assert), UCP/ARD JSON shape (schema_validator), agentic-sitemap XML (xml_parse), and the robots cross-check (robots_parse).- When the discovery probes did not run (no network, local path), status is
needs_api— never a falsepass.
Findings
Conform to schema/finding.schema.json; axis ai; severity ≤2; confidence speculative unless noted. Severity policy: 5 is reserved for catastrophic, eligibility-killing facts at site/template scope; 4 major · 3 moderate · 2 minor · 1 cosmetic · 0 informational — and only an established severity-5 fail in an active category can cap a score (references/scoring-model.md). M21's category weight is 0, so nothing here can move or cap either score whatever its severity. evidence.observed quotes the file/probe line verbatim; verification.reproduce is the command above; expected_impact is banded (no naked %). Ids:
M21.llmstxt.missing(warn 1,fixable: auto) ·M21.llmstxt.malformed(warn 1,fixable: auto) ·M21.llmstxt.broken_links(warn 2,fixable: proposed,directional) ·M21.llmstxt.blocked_for_ai_bots(warn 2,fixable: advisory,directional— file exists but robots disallows it to the bots meant to read it).M21.agents_md.present(pass 1) ·M21.agents_md.missing(warn 1,fixable: advisory).M21.ucp.present_valid(pass 2) ·M21.ucp.invalid(warn 2,fixable: advisory) ·M21.ucp.not_public(warn 2,fixable: advisory) — only when ecommerce is inactive; otherwisenot_applicablenaming M18 as owner.M21.ai_catalog.present(pass 1) ·M21.ai_catalog.invalid_json(warn 1,fixable: advisory).M21.agentic_sitemap.present(pass 1) ·M21.agentic_sitemap.broken_locs(warn 2,fixable: proposed,directional).
Honesty
- Google Search ignores llms.txt — Google's statement (2026-06-15 — TO-VERIFY the exact date; it appears in Optimizing your website for generative AI features, updated 2026-07-10, and AI features and your website says "no … AI text files"). Never present llms.txt as an AI Overviews / AI Mode lever.
- Vendor support is partial (Anthropic and Perplexity read it in retrieval; OpenAI uncommitted); adoption is ~10% and, per Ahrefs (May 2026), 97% of llms.txt files received zero bot requests. Quote that figure only in
rationalewith the citation — never inexpected_impact. - UCP, ARD, and the agentic sitemap concern agent commerce and resource discovery, not answer-engine citation. Report them; nothing here moves the AI Visibility score.
- Shopify stores ship all of these by default (May 2026) — their presence on a Shopify store is a platform default, not a merchant merit signal.
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
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.

