kumo
AGENTS.md3.9k starsChanged 4 months agoMITView on GitHub
Generated: 2026-03-18 | Commit: 38518e34 | Branch: rozenmd/fix-preview Cloudflare's React component library (@cloudflare/kumo). pnpm monorepo: component library (Base UI + Tailwind v4), Astro docs site, Figma plugin, screenshot worker. ESM-only, Node 24+. - Kumo floating components portal to document.body. Consumers should create an app-root stacking context with isolation: isolate (Tailwind: className="isolate"). - Do not fix a popup that appears below consumer content by adding z-index to Kumo popup components, targeting Base UI internal data attributes, or applying isolation to <body>.
- Reads credentials
- Commits and pushes
Trending
More talk lately.about the whole repository
Who's talking about cloudflare/kumo
- @adityamitra.bsky.social“github.com/cloudflare/k... @cloudflare.social building awesome open source stuff #opensource #design …”Bluesky · Apr 22, 2026 · 3 likes
- nexu-io/open-design“feat(design-systems): add Cloudflare Kumo UI”GitHub · Aug 11, 2026 · 2 reactions
- cloudflare/cloudflare-os“Bump the react-and-ui group with 4 updates”GitHub · Sep 1, 2026 · 1 reactions
- cloudflare/cloudflare-os“Bump the react-and-ui group across 1 directory with 6 updates”GitHub · Aug 13, 2026 · 1 reactions
- cloudflare/workerd“pin OpenCode to "1.4.6"”GitHub · Apr 22, 2026 · 1 reactions
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
- Aug 11, 2026feat(design-systems): add Cloudflare Kumo UI — nexu-io/open-design2 reactions · 5 comments
- Sep 1, 2026Bump the react-and-ui group with 4 updates — cloudflare/cloudflare-os1 reaction · 3 comments
- Aug 13, 2026Bump the react-and-ui group across 1 directory with 6 updates — cloudflare/cloudflare-os1 reaction · 2 comments
- Apr 22, 2026pin OpenCode to "1.4.6" — cloudflare/workerd1 reaction · 2 comments
- Oct 2, 2026Bump the npm-non-major group across 1 directory with 20 updates — ankka-ai/ankka-mcp-gateway0 reactions
43 more on GitHub
- Oct 1, 2026Bump the react-and-ui group across 1 directory with 7 updates — vnikhilbuddhavarapu/peer-point-cloudflare-os0 reactions
- Oct 1, 2026Bump the react-and-ui group across 1 directory with 7 updates — erxes/cloudflare-os-erxes0 reactions · 2 comments
- Oct 1, 2026Bump the react-and-ui group with 3 updates — cloudflare/cloudflare-os0 reactions · 2 comments
- Sep 29, 2026Bump the cloudflare group across 1 directory with 4 updates — VortexNYC/seal0 reactions · 2 comments
- Sep 28, 2026Bump the minor-patch group across 1 directory with 3 updates — Vortexmind/cf-zt-m365-split-tunnel-automation0 reactions · 2 comments
- Sep 27, 2026build(deps): bump @cloudflare/kumo from 2.13.2 to 2.14.0 — roerohan/automations0 reactions
- Sep 26, 2026agent-skills.github.cloudflare.kumo: init at 2.14.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026Bump the react-and-ui group with 7 updates — batd-htplus/batd-os0 reactions
- Sep 23, 2026build(deps): bump @cloudflare/kumo from 2.8.0 to 2.14.0 in /frontend — misaka310/video-highlights-site0 reactions · 1 comment
- Sep 23, 2026build(deps): bump @cloudflare/kumo from 2.13.2 to 2.14.0 — dedkola/vercelab0 reactions · 1 comment
- Sep 22, 2026chore(deps): bump @cloudflare/kumo from 2.13.2 to 2.14.0 — dedkola/homelab-index0 reactions · 2 comments
- Sep 21, 2026Bump the react-and-ui group across 1 directory with 7 updates — RoderickOxen/foundation-os0 reactions
- Sep 21, 2026Bump the minor-patch group with 4 updates — Vortexmind/cf-zt-m365-split-tunnel-automation0 reactions · 3 comments
- Sep 21, 2026build(deps): bump @cloudflare/kumo from 2.6.0 to 2.14.0 — codebam/seanbehan.ca0 reactions
- Sep 19, 2026Bump the react-and-ui group with 7 updates — ramihollings/supros-compute-source-fixture0 reactions
- Sep 19, 2026Bump @cloudflare/kumo from 2.13.2 to 2.14.0 in the design group — demosjarco/Cloudflare-One-DNS-Privacy-AdBlock0 reactions · 2 comments
- Sep 16, 2026Bump the npm group across 1 directory with 9 updates — kagamirror123/side-filters0 reactions
- Sep 16, 2026Bump the react-and-ui group across 1 directory with 4 updates — cloudflare/cloudflare-os0 reactions · 3 comments
- Sep 16, 2026build(deps): bump @cloudflare/kumo from 2.13.1 to 2.13.2 — dedkola/vercelab0 reactions · 2 comments
- Sep 15, 2026chore(deps): bump the compatible-updates group across 1 directory with 13 updates — Compfest18-AgusLaparBuk/boundary-prince0 reactions
- Sep 15, 2026Bump the react-and-ui group with 3 updates — cloudflare/cloudflare-os0 reactions · 4 comments
- Sep 15, 2026chore(deps): bump @cloudflare/kumo from 2.13.1 to 2.13.2 — dedkola/homelab-index0 reactions · 2 comments
- Sep 14, 2026build(deps): bump @cloudflare/kumo from 2.6.0 to 2.13.2 — codebam/seanbehan.ca0 reactions · 1 comment
- Sep 13, 2026chore(deps): bump the compatible-updates group across 1 directory with 13 updates — AgusLaparBukTeam/Agus-Lapar-Buk0 reactions
- Sep 9, 2026build(deps): bump @cloudflare/kumo from 2.12.0 to 2.13.1 — dedkola/vercelab0 reactions · 1 comment
- Sep 8, 2026chore(deps): bump @cloudflare/kumo from 2.12.0 to 2.13.1 — dedkola/homelab-index0 reactions · 11 comments
- Sep 7, 2026build(deps): bump @cloudflare/kumo from 2.10.0 to 2.13.1 — Beicho/arkadia-sub0 reactions
- Sep 7, 2026build(deps): bump @cloudflare/kumo from 2.6.0 to 2.13.1 — codebam/seanbehan.ca0 reactions · 1 comment
- Sep 6, 2026Bump @cloudflare/kumo from 2.7.0 to 2.13.0 in /dashboard — kossisoroyce/Tenta0 reactions
- Sep 1, 2026Bump the react-and-ui group across 1 directory with 4 updates — erxes/cloudflare-os-erxes0 reactions · 3 comments
- Aug 30, 2026Bump @cloudflare/kumo from 2.7.0 to 2.12.0 in /dashboard — kossisoroyce/Tenta0 reactions · 1 comment
- Aug 26, 2026Bump the react-and-ui group with 3 updates — erxes/cloudflare-os-erxes0 reactions · 2 comments
- Aug 24, 2026build(deps): bump @cloudflare/kumo from 2.10.0 to 2.12.0 — Beicho/arkadia-sub0 reactions · 1 comment
- Aug 24, 2026chore(deps): bump @cloudflare/kumo from 2.9.0 to 2.12.0 — sincanmaulanaa/inovamedika-frontend0 reactions
- Aug 23, 2026Bump @cloudflare/kumo from 2.7.0 to 2.11.0 in /dashboard — kossisoroyce/Tenta0 reactions · 1 comment
- Aug 17, 2026chore(deps): bump @cloudflare/kumo from 2.9.0 to 2.10.0 — sincanmaulanaa/inovamedika-frontend0 reactions · 1 comment
- Aug 16, 2026Bump @cloudflare/kumo from 2.7.0 to 2.10.0 in /dashboard — kossisoroyce/Tenta0 reactions · 1 comment
- Aug 13, 2026Bump @cloudflare/kumo from 2.9.0 to 2.9.2 — lazytechai/tokapi-anthropic-console0 reactions
- Aug 10, 2026chore(deps): bump @cloudflare/kumo from 2.9.0 to 2.9.2 — sincanmaulanaa/inovamedika-frontend0 reactions · 1 comment
- Jul 23, 2026`vp migrate` silently drops custom lint rules when a `jsPlugin`'s namespace can't be derived — voidzero-dev/vite-plus0 reactions
- May 16, 2026chore(deps): bump @cloudflare/kumo from 1.16.0 to 2.2.1 — IcyBlue17/Blue-Archive-NET0 reactions · 2 comments
- Mar 24, 2026Add Kumo (Cloudflare) categorical palette — joaopalmeiro/d3-extra-scale-chromatic0 reactions
- Nov 21, 2025User interface — panodata/suraya0 reactions · 4 comments
On Bluesky · 1
- Apr 22, 2026github.com/cloudflare/k... @cloudflare.social building awesome open source stuff #opensource #design #cloudflare #dashboard #component… — @adityamitra.bsky.social3 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository10 other files it gives its agents.
- ci/AGENTS.mdAGENTS.md
- packages/kumo/AGENTS.mdAGENTS.md
- packages/kumo-docs-astro/AGENTS.mdAGENTS.md
- packages/kumo-docs-astro/src/components/demos/AGENTS.mdAGENTS.md
- packages/kumo-figma/AGENTS.mdAGENTS.md
- packages/kumo-figma/src/generators/AGENTS.mdAGENTS.md
- packages/kumo-screenshot-worker/AGENTS.mdAGENTS.md
- packages/kumo/src/components/AGENTS.mdAGENTS.md
- index-knowledgeSkill
- kumo-designSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
cn()utility: Always compose classNames via cn("base", conditional && "extra", className) - Very specific: line 55
Do not fix a popup that appears below consumer content by adding z-index to Kumo popup components, targeting Base UI internal data …
- Very specific: line 62
Registry first: Always check component-registry.json before using/modifying a component
- Very specific: line 67
No cross-package relative imports: Use @cloudflare/kumo not ../../kumo/src/...
- Distinctive: line 94
Check ONE option in each section (Reviews and Tests)
- Very specific: line 95
If providing a justification (because: or as follows:), text must follow on the same line
≈ “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.
Files
KUMO KNOWLEDGE BASE
Generated: 2026-03-18 | Commit: 38518e34 | Branch: rozenmd/fix-preview
OVERVIEW
Cloudflare's React component library (@cloudflare/kumo). pnpm monorepo: component library (Base UI + Tailwind v4), Astro docs site, Figma plugin, screenshot worker. ESM-only, Node 24+.
STRUCTURE
kumo/
├── packages/
│ ├── kumo/ # Component library → see packages/kumo/AGENTS.md
│ ├── kumo-docs-astro/ # Astro docs site → see packages/kumo-docs-astro/AGENTS.md
│ ├── kumo-figma/ # Figma plugin → see packages/kumo-figma/AGENTS.md
│ └── kumo-screenshot-worker/ # Visual regression Worker → see packages/kumo-screenshot-worker/AGENTS.md
├── ci/ # CI/CD scripts → see ci/AGENTS.md
├── lint/ # Custom oxlint rules (5 rules in package, 4 at root)
├── .changeset/ # Changeset files
├── .github/workflows/ # 6 workflow YAMLs (release, pullrequest, preview, etc.)
└── .vite-hooks/ # Git hooks (Vite+): pre-commit codegen+staged, pre-push changeset validationWHERE TO LOOK
| Task | Location | Notes |
| Component API | packages/kumo/ai/component-registry.{json,md} | Source of truth. Query with jq or CLI |
| Component source | packages/kumo/src/components/{name}/{name}.tsx | Standard pattern |
| Blocks (installable) | packages/kumo/src/blocks/ | NOT library exports; installed via CLI |
| Semantic tokens | packages/kumo/src/styles/theme-kumo.css | AUTO-GENERATED; edit scripts/theme-generator/config.ts |
| Custom lint rules | lint/ (4 rules) + packages/kumo/lint/ (+1) | Package copy adds no-deprecated-props |
| Demo examples | packages/kumo-docs-astro/src/components/demos/ | Feed into registry codegen |
| CI scripts | ci/ | Reporter system, versioning, deployment |
| Figma generators | packages/kumo-figma/src/generators/ | 37 component generators |
CONVENTIONS
Styling (CRITICAL)
- ONLY semantic tokens:
bg-kumo-base,text-kumo-default,border-kumo-line,ring-kumo-hairline - NEVER raw Tailwind colors:
bg-blue-500,text-gray-900→ fails lint - NEVER
dark:variant: dark mode automatic vialight-dark()in CSS custom properties - Exceptions:
bg-white,bg-black,text-white,text-black,transparent cn()utility: Always compose classNames viacn("base", conditional && "extra", className)- Surface hierarchy:
bg-kumo-base→bg-kumo-elevated→bg-kumo-recessed - Mode/theme:
data-mode="light"|"dark"+data-theme="fedramp"on parent element
Portal stacking (CRITICAL)
- Kumo floating components portal to
document.body. Consumers should create an app-root stacking context withisolation: isolate(Tailwind:className="isolate"). - Do not fix a popup that appears below consumer content by adding
z-indexto Kumo popup components, targeting Base UI internal data attributes, or applyingisolationto<body>.
Components
- Scaffold new:
pnpm --filter @cloudflare/kumo new:component(never create manually) - Registry first: Always check
component-registry.jsonbefore using/modifying a component - See
packages/kumo/AGENTS.mdfor component conventions (variants, forwardRef, displayName)
Imports
- No cross-package relative imports: Use
@cloudflare/kumonot../../kumo/src/...(lint-enforced) - ESM-only:
"type": "module"throughout. No CJS.
Changesets
- Enforced for
packages/kumo/: Pre-push hook requires changeset for npm-published library - Optional for
kumo-docs-astro: Version appears in/api/versionendpoint (debugging) but nothing depends on it - Not needed for
kumo-figma: Figma plugin, not published to npm - Pre-push hook:
.vite-hooks/pre-pushvalidates before push. Bypass:git push --no-verify(orVITE_GIT_HOOKS=0) - AI agents NEVER:
pnpm version,pnpm release,pnpm publish:beta,pnpm release:production
Pull Request Descriptions
PR descriptions are validated by CI. Include this checklist at the end of your PR body:
- Reviews
- [ ] bonk has reviewed the change
- [x] automated review not possible because: <your reason here>
- Tests
- [ ] Tests included/updated
- [ ] Automated tests not possible - manual testing has been completed as follows: <description>
- [x] Additional testing not necessary because: <your reason here>Rules:
- Check ONE option in each section (Reviews and Tests)
- If providing a justification (
because:oras follows:), text must follow on the same line - Indentation is flexible — nested under headers is fine
- Skip validation entirely with the
skip-pr-description-validationlabel
ANTI-PATTERNS
| Pattern | Why | Instead |
bg-blue-500, text-gray-* | Breaks theming, fails lint | bg-kumo-brand, text-kumo-default |
dark:bg-black | Redundant; tokens auto-adapt | Remove dark: prefix |
Missing displayName | Breaks React DevTools | Set .displayName on forwardRef components |
| Manual component file creation | Misses vite/package.json/index updates | Use scaffolding tool |
| Editing auto-generated files | theme-kumo.css, ai/schemas.ts, ai/component-registry.* | Edit source configs, run codegen |
COMMANDS
# Cross-cutting
pnpm dev # Docs dev server (localhost:4321)
pnpm lint # oxlint + custom rules
pnpm typecheck # TypeScript check all packages
pnpm changeset # Create changeset (required for kumo changes)
# Package-specific (see child AGENTS.md for full lists)
pnpm --filter @cloudflare/kumo build # Build library
pnpm --filter @cloudflare/kumo test # Vitest
pnpm --filter @cloudflare/kumo codegen:registry # Regenerate component-registry
pnpm --filter @cloudflare/kumo-figma build # Build Figma pluginBUILD PIPELINE
kumo-docs-astro demos → dist/demo-metadata.json
↓
kumo codegen:registry → ai/component-registry.{json,md} + ai/schemas.ts
↓
kumo-figma build:data → generated/*.json → vp pack (tsdown) → code.js (IIFE, ES2017)Cross-package dependency: registry codegen requires docs demo metadata. Run codegen:demos in docs before codegen:registry in kumo.
TOOLCHAIN
| Tool | Version | Notes |
| Node | ^24.12.0 | Engine constraint (.node-version) |
| pnpm | ^12.3.4 | Workspace manager |
| Vite+ | 0.3.1 | Unified toolchain (vp CLI): build, test, lint, fmt |
| TypeScript | 5.9.2 | Via pnpm catalog |
| Vite | 8.x | Bundled via vite-plus; library mode (kumo), docs server |
| Tailwind | 4.1.17 | v4 with light-dark() tokens |
| Oxlint | bundled | Via vp lint; config in vite.config.ts + custom JS rules |
| Oxfmt | bundled | Via vp fmt; replaced Prettier |
| Vitest | bundled | Via vp test; happy-dom env, v8 coverage |
| Changesets | latest | Version management |
| Astro | 7.x | Docs framework |
Lint/format/test config lives in vite.config.ts (root and per-package) — there
are no .oxlintrc.json / .prettierrc files. vp check runs format + lint.
The global Vite+ CLI is optional but recommended for contributors: the binary ships with the local vite-plus dependency (pnpm vp …), and hooks resolve it from node_modules/.bin.
SECURITY
- NEVER commit Figma tokens, npm tokens, or API keys
.envfiles are gitignoredwrangler.jsonccontains Cloudflare account IDs (not secret but don't expose)
NOTES
ai/component-registry.json,ai/component-registry.mdare auto-generated at build time and gitignored (shipped in npm package).ai/schemas.tsis a stub for fresh clones (full version generated during build)src/primitives/(40 files) are auto-generated Base UI re-exports- Blocks in
src/blocks/are NOT exported from package index; installed via CLIkumo add src/catalog/is a runtime JSON-UI rendering module (separate concern from component library)- Single linter: Oxlint via
vp lint(custom kumo JS rules + native jsx-a11y rules; type-aware + type-checked) PLOP_INJECT_EXPORTandPLOP_INJECT_COMPONENT_ENTRYmarkers in source for scaffolding- GitHub Actions workflows live in
.github/workflows/, including release, PR validation, previews, Bonk, and automatic PR reviews
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.

