Skip to content

Agent readiness: Link headers and content signals#173

Open
anglinb wants to merge 2 commits intomainfrom
brian/agent-readiness
Open

Agent readiness: Link headers and content signals#173
anglinb wants to merge 2 commits intomainfrom
brian/agent-readiness

Conversation

@anglinb
Copy link
Copy Markdown
Contributor

@anglinb anglinb commented Apr 20, 2026

Summary

  • Add a TanStack Start request middleware that attaches RFC 8288 Link response headers to HTML responses, pointing agents at /docs/sitemap.xml, /docs/llms.txt, /docs/llms-full.txt, the /docs service-doc, and the canonical superwall.com homepage.
  • Declare AI content usage preferences in robots.txt with Content-Signal: search=yes, ai-input=yes, ai-train=no.

Markdown content negotiation (Accept: text/markdown) is already handled by the existing llmMiddleware + fumadocs isMarkdownPreferred pipeline, so no change there.

Test plan

  • curl -sI https://superwall.com/docs returns a Link: header containing rel="sitemap", rel="service-doc", rel="describedby", and rel="canonical".
  • curl -s https://superwall.com/docs/robots.txt (or the docs host's /robots.txt) contains the Content-Signal directive.
  • Existing markdown negotiation still works: curl -s -H 'Accept: text/markdown' https://superwall.com/docs/ios returns markdown.
  • No regressions on regular docs page loads.

🤖 Generated with Claude Code

- Add request middleware that attaches RFC 8288 Link headers to HTML
  responses (sitemap, llms.txt, service-doc, canonical homepage) so
  agents can discover related resources.
- Declare AI content usage preferences with Content-Signal in robots.txt.

Markdown content negotiation (Accept: text/markdown) was already handled
by the existing llmMiddleware + fumadocs isMarkdownPreferred pipeline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
superwall-docs-staging 1344440 Commit Preview URL

Branch Preview URL
Apr 20 2026, 08:01 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant