Agent discovery

From joelhooks/joelclaw · View interactive version

Agent discovery is an AI agent skill from the GitHub repository joelhooks/joelclaw. Optimize websites, docs, and product surfaces for agent discoverability and operator UX. Use when working on agent SEO/AEO/GEO, crawl policy, markdown or JSON projections, llms.txt, sitemap.md, AGENTS.md guidance, content negotiation, accessibility for browser agents, or any request to make a site e

How to use this skill

Skill file

Agent Discovery

This skill is about an opinionated blend of traditional SEO, static truth in the initial response, and UX ergonomics for agents and operators.

Don't reduce this to "AI SEO".

If a page can't be crawled, cited, parsed, navigated, or actioned by an agent harness, it is broken in a way normal SEO reports won't fully show.

Thesis

Treat agent discoverability as four stacked layers:

  1. Search baseline — crawlable pages, clean robots policy, sitemap, structured data, canonical answers, freshness.
  2. Initial-response truth — the important facts must be present in the first HTML response.
  3. Machine-readable projections — markdown/text/JSON surfaces that project the same canonical resource without drift.
  4. Operator ergonomics — the site should be easy to drive from pi, OpenCode, Claude Code, ChatGPT, or a browser agent without guesswork.

If layer 1 is broken, you won't get found.

If layer 2 is broken, agents won't extract the truth.

If layer 3 is broken, harnesses waste tokens scraping HTML.

If layer 4 is broken, operators and browser agents hit dead ends.

When to Use

Use this skill when the task mentions:

Core Rules

1. Do the boring SEO work first

Before fancy protocols, verify:

Useful mental model from the audit side:

  1. crawlability and indexation
  2. technical foundations
  3. on-page clarity
  4. content quality / trust
  5. authority / citations / mentions

2. Initial HTML is the truth surface

The important facts must survive:

Don't hide core facts behind:

Static rendering is a principle, not a framework fetish.

A static shell with small dynamic holes is fine.

A blank SPA shell is dogshit for both search and agents.

3. One resource, multiple truthful projections

Give the same resource multiple machine-friendly shapes:

The rule is projection, not duplication.

Do not maintain three separate truths for HTML, markdown, and JSON.

Project them from one canonical content source.

4. `llms.txt` is a hint surface, not a ranking hack

Use llms.txt or similar text hints as:

Do not claim it boosts ranking by itself.

Google has been explicit: AI discovery does not require special AI-only markup.

5. AGENTS.md beats hoping skills trigger

For coding-agent surfaces, persistent repo context matters more than wishful tool invocation.

Vercel's evals are useful here:

Use:

That split matters for pi, OpenCode, and Claude Code.

6. Accessibility is agent UX

Browser agents and automation stacks lean on the accessibility tree.

Prefer:

If Playwright can't find it by role or label, an agent harness will likely struggle too.

7. Operator UX matters too

An operator using an agent harness should not need to reverse-engineer your product.

Good patterns:

Bad patterns:

joelclaw Implementation Map

When you need concrete evidence, start here.

Crawl + discovery surfaces

Markdown projections

Structured discovery + navigation

Trust + rendering truth

Static rendering example, not doctrine

Use those as examples of the principle:

Not as a claim that Next.js is the only valid way.

Verification Checklist

Crawl + indexing

curl -s https://example.com/robots.txt
curl -I -A 'OAI-SearchBot/1.3' https://example.com/
curl -I -A 'Googlebot' https://example.com/

Check Search Console and Bing Webmaster Tools too.

Initial-response truth

curl -sL https://example.com/page | rg -n 'important fact|<h1>|<table>|application/ld\+json'
lynx -dump https://example.com/page

If curl cannot see the fact, many agents will not either.

Markdown / text / JSON projections

curl -I https://example.com/sitemap.md
curl -I https://example.com/page.md
curl -sS https://example.com/api | jq

Verify exact MIME types:

If a markdown route returns text/html, treat it as broken.

Accessibility and browser-agent UX

Measurement

Track:

Anti-Patterns

Use This Mental Shortcut

Ask four questions:

  1. Can an indexer find it?
  2. Can a retriever extract the truth from the first response?
  3. Can a harness get a cheaper markdown/JSON version without scraping?
  4. Can an operator or browser agent actually drive the flow without guessing?

If any answer is no, fix that first.

That's the work.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.