AI readiness for the agent-driven web

Prepare your site for AI crawlers, agents, and discoverability tooling. AI readiness findings account for 20% of the overall score.

Files checked

CF Ready looks for public assets in public/, project root, or static/ (first match wins):

FileSearch pathsSeverity if missing
robots.txtpublic/robots.txt, robots.txt, static/robots.txtMedium
sitemap.xmlpublic/sitemap.xml, sitemap.xml, static/sitemap.xmlMedium
llms.txtpublic/llms.txt, llms.txtMedium
llms-full.txtpublic/llms-full.txt, llms-full.txtMedium
openapi.json / openapi.yamlProject root or public/openapi.jsonMedium (when API routes exist)
mcp-server-card.jsonProject rootLow (when API routes exist)
auth.mdProject rootLow (when auth patterns detected)

Auth patterns are detected by scanning for next-auth, Clerk, Auth0, Lucia, JWT signing, session handling, and similar libraries in up to 200 source files.

fix --ai-readiness output

cf-ready fix --ai-readiness generates draft assets. Existing files are skipped unless you pass --force.

Output fileWhen generatedContents
public/robots.txtAlwaysCrawler rules, sitemap link, GPTBot/ClaudeBot/PerplexityBot hints
public/llms.txtAlwaysProject summary, key pages, API section, usage policy
public/llms-full.txtAlwaysExtended llms.txt with framework and package manager context
public/sitemap.xmlAlwaysURL set from detected routes + criticalRoutes (up to 20)
openapi.jsonWhen API routes detectedOpenAPI 3.0.3 draft with one GET per route
mcp-server-card.jsonWhen API routes or auth patterns existAgent discovery card with endpoints list
auth.mdWhen auth patterns detectedAgent-friendly auth documentation template
Review before publishing. Generated files are starting points. Update productionUrl in config, verify crawler policy, and flesh out OpenAPI schemas before go-live.

aiPolicy setting

Set in cf-ready.config.json (default allow-assistive-agents):

ValueMeaning
allow-assistive-agentsDefault — robots.txt allows common AI crawlers; llms.txt encourages agent use
restrictLimit agent access — tighten robots.txt rules after generation
blockDisallow AI crawlers — update generated robots.txt accordingly

The aiPolicy value is recorded in ai-readiness-report.md. Adjust generated robots.txt crawler sections to match your policy.

Commands

cf-ready ai-ready              # Run AI readiness checks only
cf-ready fix --ai-readiness    # Generate draft AI assets
cf-ready fix --ai-readiness --force   # Overwrite existing files
cf-ready ai-optimize           # LLM-assisted content optimization (requires Workers AI config)

Fix commands only run when explicitly invoked — a scan never writes files. See Configuration for productionUrl and criticalRoutes.