Skip to content

Add preamble to llms.txt with curl instructions and cross-links#150

Merged
jakemor merged 1 commit intomainfrom
add-llms-txt-preamble
Mar 19, 2026
Merged

Add preamble to llms.txt with curl instructions and cross-links#150
jakemor merged 1 commit intomainfrom
add-llms-txt-preamble

Conversation

@jakemor
Copy link
Contributor

@jakemor jakemor commented Mar 19, 2026

Summary

  • Adds a preamble to llms.txt and all llms-{section}.txt routes so AI agents know how to fetch individual doc pages as markdown (append .md, use curl -sL for 307 redirects)
  • Top-level llms.txt now includes a Superwall product description and links to all platform-specific llms-*.txt files
  • Each section file (e.g. llms-ios.txt) cross-links to all other sections so an LLM landing on any entry point can discover all available docs
  • llms-full.txt now includes a title header

Test plan

  • Verify curl -sL https://superwall.com/docs/llms.txt shows preamble with description, curl instructions, platform links, then page listing
  • Verify curl -sL https://superwall.com/docs/llms-ios.txt shows section-specific curl example and cross-links to other sections
  • Verify curl -sL https://superwall.com/docs/llms-full.txt includes title header

🤖 Generated with Claude Code

Adds context for AI agents consuming the llms.txt endpoints:
- Superwall product description (top-level only)
- Instructions for fetching .md markdown mirrors with curl -sL
- Platform-specific doc links and cross-section navigation
- Title header for llms-full.txt output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jakemor jakemor force-pushed the add-llms-txt-preamble branch from 51e7045 to a2ca9cd Compare March 19, 2026 16:58
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 19, 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 a2ca9cd Commit Preview URL

Branch Preview URL
Mar 19 2026, 05:04 PM

@jakemor jakemor merged commit d9ef285 into main Mar 19, 2026
2 checks passed
@jakemor jakemor deleted the add-llms-txt-preamble branch March 19, 2026 17:40
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