agentleFS
CloudflareKnown publishercloudflare/nimbus/apps/www/AGENTS.md

nimbus / www

AGENTS.md1.4k starsChanged 2 months agoMITView on GitHub

Agent-facing context. If you're picking up work on this site, start here. Astro-based docs site. The nimbus-docs package provides the integration, content schemas, navigation/sidebar/TOC computation, MDX→markdown rendering, build hooks, and the nimbus CLI. Everything you see in src/ is user-owned and yours to edit. For Cloudflare deploys, also: wrangler.jsonc at project root. Frontmatter validates against the schema from docsCollection() (@cloudflare/nimbus-docs/content). Required: title. The schema includes optional fields for description, sidebar overrides, drafts, dates, edit-link suppression — read docsSchema in @cloudflare/nimbus-docs/schemas…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 4 mentionsAug 2026: 9 mentionsSep 2026: 35 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/nimbus repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cloudflare/nimbus

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
  • 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 repository2 other files it gives its agents.

The file

Show its rules and text

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

16 rules. About 0 are common, 5 are distinctive, and 11 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.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    MDX components must be PascalCase and registered: Every component used in a .mdx file (<Steps>, <Card>, etc.) must appear in …

    line 60
  2. Very specific:

    Partials use <Render />: Don't import .mdx files directly.

    line 62
  3. Very specific:

    Icons render via Nimbus's Icon + Phosphor: Use <Icon name="ph:<glyph>" class="w-4 h-4" /> from …

    line 64
  4. Distinctive:

    When asked to check or audit the site, walk the categories below.

    line 83
  5. Distinctive:

    Every sidebar reference resolves to a real content entry.

    line 95
  6. Very specific:

    Every .mdx file lives inside a registered collection.

    line 100
  7. Very specific:

    Every doc's frontmatter validates against the docsCollection() schema.

    line 101
  8. Distinctive:

    Every sidebar reference resolves to a content entry.

    line 104
  9. Distinctive:

    No orphan pages (entries with no path from the sidebar tree).

    line 105
  10. Distinctive:

    No slug collisions across collections.

    line 106
  11. Very specific:

    Every PascalCase component used in src/content/docs//*.mdx is listed in src/components.ts and imported there.

    line 109
  12. Very specific:

    Every <Render file="..." /> resolves to a file at src/content/partials/<slug>.mdx.

    line 110
  13. Very specific:

    Every component folder in src/components/ui/<slug>/ traces back to either a registered MDX global in src/components.ts or a direct import …

    line 120
  14. Very specific:

    After pnpm build, dist/pagefind/ exists with ≥1 indexed page.

    line 130
  15. Very specific:

    Don't add components to src/components/ui/ by hand: Use pnpm exec nimbus-docs add <slug> so dependencies resolve and the file shape …

    line 138
  16. Very specific:

    Don't import .mdx files directly: Use <Render file="..." />.

    line 139

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

This Nimbus docs site

Agent-facing context. If you're picking up work on this site, start here.

Astro-based docs site. The nimbus-docs package provides the integration, content schemas, navigation/sidebar/TOC computation, MDX→markdown rendering, build hooks, and the nimbus CLI. Everything you see in src/ is user-owned and yours to edit.

File layout

