Repository navigation
Separate the docs for people and for AI agents; add a news post guide and a PR template - #19
Merged
Merged
Conversation
Each file now says who it is for, and the three kinds no longer share a folder (#18). For people: the README gets a table of what to read, the map of the repository and the commands, which were only in AGENTS.md, and the rules of the build. Its section on the generator moves, as it was, to docs/generator.md, with the rules of a change to the generator. The Makefile no longer sends a person to AGENTS.md. For AI coding agents: AGENTS.md says at its top that it is for agents, drops the two tables that repeated the README, and keeps each rule in short. CLAUDE.md moves to .claude/CLAUDE.md, so the root holds one file for agents. docs/ai.md is the page for people about AI: the acknowledgement, what is asked in a pull request, the files for the tools, and /llms.txt, which leaves docs/editing.md. Design notes: the plans and the research notes move to docs/design/, with an index that says they are a record and not a guide, and which of them go with the generator in #17. No page, layout, style or line of Rust changes, and the built site is the same.
The description of #14 credits Antigravity (Google DeepMind) with the white lettering and page-colored hover of the feed buttons, urls.yaml and the 404 page, and the acknowledgement in the repository left it out.
docs/new-post.md goes from an empty file to a merged post in four steps, for a person who writes one, and ends with the rules that let an AI assistant write one from the same page. Its link opens GitHub's editor on a new file in content/news/ with the header in place; the date of that header is left to fill in, and the check stops until it is. The whole post that the guide shows passes `edu check`. .github/pull_request_template.md starts the description of each pull request with three headings, for a person and for an agent: what changes, the checks, and which AI tools helped. The README, docs/editing.md, docs/ai.md and AGENTS.md point to both.
- Split the news-post assistant prompt and rules out of docs/new-post.md into a dedicated LLM specification at docs/ai/new-post.md, keeping docs/new-post.md purely for human authors. - Move docs/ai.md to docs/ai/README.md so top-level docs/ holds only human contributor guides alongside docs/design/ and docs/ai/. - Make AGENTS.md self-contained for coding agents (repo map, commands, frontmatter keys, file allowlists and YAML/Markdown parser rules) without requiring agents to read human tutorials first, and note in docs/ai/README.md and docs/design/README.md that its Generator section moves with crates/ in #17. - Keep README.md's top navigation table and .github/pull_request_template.md purely human-voiced, isolating AI in README.md to the bottom AI Acknowledgement section. - Clarify ASCII-only page slugs (a-z, 0-9, single -) and YAML quoting for ` #` comments and leading indicator punctuation in both guides.
Collaborator
Author
|
@luckymachi could you review this one too? GitHub only lets me request a review from collaborators of the repository, so I am asking here. |
BartMassey
approved these changes
Nov 17, 2026
BartMassey
left a comment
Member
There was a problem hiding this comment.
I don't think these changes are worth a full human review: the summary looks great. Let's just take this and we can fix it later if something is off. Thanks much!
Collaborator
Author
|
Thanks for the review, @BartMassey. Merging as approved. One item from To know before merging is still open: the Start a new post on GitHub link in |
3 tasks
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.
What changes
Closes #18, the follow-up to the review of #14: "Clean up the AI documentation a bit and isolate it so that it's clear what is intended for humans and what is intended for the AI." It also adds separate news-post guides for people and for LLMs, and the pull request template that this description follows.
Each file says at its top who it is for, and the audiences no longer share files or top-level folders under
docs/:README.md,docs/new-post.md(new),docs/editing.md,docs/generator.md(new)AGENTS.md(self-contained repo spec),docs/ai/new-post.md(new, standalone news-post spec),.claude/CLAUDE.md,.gemini/settings.json, plusdocs/ai/README.md(AI acknowledgement, contributor policy and/llms.txt)docs/design/: the plans and the research notes, with an indexNo page, layout, style or line of Rust changes, and the built site is byte for byte the same as on
main.1. The docs for people stand by themselves and stay purely human-voiced
README.mdopens with a table of the contributor guides for people. It gets the map of the repository, the table of themakecommands (which were only inAGENTS.md), and the rules of the build under Deploy, while keeping AI isolated to the short AI Acknowledgement section at the bottom. Before, the README and an error of theMakefilesent a person toAGENTS.mdfor these; now neither does.docs/generator.mdis the README's section on the generator, moved as it was (both diagrams and the text of each crate), followed by the rules of a change to the generator, which were only inAGENTS.md. The README keeps two lines and a link.docs/editing.mdnames its reader, moves its section on/llms.txttodocs/ai/README.md(since an editor has nothing to do for that file), and clarifies ASCII kebab-case slugs and YAML quoting (:,#, trailing:, leading punctuation).2. Separate, isolated documentation for AI coding agents and LLMs
docs/ai/isolates AI documentation into its own subfolder, matchingdocs/design/so top-leveldocs/contains only human contributor guides:docs/ai/README.mdholds the full AI acknowledgement (including Antigravity), what is asked of a contributor who uses an AI tool, the copy-paste prompt for drafting a post with an external assistant, the table of agent files, and/llms.txt.docs/ai/new-post.mdis a standalone, machine-oriented specification for LLMs drafting a news post (exact slug regex, YAML subset and quoting rules, allowed/rejected CommonMark syntax, link rules, no-hallucination rule andmake checkverification), without GitHub web-editor walkthroughs.AGENTS.mdsays in its first lines that it is for AI coding agents and that people do not need it. Instead of sending agents to read four human prose guides first, it gives agents a compact, self-contained specification of the repository layout, commands, frontmatter keys per page kind, file allowlists, YAML/Markdown parser rules, generator rules and build guards — while keeping the human docs and code authoritative if the two ever disagree, and markingdocs/design/as historical record rather than instructions.CLAUDE.mdmoves to.claude/CLAUDE.md, so the root holds one file for agents (AGENTS.md, where tools look for it), and each tool's pointer sits in that tool's folder. Claude Code reads.claude/CLAUDE.mdand resolves@../AGENTS.mdfrom the file's own folder (its docs).3. The plans and research notes have their own folder
docs/Plan-000*.mdandresearch/move todocs/design/, sodocs/holds the guides and the root no longer hasresearch/.docs/design/README.mdlists each note with its status, says that they are history and that the code and the guides are right where a note disagrees, and marks which notes go with the generator in Split out the custom static site generator (CMS) into its own repository and crate #17 (alongsidecrates/,docs/generator.mdand the Generator section ofAGENTS.md).../research/. The comment at the top ofurls.yamlnames the plan's new path.4. Separate news-post guides for people and for LLMs
docs/new-post.mdis purely for human authors: it shows a whole post first, then four steps (start the file — including the Start a new post on GitHub pre-filled editor link — fill in the header, write, propose), with ASCII filename and YAML quoting rules matchingedu-siteandedu-yaml.docs/ai/new-post.mdgives LLMs and coding agents the equivalent rules directly in structured specification form.5. A template for pull requests
.github/pull_request_template.mdstarts each description with three headings: What changes, Checks and AI acknowledgement, worded directly for human contributors in GitHub's UI, whileAGENTS.mdinstructs coding agents to structure PR descriptions with the same headings.For #17
What moves with
crates/is now easy to pick out:docs/generator.md, the notes marked "the generator" indocs/design/README.md, and the Generator section ofAGENTS.md. Plan 0003 and the rest stay with the site.To know before merging
docs/Plan-000*.mdandresearch/*onmainstop working, such as those in the descriptions of Replace Zola with a std-only Rust generator, deployed by GitHub Pages actions #14, Split out the custom static site generator (CMS) into its own repository and crate #17 and Clean up and isolate AI documentation from human-facing documentation #18. Links to a commit keep working.docs/ai/README.mdnamesdocs/ai/new-post.mdonmain, which exists once this is merged..claude/CLAUDE.mdby itself.Checks
make checkpasses locally (make guards,cargo fmt,cargo clippy,edu checkand all workspace tests).edu buildonmainand on this branch write the same 36 files (diff -r), so there is no page to look at.docs/new-post.mdanddocs/ai/new-post.mdshow passesedu checkascontent/news/rust-week-2027.md. The header of the Start a new post link gives one error, at its date, and none once the date is filled in.README.md,AGENTS.md,.github/pull_request_template.mdanddocs/), with their#ids, lead to a file and a heading, as does the import of.claude/CLAUDE.md.No page or file of the site moved, and
crates/is untouched.AI acknowledgement
This change was initially drafted with Claude Code (Anthropic, model Claude Fable 5.2), and then reviewed and refined with Antigravity (Google DeepMind) against #18, at the direction of Ken Esparta. Claude Code proposed the initial split, moved
docs/design/and.claude/CLAUDE.md, drafteddocs/generator.md,docs/new-post.mdand.github/pull_request_template.md, and verified the builds. Antigravity reviewed the pull request against #18, isolated the AI documentation underdocs/ai/, split the news-post guide into separate human (docs/new-post.md) and LLM (docs/ai/new-post.md) documents, madeAGENTS.mdself-contained for coding agents, removed AI cross-talk fromREADME.mdand.github/pull_request_template.md, tightened the ASCII slug and YAML quoting rules againstedu-siteandedu-yaml, re-ran the link andmake checkverifications, and updated this description.