Skip to content

Give /llms.txt the shape llmstxt.org defines - #215

Merged
HarryCordewener merged 3 commits into
mainfrom
claude/project-thread-bwk9gy
Nov 15, 2026
Merged

HarryCordewener merged 3 commits into
mainfrom
claude/project-thread-bwk9gy

Conversation

@HarryCordewener

@HarryCordewener HarryCordewener commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Requested by Grave · project thread

/llms.txt has been served since #176, but it was not well-formed under llmstxt.org: "Reading a value correctly" and "Licence" were H2 sections holding prose, and the fixture's demo warning was a second blockquote. A parser for the format treats every H2 as a link list, so those rules were the part it threw away.

Now, still generated per request in SiteIndex.Llms:

  • H1, one blockquote (the demo warning is its first paragraph over the fixture), then prose: API-first advice, per-game URL templates, the five reading rules, the licence.
  • ## Data: OpenAPI, API guide, games, both dumps, and /api/feeds (new).
  • ## Pages: each page at its ?plain=1 address. /find is new.
  • ## Optional: the three RSS feeds, using RssFeed's own titles and descriptions; /submit; and every page in ReferenceLibrary.Shipped.

Tests cover the structure in both modes, check that every linked address returns 2xx, and check that every reference page is listed.

Not built locally: the cloud container could not download the .NET 11 RC SDK, so CI is the first compile. No Cloudflare change is needed, since the route is served by the app.


Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Dataset and catalogue structured data now report creator and publisher information independently, improving the accuracy of metadata.
  • Documentation
    • Updated llms.txt to follow the documented format, clarify demo-data and reference-page details, and organize optional resources.
    • Added change-feed links and plain-text reference-page links where available.
    • Clarified how to find games using their durable API ID or site slug.

The file already existed, but two of its H2 sections ("Reading a value
correctly", "Licence") held prose rather than link lists, and the
fixture's demo warning was a second blockquote. A parser for the format
reads every H2 as a file list, so those rules were the part it dropped.

The reading rules, the licence and a note on per-game URLs now sit in the
prose above the first H2. Pages link to their ?plain=1 text rendering.
An Optional section lists the RSS feeds (their own titles and
descriptions), /submit, and every shipped reference page. Tests check the
structure in both modes and that every linked address is served.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7UfcfpLY37ng1CGv7M
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change creates fresh structured-data publisher nodes and revises /llms.txt content, link formatting, and section layout. New tests check document structure in fixture and measured modes, verify listed URLs return HTTP 200, and check shipped reference-page links.

Changes

Structured-data publisher references

Layer / File(s) Summary
Create separate publisher nodes
src/MUI.Web/Components/Pages/DatasetStructuredData.cs
A local factory creates a new organization-reference JsonObject for each use. The dataset creator and publisher, and the catalogue publisher, receive separate nodes.

llms.txt output

Layer / File(s) Summary
Preamble and reading guidance
src/MUI.Web/SiteIndex.cs
The output guidance, demo notice, and introductory prose are updated.
Link sections and formatting
src/MUI.Web/SiteIndex.cs
The output moves licence details and organizes data, page, and optional links. It adds plain-text page links, escapes link labels, and flattens notes.
Output tests
tests/MUI.Web.Tests/SiteIndexTests.cs
Tests check document structure in fixture and measured modes, verify that listed URLs return HTTP 200, and check links to shipped reference pages.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: Minimal · up to f2a70

This change restructures the generated llms.txt to follow the llmstxt.org layout and fixes structured-data output that reused one JSON node under several parents. No concrete defect was found. CI should confirm the build and tests, since the author did not build locally.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: /llms.txt is reshaped to follow the llmstxt.org structure. The raw summary and PR objectives confirm this. The DatasetStructuredData fix and the new tests are secondar…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: /llms.txt is reshaped to follow the llmstxt.org structure. The raw summary and PR objectives confirm this. The DatasetStructuredData fix and the new tests are secondary and do not need to appear in the title.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 12516f4c-9357-4088-acd7-0536b6cf62aa
Commits

Reviewing files that changed from the base of the PR and between bfdf3d9 and f2a70d8.

Files selected for processing: 3

  • src/MUI.Web/Components/Pages/DatasetStructuredData.cs
  • src/MUI.Web/SiteIndex.cs
  • tests/MUI.Web.Tests/SiteIndexTests.cs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@HarryCordewener
HarryCordewener marked this pull request as ready for review November 15, 2026 07:22
… have text

The shape test split on LF and Windows serves CRLF. A page is now linked
at ?plain=1 only where TextMirror says a text rendering exists. The
served-address test reports the status it got.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7UfcfpLY37ng1CGv7M
DatasetStructuredData attached one publisher JsonObject to three
parents. A JsonNode has one parent, so the second assignment threw and
every measured render of /about/api failed. The fixture never reached it
because the graph is gated on IsMeasured. Found by the llms.txt test that
requests every address it lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7UfcfpLY37ng1CGv7M
@HarryCordewener
HarryCordewener merged commit cd95473 into main Nov 15, 2026
3 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.

2 participants