Repository navigation
docs: one guide for people and agents, and a whole-docs review - #214
Merged
Merged
Conversation
The For humans / For AI agents split did not hold: only the agent start page was written for agents, and agents do not use sidebar tabs. People had to open a tab that said it was not for them to read any guide, and the human prompts listed commands instead of the person's goal. - Navigation: back to Guide and Reference tabs, with an AI agents group (Work with a coding agent, For AI agents, Agent harness). - ai-agents.md absorbs ask-your-agent.md, organized by case: each prompt states the goal and the facts only the person knows, then what the agent does and what the person decides. The old route redirects. - Getting started's prompt (and its four translations, now translated) asks for the outcome instead of dictating npm commands. - llms.txt keeps its For AI agents section, so the harness rule is unchanged; the former For humans pages join Guides. - AGENTS.md, README, translations and the reference budget check follow. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
- ai-agents.md: every case links to the guide with its steps instead of restating it. The language case no longer claims the selector opens the language's home page; it links the default-language page and marks it as a fallback. The logo is not part of the theme. - New "Write or update a page" case; cases ordered by how often people need them; harnesspm is a case; plain words instead of version integrity, contrast floors and trust values. The domain case leaves DNS to the person, and the published-site section links publishing.md. - agents.md: no intro bullets that repeat the rules; rule 6 says to leave a missing decision unset and report it instead of stalling; rule 7 offers to point a larger repository's instructions at a site in one of its folders; task rows for OpenAPI, languages and writing a page; sidebar label "Agent start page". - site-navigation.md says what each selector does for a missing page. - agent-harness.md: the harness needs Cookbook 0.34.0 or later. - Home pages link the agent path; translation fixes; the AI agents group drops the English-only marker its sibling groups never had; the Start group no longer shares its label with Getting started. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
Claude Code reads AGENTS.md only when no CLAUDE.md exists in its folder or above. A site created with --source inside a repository that has one, the usual case, lost its agent instructions in Claude Code. The creator now writes CLAUDE.md with a single `@AGENTS.md` import, so the rules stay in one file. Like AGENTS.md, an existing CLAUDE.md is kept. harnesspm writes the same import and keeps an existing one. The upgrade skill stays in .agents/skills/: Claude Code does not discover skills there, but AGENTS.md names its path, and the import now carries that pointer to Claude Code too. Docs list the new file, and the upgrade guide tells sites created before 0.34.1 to add it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
- A new language needs its interface text too: Cookbook ships English and French messages only. The language case and the agents.md row link the translations section. - The harness case says the agent records the person's trust choice before they run approve, which writes only pending entries. - site-navigation.md names the last fallback: a home page. - The sitemap needs the public URL. - ai-agents.md links agents.md for what is installed instead of repeating its table; Getting started no longer lists a partial set of next steps, in every language. - customization-rules.md: the hand-written agent instruction is for projects the creator did not make. - Clearer link text on the home pages. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
- build.strict is on by default; the page described it as opt-in. - Replacing or disabling the footer also removes the Markdown controls and the credit. - A page's tableOfContents replaces the heading levels (missing ones use 2 and 3) while mobile falls back to the site setting. - The APCA rule names theme.brand.contrast.apca; the title falls back to the first `#` heading; plain words for "safe mode" and the inline config root. - The color model and localizeRepositoryLinks link to the pages that own them instead of restating them; a migration note leaves the reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
- migration.md: the two "Upcoming" sections shipped in 0.30 and 0.31; they are now version ranges, with the Tasty versions corrected. The page-text note links publishing.md, which has the header advice. - cli.md: missing links are errors unless build.strict is false; the build also stops on the two contrast errors. - publishing.md: astro dev and build, not doctor, stop on conflicting origins. - plugins.md: frontmatterSchema runs in astro dev and build, not in doctor; the snippet has its imports. - architecture.md: install @tenphi/docs to use the graph API; the pipeline ends with the discovery files. - deployment.md: the workflow runs on pushes to main and adds pnpm or Yarn setup; one statement of the project-site base. - troubleshooting.md: what doctor reports for missing pages, and links to the languages and versions sections. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
- examples.md: the monorepo and npm examples get a home page, since the header title links to /; the preview example keeps the production URL as publishing.md says; commands run as written; the registry note moves to content-sources.md, which says it must not need a login. - getting-started.md: Cookbook needs Astro 7.3.2 or a later 7.x; --yes and the creator flags are explained; config file discovery links the configuration reference; doctor is named. - content-sources.md: plain opening; "Default sources" heading; dot paths are skipped too; missing links are errors by default. - site-navigation.md and comparison.md say each fact once; authoring names the preview's View source control. - Home pages describe the examples correctly. Translations mirror these changes, add the deploy step and use one name for the authoring page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
- theme-and-components.md: the Callout palette example styles the parts that set text color; the brand contrast text matches palette.ts (brand text 75/90, filled labels 80/95, a target below 45 cannot lower them); Tasty, Glaze, APCA and OKHSL are explained before use; custom components show their MDX import. - Setting only the body font keeps headings in Onest: the local-font recipe sets both, and the fonts page says so. - recipes.md: copy a recipe's site and theme fields and keep root, content and site.url, instead of replacing the file. - customization-rules.md: lint leads with createValidationConfig, the SiteTitle example keeps its mobile preset, checks use validate. - custom-components.md: ESLint leads with a config that works on TypeScript 7; real part names. - component-styles.md: legacy hooks named, example owners named, an override that changes something, accurate @prose-heading; lint does not check theme.styles values. - Partial merging, server-only styling and header radius are explained once and linked from the other pages. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb
Merged
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.
Why
The For humans / For AI agents split from #210 does not work:
agents.md) is written for agents. The other 20 are ordinary guides and references, so a person who wants to change fonts has to open a tab that says it is not for them.llms.txt, the installednode_modules/@tenphi/cookbook/docs/, or the link in their prompt.npm create … --yes,npm run validate, config keys) instead of the person's goal.This PR unifies the docs. It then fixes what review rounds found across the agent pages and the whole docs.
What changes
1. One set of docs for people and agents
/ai-agents), the Agent start page (/agents) and Agent harness.ai-agents.mdabsorbsask-your-agent.md. The old route redirects throughaliases.agents.mdchanges:AGENTS.mddocumentation rules: one set of docs, prompts by case, no commands in prompts.llms.txt(its For AI agents section stays, so the shipped harness rule is unchanged) and the reference budget check.2.
CLAUDE.mdin new sites (@tenphi/create-cookbook)AGENTS.mdonly when noCLAUDE.mdexists in its folder or above. So a site created with--sourceinside a repository that has aCLAUDE.mdlost its agent instructions in Claude Code.CLAUDE.mdcontaining only@AGENTS.md, so the rules stay in one file. This matches what harnesspm writes.CLAUDE.mdis kept, and tests cover both cases.3. Fixes from a whole-docs review
Three reviewers traced every page against
packages/. Highlights:build.strictis on by default.astro devandastro build, notdoctor.rootandcontent./page.publishing.md.cookbookcommands didn't run in a plain shell.@tenphi/docsinstall for the graph API.frontmatterSchemaruns.localizeRepositoryLinks;Kept on purpose:
architecture.md"Component ownership", the order of sections inauthoring.mdx, and the "Client navigation" section.Checks
cookbook doctorwith fragment checks,cookbook check-buildandcheck-reference-budgets.mjspass.pnpm check:recipespasses: every checked recipe and example builds. The component anatomy check passes.pnpm lint(0 warnings),prettier --check,pnpm check:harness,harnesspm sync --checkandpnpm check:packagespass.harness.test.ts,scaffold.test.ts,pack-docs.test.mjs,agent-discovery.test.ts,documentation.test.ts.Entropy
🤖 Generated with Claude Code
https://claude.ai/code/session_01Gr8S7DePcxFzSN3gkPVNcb