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

kumo / demos

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

Executable Kumo examples used by documentation pages, the homepage showcase, visual regression, and component registry generation. - Registry files must use {Component}Demo.tsx names. - Registry exports must end in Demo. Both exported function declarations and exported arrow functions are supported. - Add JSDoc to exported function declarations when registry consumers need a description. The extractor does not collect arrow-function JSDoc. - Keep returned JSX self-contained and suitable for copying. The extractor reads the top-level return expression, not arbitrary runtime behavior.…

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

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add JSDoc to exported function declarations when registry consumers need a description.

    line 32
  2. Distinctive:

    Keep returned JSX self-contained and suitable for copying.

    line 34
  3. Distinctive:

    Use controlled state only when the example demonstrates controlled behavior.

    line 36
  4. Very specific:

    Use semantic Kumo tokens. Never add raw palette utilities or dark: variants.

    line 39
  5. Very specific:

    Do not rename a file or export away from the Demo suffix if it belongs in the registry.

    line 43
  6. Distinctive:

    Do not hide the primary example behind helper code that the AST extractor cannot represent as usable JSX.

    line 45
  7. Very specific:

    Do not add a component only to HomeGrid.tsx.

    line 47
  8. Distinctive:

    Do not interpolate unescaped dynamic values into ECharts HTML tooltips.

    line 49

≈ “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

DEMOS KNOWLEDGE BASE

Executable Kumo examples used by documentation pages, the homepage showcase, visual regression, and component registry generation.

STRUCTURE

demos/
├── *Demo.tsx       # Component-oriented exported examples
├── Chart/          # ECharts and chart-specific examples
├── data/           # Shared static demo fixtures
├── HomeGrid.tsx    # Homepage showcase and route map
└── FigmaPage.tsx   # Figma integration presentation

WHERE TO LOOK

TaskLocationNotes
Component examples{Component}Demo.tsxMatch the related reference page
Homepage coverageHomeGrid.tsxShowcase layout and componentRoutes are manual
Chart examplesChart/Chart tooltip values require HTML escaping
Shared fixturesdata/Keep static data out of component APIs
Extraction rules../../../scripts/extract-demo-examples.tsTypeScript AST parser

CONVENTIONS

  • Registry files must use {Component}Demo.tsx names.
  • Registry exports must end in Demo. Both exported function declarations and exported arrow functions are supported.
  • Add JSDoc to exported function declarations when registry consumers need a description. The extractor does not collect arrow-function JSDoc.
  • Keep returned JSX self-contained and suitable for copying. The extractor reads the top-level return expression, not arbitrary runtime behavior.
  • Use controlled state only when the example demonstrates controlled behavior.
  • Make icon-only actions accessible and preserve keyboard behavior in interactive examples.
  • Use semantic Kumo tokens. Never add raw palette utilities or dark: variants.

ANTI-PATTERNS

  • Do not rename a file or export away from the Demo suffix if it belongs in the registry.
  • Do not hide the primary example behind helper code that the AST extractor cannot represent as usable JSX.
  • Do not add a component only to HomeGrid.tsx; also add its route page, navigation entry, and componentRoutes entry as applicable.
  • Do not interpolate unescaped dynamic values into ECharts HTML tooltips.

VALIDATION

pnpm --filter @cloudflare/kumo-docs-astro codegen:demos
pnpm --filter @cloudflare/kumo-docs-astro typecheck
pnpm --filter @cloudflare/kumo-docs-astro lint

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.