Skip to content

Separate the docs for people and for AI agents; add a news post guide and a PR template - #19

Merged
kenesparta merged 4 commits into
mainfrom
docs/isolate-ai-docs
Nov 18, 2026
Merged

kenesparta merged 4 commits into
mainfrom
docs/isolate-ai-docs

Conversation

@kenesparta

@kenesparta kenesparta commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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/:

For Files
People README.md, docs/new-post.md (new), docs/editing.md, docs/generator.md (new)
AI coding agents & LLMs AGENTS.md (self-contained repo spec), docs/ai/new-post.md (new, standalone news-post spec), .claude/CLAUDE.md, .gemini/settings.json, plus docs/ai/README.md (AI acknowledgement, contributor policy and /llms.txt)
The record docs/design/: the plans and the research notes, with an index

No 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.md opens with a table of the contributor guides for people. It gets the map of the repository, the table of the make commands (which were only in AGENTS.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 the Makefile sent a person to AGENTS.md for these; now neither does.
  • docs/generator.md is 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 in AGENTS.md. The README keeps two lines and a link.
  • docs/editing.md names its reader, moves its section on /llms.txt to docs/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, matching docs/design/ so top-level docs/ contains only human contributor guides:
    • docs/ai/README.md holds 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.md is 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 and make check verification), without GitHub web-editor walkthroughs.
  • AGENTS.md says 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 marking docs/design/ as historical record rather than instructions.
  • CLAUDE.md moves 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.md and resolves @../AGENTS.md from the file's own folder (its docs).

3. The plans and research notes have their own folder

  • docs/Plan-000*.md and research/ move to docs/design/, so docs/ holds the guides and the root no longer has research/.
  • docs/design/README.md lists 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 (alongside crates/, docs/generator.md and the Generator section of AGENTS.md).
  • The notes themselves are untouched, except four links in Plan 0002 that pointed to ../research/. The comment at the top of urls.yaml names the plan's new path.

4. Separate news-post guides for people and for LLMs

  • docs/new-post.md is 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 matching edu-site and edu-yaml.
  • docs/ai/new-post.md gives LLMs and coding agents the equivalent rules directly in structured specification form.

5. A template for pull requests

  • .github/pull_request_template.md starts each description with three headings: What changes, Checks and AI acknowledgement, worded directly for human contributors in GitHub's UI, while AGENTS.md instructs 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" in docs/design/README.md, and the Generator section of AGENTS.md. Plan 0003 and the rest stay with the site.

To know before merging

Checks

  • The check of this pull request passes, and make check passes locally (make guards, cargo fmt, cargo clippy, edu check and all workspace tests).
  • edu build on main and on this branch write the same 36 files (diff -r), so there is no page to look at.
  • The whole post that docs/new-post.md and docs/ai/new-post.md show passes edu check as content/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.
  • All 57 relative links across the 19 Markdown files (README.md, AGENTS.md, .github/pull_request_template.md and docs/), 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, drafted docs/generator.md, docs/new-post.md and .github/pull_request_template.md, and verified the builds. Antigravity reviewed the pull request against #18, isolated the AI documentation under docs/ai/, split the news-post guide into separate human (docs/new-post.md) and LLM (docs/ai/new-post.md) documents, made AGENTS.md self-contained for coding agents, removed AI cross-talk from README.md and .github/pull_request_template.md, tightened the ASCII slug and YAML quoting rules against edu-site and edu-yaml, re-ran the link and make check verifications, and updated this description.

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.
@kenesparta kenesparta added documentation Improvements or additions to documentation ai AI agent instructions and AI-related documentation labels Nov 17, 2026
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.
@kenesparta kenesparta changed the title Separate the docs for people, for AI agents and the design notes Separate the docs for people and for AI agents; add a news post guide and a PR template Nov 17, 2026
@kenesparta kenesparta self-assigned this Nov 17, 2026
- 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.
@kenesparta

Copy link
Copy Markdown
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 BartMassey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@kenesparta

Copy link
Copy Markdown
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 docs/new-post.md has not been opened in a signed-in browser yet. If it misbehaves, a follow-up pull request will fix it.

@kenesparta
kenesparta merged commit 60fec16 into main Nov 18, 2026
1 check passed
@kenesparta
kenesparta deleted the docs/isolate-ai-docs branch November 18, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai AI agent instructions and AI-related documentation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up and isolate AI documentation from human-facing documentation

2 participants