tokendoctor / site
AGENTS.md71 starsChanged 3 days agoMITView on GitHub
Instructions for AI coding agents working on this repository. llx-sitekit is a template: a landing page and docs site that product sites are cloned from and keep merging. Read content/docs/structure.md before a change; it is short. - Know whose file it is. content/, public/ and README.md are a site's own. src/, scripts/ and the root's configs are the template's. In a site (the remote template exists), change the template's half only when asked to: prefer content/theme.css, a content file, or…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- applySkill
- auditSkill
- dashboardSkill
- optimizeSkill
- sessionsSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
No file over 300 lines. Comments say why.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Instructions for AI coding agents working on this repository.
llx-sitekit is a template: a landing page and docs site that product sites are cloned from and
keep merging. Read content/docs/structure.md before a change; it is short.
Rules
- Know whose file it is.
content/,public/andREADME.mdare a site's own.src/,scripts/and the root's configs are the template's. In a site (the remotetemplateexists), change the template's half only when asked to: prefercontent/theme.css, a content file, or a new slice, since a file both sides changed is a conflict at the next sync. In the template, a change reaches every site, so keep it general: no product's name or copy insrc/. - Feature-Sliced Design, strictly. Layers:
app→pages→widgets→features→entities→shared. Import only downward, never between slices of one layer, and only through a slice'sindex.ts.npm run lintchecks it; never work around it. - Tokens only. A colour, a font, the radius and the gutter are custom properties of
src/shared/styles/global.cssandsyntax.css; the lint refuses a hex colour in any other stylesheet. Styles are plain CSS beside the component, with class names that start with the component's own. - The docs stay static. Nothing a browser loads may import
entities/doc. A docs page gets onlysrc/app/entry-docs.ts. - Content is data. Copy never lives in a component: a landing section is a field of
LandingContentinsrc/shared/config/types.ts, a widget, and a line insrc/pages/landing/LandingPage.tsx. - A component has a specimen. Anything added to
src/shared/ui,features/orwidgets/is shown on the kit page (src/pages/kit/Components.tsx); a new token is listed insrc/pages/kit/tokens.tsand incontent/docs/theming.md. - Accessible by construction. Text at least 4.5:1 on its ground (the kit page measures it),
everything pressable a link or a button with the one focus ring, targets at least 36 px,
nothing moving under
prefers-reduced-motion, no sideways scroll at 390 px. - No file over 300 lines. Comments say why. English only.
- Docs follow the standard. A page of
content/docs/is a file named in lower-case words joined by hyphens, one#title, a paragraph after it (its description), sections##then###with no level skipped, and its name once incontent/docs/nav.ts. Link to another page by its file (deploy.md#github-pages). The build refuses anything else and makes the menu, the index, the search, the sitemap,llms.txtand the landing's list from it: never write one of those by hand. - Workflows are the template's.
.github/workflows/holdscheck.yml,deploy.yml(GitHub Pages, once on) andsync.yml(the template's updates as a pull request). Pin an action by its major version, give a job only the permissions it uses, and runactionlinton a change. Never commit tomainfrom a workflow, and never put a secret in one.
How to
| Task | Where |
| Change what the site says | content/site.ts, content/landing.ts; the types in src/shared/config/types.ts say every field. |
| Add a docs page | A file in content/docs/, its name in content/docs/nav.ts. See content/docs/writing-docs.md. |
| Change a colour or a shape | content/theme.css in a site; src/shared/styles/global.css in the template. |
| Add a section to the landing | A field of LandingContent, a widget in src/widgets/, a line in LandingPage.tsx, a specimen on the kit page, a paragraph in content/docs/landing.md. |
| Add a release | A ## x.y.z heading in CHANGELOG.md (a date may follow: ## 1.2.0 - 2026-01-31); the landing's list reads it at build time. |
| Take the template's updates | npm run sync in a site; CHANGELOG.md's Migration notes say what to change. |
| Publish | Push to main. See content/docs/deploy.md. |
Before you say it is done
npm run checkA failure names the file and the rule; fix what it names, never the check. Then look at what you changed at a phone's width (390 px) and a laptop's: npm run dev, the
landing, a docs page, and /kit. The checks do not see the page. In the template, add a line to
CHANGELOG.md, with a Migration note when a site has to change its content.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

