Skip to content

AI-agent readability: llms-full.txt, ai.txt, ai-summary + mirror links, site JSON-LD - #275

Merged
manav4u merged 1 commit into
mainfrom
feat/ai-agent-readability
Nov 5, 2026
Merged

manav4u merged 1 commit into
mainfrom
feat/ai-agent-readability

Conversation

@manav4u

@manav4u manav4u commented Nov 5, 2026

Copy link
Copy Markdown
Owner

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

  • llms-full.txt: the 30 overview pages (landing, syllabus hub, guides, FE subjects, branch hubs, privacy) joined in one fetch (~130k chars). The 133 per-course mirrors stay listed in llms.txt instead of being repeated, keeping the file under the ~500k guideline; the header states that limit.
  • ai.txt: ai-visibility.org.uk ai-txt v1.1.1 sections - identity, permissions (summarise/quote/cite/index), restrictions, attribution, scope (app shells excluded), contact. Facts come from shared constants in scripts/aiFiles.ts, so ai.txt, llms.txt and the JSON-LD cannot drift apart.
  • ai-summary meta + markdown alternate link on every prerendered public page (landing, library, privacy), the summary defaulting to the page's own og:description.
  • Organization + WebSite JSON-LD on the landing (the served HTML had no JSON-LD before).
  • robots.txt names the AI search/user-fetch crawlers (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User) under the existing Allow: /. Training crawlers are deliberately not named - allow/block per crawler stays the owner's call, noted in comments.

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 typecheck clean, npm test 108/108 pass (4 new pin the ai.txt/llms-full builders and head tags).
  • npm run build succeeds; 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.
  • Built output inspected: landing serves ai-summary + alternate link + Organization/WebSite JSON-LD; syllabus and privacy pages serve ai-summary + alternate links; llms-full.txt has 30 pages with the course-mirror note; ai.txt has all six sections.

No visual changes; no app routes touched; drafts stay unmirrored.

…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>
@manav4u
manav4u merged commit 3cce32c into main Nov 5, 2026
1 of 2 checks passed
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