Repository navigation
AI-agent readability: llms-full.txt, ai.txt, ai-summary + mirror links, site JSON-LD - #275
Merged
Merged
Conversation
…links, site JSON-LD - llms-full.txt joins the 30 overview pages (landing, hub, guides, FE subjects, branch hubs, privacy); the 133 per-course mirrors stay listed in llms.txt so the file remains fetchable (~130k chars, under the ~500k guideline), with the limit stated in the header. - ai.txt per the ai-visibility.org.uk ai-txt spec: identity, permissions, restrictions, attribution, scope (app shells excluded), contact. Facts share the constants in scripts/aiFiles.ts with llms.txt and the JSON-LD. - Every prerendered public page (landing + library + privacy) now carries an ai-summary meta tag (from its own og:description) and a link rel=alternate type=text/markdown pointing at its mirror. - Landing gains Organization + WebSite JSON-LD (none was served before). - robots.txt names the AI search/user-fetch crawlers explicitly; training crawlers stay the owner's call, noted in comments. - Build-time assertions fail the deploy if a public page loses its mirror, its ai head tags, or llms.txt stops linking llms-full.txt; unit tests pin the ai.txt/llms-full builders. Co-Authored-By: MaxwithU19 <chimkandisuraj06@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the approved ScrollLaunch ai-readable-site plan (gap closure; the markdown mirrors and llms.txt shipped 26 Oct in #250). Plan: https://files.instinct.com/axxp409267za-ai-prompt-plans-for-both-sites
What ships
scripts/aiFiles.ts, so ai.txt, llms.txt and the JSON-LD cannot drift apart.Not possible on static hosting (as flagged in the plan)
Accept-header negotiation, an /api/md catalog and custom response headers (X-Markdown-Tokens, noindex header, Content-Location) need a server; GitHub Pages can't set them. The file-based mirrors stay the mechanism. Cloudflare in front of the domain could add headers later as a separate, optional step.
Verification (run locally)
npm run typecheckclean,npm test108/108 pass (4 new pin the ai.txt/llms-full builders and head tags).npm run buildsucceeds; build-time assertions now fail the deploy if a public page loses its mirror, its ai head tags, or llms.txt stops linking llms-full.txt.No visual changes; no app routes touched; drafts stay unmirrored.