astro.config.ts                # imports `nimbus` and `defineNimbusConfig` — site config lives inline here
nimbus.config.ts               # (alternative) some projects split the Nimbus config into its own file
src/
├── components.ts              # MDX globals registry — every component used in .mdx files must be listed here
├── components/                # repo-owned components
│   ├── AgentDirective.astro   # ships an agent-readable hint into every doc page; do not remove
│   ├── Header.astro
│   ├── Render.astro           # partial loader — <Render file="..." />
│   └── ui/                    # registry-installed UI components (badge, dialog, sidebar, search, etc.)
├── content/
│   ├── docs/*.mdx             # docs content
│   └── partials/*.mdx         # partials referenced via <Render file="..." />
├── content.config.ts          # docsCollection() and partialsCollection() are registered here
├── layouts/
│   ├── BaseLayout.astro       # renders <NimbusHead /> + <AgentDirective />; wraps every page
│   └── DocsLayout.astro       # docs page chrome — sidebar, TOC, breadcrumbs, pagination
├── lib/
│   └── cn.ts                  # Tailwind className merger (clsx + tailwind-merge)
├── pages/
│   ├── index.astro            # landing
│   ├── [...slug].astro        # docs catch-all
│   ├── [...slug]/index.md.ts  # per-page markdown alternate (the .md sibling of every doc URL)
│   ├── llms.txt.ts            # /llms.txt
│   ├── og.png.ts              # site-level OG image
│   ├── og/
│   │   ├── _renderer.ts       # shared OG card renderer (underscore = not a route)
│   │   └── [...slug].ts       # per-page OG image
│   └── robots.txt.ts          # /robots.txt
└── styles/
    ├── globals.css
    └── prose.css

For Cloudflare deploys, also: wrangler.jsonc at project root.

Writing docs

Frontmatter validates against the schema from docsCollection() (@cloudflare/nimbus-docs/content). Required: title. The schema includes optional fields for description, sidebar overrides, drafts, dates, edit-link suppression — read docsSchema in @cloudflare/nimbus-docs/schemas for the full shape.

---
title: My page
description: One-line summary.
---

# My page

Content here.

MDX components must be PascalCase and registered. Every component used in a .mdx file (<Steps>, <Card>, etc.) must appear in src/components.ts. A pre-build validator catches typos and unregistered components with file:line:column and a "did you mean" hint.

Partials use <Render />. Don't import .mdx files directly. Put shared content in src/content/partials/<slug>.mdx, then reference with <Render file="<slug>" />. The Render component emits a "did you mean" diagnostic for unknown slugs.

Icons render via Nimbus's Icon + Phosphor. Use <Icon name="ph:<glyph>" class="w-4 h-4" /> from @cloudflare/nimbus-docs/components/Icon.astro. Don't reintroduce inline <svg> blocks for icons. Browse glyphs at phosphoricons.com.

AgentDirective renders in BaseLayout.astro. It writes an agent-readable hint at the top of every doc and markdown alternate pointing at /llms.txt. Don't remove it.

Adding things

GoalAction
New doc pageCreate src/content/docs/<slug>.mdx with valid frontmatter. The sidebar picks it up automatically.
New partialCreate src/content/partials/<slug>.mdx. Use via <Render file="<slug>" />.
New UI component from the registrypnpm exec nimbus-docs add <slug>. Resolves dependencies and writes files into src/components/ui/<slug>/. Remember to import + register the component in src/components.ts if it's used in MDX.
New feature (e.g. custom 404, AI surface)pnpm exec nimbus-docs add <feature-slug>. Prints an agent brief; pipe it to your coding agent.
New custom page routeAdd a file under src/pages/.
Custom OG card styleEdit src/pages/og/_renderer.ts.

List installable items with pnpm exec nimbus-docs list.

Audit this site

When asked to check or audit the site, walk the categories below. For each finding, emit a bullet:

- [error|warn|info] FILE:LINE — what's wrong + why it matters + recommended fix.

End the report with: Summary: N errors, N warnings.

Config

  • astro.config.ts imports nimbus and calls it with the result of defineNimbusConfig({ ... }).
  • site is a non-empty URL. Watch for trailing-slash mismatches against page URLs.
  • editPattern (if set) includes the literal {path} placeholder.
  • Every sidebar reference resolves to a real content entry.
  • Astro output: matches the deploy target (static for static deploys).

Content collections

  • src/content.config.ts registers docsCollection() from @cloudflare/nimbus-docs/content. Register partialsCollection() too if src/content/partials/ exists.
  • Every .mdx file lives inside a registered collection. Loose .mdx under src/content/ outside a registered collection won't be picked up.
  • Every doc's frontmatter validates against the docsCollection() schema.

Sidebar / navigation

  • Every sidebar reference resolves to a content entry.
  • No orphan pages (entries with no path from the sidebar tree).
  • No slug collisions across collections.

MDX content

  • Every PascalCase component used in src/content/docs/**/*.mdx is listed in src/components.ts and imported there.
  • Every <Render file="..." /> resolves to a file at src/content/partials/<slug>.mdx.
  • Code fence languages are valid (typescript, bash, etc., not typos like typescriptt).

User-owned routes

  • src/pages/llms.txt.ts exists and emits a list of all doc entries.
  • src/pages/robots.txt.ts exists.
  • src/pages/[...slug]/index.md.ts exists (per-page markdown alternates).
  • src/pages/og.png.ts and src/pages/og/[...slug].ts exist for OG image generation.

Registry hygiene

  • Every component folder in src/components/ui/<slug>/ traces back to either a registered MDX global in src/components.ts or a direct import elsewhere in src/. Orphan folders flag as warnings.
  • Components installed via nimbus-docs add carry transitive dependencies — confirm utilities like src/lib/cn.ts exist and are imported correctly.

AI surface

  • <AgentDirective /> renders inside BaseLayout.astro (on every page).
  • The <head> of doc pages contains <link rel="alternate" type="text/markdown" ...> pointing at the .md alternate.

Search (Pagefind)

  • The framework integration wires the Pagefind post-build hook automatically — no setup needed in user code.
  • data-pagefind-body is set on the docs layout's main content wrapper so Pagefind only indexes content, not chrome.
  • After pnpm build, dist/pagefind/ exists with ≥1 indexed page.

Cloudflare deploy (if applicable)

  • wrangler.jsonc exists at project root.
  • Contains name, compatibility_date, assets.directory = "./dist", not_found_handling.

Don't

  • Don't add components to src/components/ui/ by hand. Use pnpm exec nimbus-docs add <slug> so dependencies resolve and the file shape matches what the registry expects.
  • Don't import .mdx files directly. Use <Render file="..." />.
  • Don't attach remark or rehype plugins via mdx({ remarkPlugins }). This site uses Sätteri as the markdown processor; it silently drops plugins attached that way. Framework-side transformations run as content passes in the integration, not as remark plugins.
  • Don't remove <AgentDirective />. It's the agent-readable hint that points at /llms.txt.
  • Don't edit src/components.ts to bypass the registration rule. If a component is used in .mdx, it goes in this file. If not, leave it out.

Project home

nimbus-docs.com

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.