agentleFS
CloudflareKnown publishercloudflare/kumo/packages/kumo-docs-astro/AGENTS.md

kumo / kumo-docs-astro

AGENTS.md3.9k starsChanged 4 months agoMITView on GitHub

Generated: 2026-09-03 | Commit: 9b4eb70 | Branch: rozenmd/test-preview Astro documentation site for @cloudflare/kumo. Static output uses React islands, MDX reference pages, Tailwind v4, and Cloudflare Workers static assets. Parent: See root AGENTS.md for monorepo-wide rules. vp run build:docs builds @cloudflare/kumo first. Production Astro builds use the package output, while development aliases Kumo imports to source for HMR. - Use ~/* for package-local imports; it maps to src/*. - Standard component pages use MdxDocLayout, then present the primary demo, installation, usage,…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 11 mentionsSep 2026: 28 mentionsOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/kumo repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cloudflare/kumo

The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 49

Talked about on GitHub and Bluesky (49 times).

On GitHub · 48

43 more on GitHub

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 1 is distinctive, and 8 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.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use ~/* for package-local imports.

    line 66
  2. Very specific:

    Use semantic Kumo tokens only.

    line 70
  3. Very specific:

    Keep @cloudflare/kumo/styles before Tailwind imports.

    line 78
  4. Very specific:

    Do not edit dist/, .astro/, or public/skill.md.

    line 85
  5. Very specific:

    Do not put AGENTS.md or other non-route Markdown under src/pages/.

    line 86
  6. Very specific:

    Do not treat blocks in src/components/kumo/ as package exports.

    line 88
  7. Very specific:

    Do not add a route without updating the applicable list in SidebarNav.tsx.

    line 90
  8. Distinctive:

    Do not import the server registry module into hydrated React components.

    line 91
  9. Very specific:

    Do not assume astro preview models Cloudflare routing.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

KUMO DOCS KNOWLEDGE BASE

Generated: 2026-09-03 | Commit: 9b4eb70 | Branch: rozenmd/test-preview

OVERVIEW

Astro documentation site for @cloudflare/kumo. Static output uses React islands, MDX reference pages, Tailwind v4, and Cloudflare Workers static assets.

Parent: See root AGENTS.md for monorepo-wide rules.

STRUCTURE

kumo-docs-astro/
├── src/
│   ├── components/
│   │   ├── demos/       # Executable examples; registry codegen input
│   │   ├── docs/        # MDX/Astro documentation building blocks
│   │   ├── kumo/        # CLI-installed blocks owned by this site
│   │   └── skill/       # Interactive design-skill content
│   ├── layouts/         # Base shell, navigation, and document layouts
│   ├── lib/             # Vite plugins, Markdown conversion, registry access
│   ├── pages/           # File-based routes and API/static text endpoints
│   └── styles/global.css
├── scripts/             # Demo metadata and design-skill generators
├── astro.config.mjs     # Astro, MDX, React, Tailwind, and custom plugins
├── vite.config.ts       # Type-aware lint rules
└── wrangler.jsonc       # Static-assets Worker routes and environments

WHERE TO LOOK

TaskLocationNotes
Component referencesrc/pages/components/MDX joins demos, props, and VR metadata
Demo behaviorsrc/components/demos/Also feeds registry metadata
Page chromesrc/layouts/BaseLayout -> MainLayout -> document layout
Navigationsrc/components/SidebarNav.tsxRoute lists are manual
Docs building blockssrc/components/docs/Examples, props, code, headings, TOC
Registry datasrc/lib/component-registry.tsServer-side access
Client registrysrc/lib/vite-plugin-kumo-registry.tsProvides virtual:kumo-registry
Development HMRsrc/lib/vite-plugin-kumo-hmr.tsRewrites Kumo imports to source
Demo extractionscripts/extract-demo-examples.tsWrites dist/demo-metadata.json
Design skill generationscripts/generate-design-skill.mjsWrites public/skill.md
Worker deploymentwrangler.jsoncdist assets; production and staging routes

DATA FLOW

src/components/demos/*Demo.tsx
  -> codegen:demos
  -> dist/demo-metadata.json
  -> Kumo component-registry codegen

src/components/skill/*
  -> generate-design-skill
  -> public/skill.md

vp run build:docs builds @cloudflare/kumo first. Production Astro builds use the package output, while development aliases Kumo imports to source for HMR.

CONVENTIONS

  • Use ~/* for package-local imports; it maps to src/*.
  • Standard component pages use MdxDocLayout, then present the primary demo, installation, usage, examples, and registry-backed props.
  • Give visual-regression examples stable vrSection slugs and vrTitle values.
  • Use semantic Kumo tokens only. Raw Tailwind colors and dark: variants fail lint.
  • Compose Kumo component classes with established package patterns; do not bypass kumo/no-cross-package-imports.
  • Server-side Astro code imports ~/lib/component-registry.ts. React islands use virtual:kumo-registry.
  • Choose hydration by behavior: client:visible for ordinary demos, client:load for immediately interactive UI, and client:only="react" only for known SSR mismatches.
  • Keep @cloudflare/kumo/styles before Tailwind imports. Keep the Kumo @source directive so Tailwind discovers package classes.
  • View transitions persist parts of the page shell. Browser state that follows navigation must listen for Astro lifecycle events.

ANTI-PATTERNS

  • Do not edit dist/, .astro/, or public/skill.md; builds regenerate them.
  • Do not put AGENTS.md or other non-route Markdown under src/pages/. Astro treats Markdown there as a route and emits unwanted build output.
  • Do not treat blocks in src/components/kumo/ as package exports. They are installed source owned by the docs site.
  • Do not add a route without updating the applicable list in SidebarNav.tsx.
  • Do not import the server registry module into hydrated React components.
  • Do not assume astro preview models Cloudflare routing; deployment serves dist through the static-assets Worker configuration.

COMMANDS

pnpm --filter @cloudflare/kumo-docs-astro dev
pnpm --filter @cloudflare/kumo-docs-astro build
pnpm --filter @cloudflare/kumo-docs-astro test
pnpm --filter @cloudflare/kumo-docs-astro typecheck
pnpm --filter @cloudflare/kumo-docs-astro lint
pnpm vp run build:docs

NOTES

  • dist/demo-metadata.json is a build intermediate but is also consumed across packages. Missing it produces incomplete component registry data.
  • Build metadata in astro.config.mjs reads both package versions and Git state, then injects constants used by the site shell and version endpoint.
  • Preview URLs require Wrangler to run with this directory as its project root, or with an explicit path to this wrangler.jsonc.
  • Docs-only changes do not normally require a changeset.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.