agentleFS
ConfabulousDevConfabulousDev/confab-web/docs/CLAUDE.md

confab-web

CLAUDE.md15 starsChanged 3 months agoMITView on GitHub

User-facing documentation site at code-docs.confabulous.dev, built with Starlight (Astro). Source lives under docs/src/content/docs/; sidebar tree is in docs/astro.config.mjs. Docs-site conventions Claude would get wrong by default. Add a rule here only when it's (a) site-wide, (b) non-obvious from reading existing pages, and (c) Claude would get it wrong without the instruction. All page titles, sidebar labels, and ## / ### headings use sentence case: capitalize only the first word. Proper nouns (Confabulous Code, Claude Code, Codex, Docker, GitHub, Fly.io, Linode,…

  • Installs packages

The file

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

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    When adding a page, also wire it into the sidebar tree in docs/astro.config.mjs.

    line 41
  2. Very specific:

    When changing CONFIGURATION.md or SELF-HOSTING.md, update the corresponding docs site page in the same PR.

    line 53

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

Docs site notes

User-facing documentation site at code-docs.confabulous.dev, built with Starlight (Astro). Source lives under docs/src/content/docs/; sidebar tree is in docs/astro.config.mjs.

What belongs in this file

Docs-site conventions Claude would get wrong by default. Add a rule here only when it's (a) site-wide, (b) non-obvious from reading existing pages, and (c) Claude would get it wrong without the instruction.

Sentence case for titles and headings

All page titles, sidebar labels, and ## / ### headings use sentence case: capitalize only the first word. Proper nouns (Confabulous Code, Claude Code, Codex, Docker, GitHub, Fly.io, Linode, Caddy, MinIO, PostgreSQL, Neon, Resend, Honeycomb, Anthropic, OpenAI) and acronyms (CLI, API, HTTP, HTTPS, OAuth, OIDC, SSO, TLS, DNS, S3, AWS) keep their canonical capitalization.

Examples:

  • ✅ title: Quickstart for end users (not Quickstart for End Users)
  • ✅ title: API reference (not API Reference)
  • ✅ ## How sync works (not ## How Sync Works)
  • ✅ ### Generate secrets (not ### Generate Secrets)
  • ✅ ### GitHub OAuth — both GitHub and OAuth stay capitalized

Apply this rule everywhere a title is rendered: frontmatter title:, description: (sentence case prose), astro.config.mjs label:, MDX <Card title="...">, and every Markdown heading.

Voice

Concise, to the point, assume competence.

Where content lives

docs/src/content/docs/
├── index.mdx                  # Splash landing page
├── faq.md                     # FAQ (general, managed instance, self-hosting)
├── getting-started/           # Audience-specific onboarding (end users vs admins)
├── self-hosting/              # Deployment walkthrough, samples, config reference, demo mode
├── cli/                       # confab CLI overview, commands, bundled skills
├── providers/                 # Per-provider details (claude-code, codex, cursor, opencode)
├── features/                  # Per-feature docs (sessions, trends, org analytics, sharing, smart recap)
├── api/                       # API reference (index linking into backend/API.md)
└── architecture/              # System architecture

When adding a page, also wire it into the sidebar tree in docs/astro.config.mjs.

Source-of-truth handling

Several pages are derived from canonical docs that live at the repo root or under backend/. Keep them in sync by hand when the source changes:

Docs site pageCanonical source
self-hosting/configuration.mdCONFIGURATION.md (ported in full)
self-hosting/deploy.mdSELF-HOSTING.md (ported in full)
api/overview.mdbackend/API.md (links into, not duplicated)

When changing CONFIGURATION.md or SELF-HOSTING.md, update the corresponding docs site page in the same PR. backend/API.md is the canonical reference for HTTP details; the docs site overview only adds structure on top.

Shared assets

Screenshots and the architecture diagram live in docs/public/ so both the repo root README.md and the docs site reference one copy. Root README uses docs/public/<file>.png; the docs site uses /<file>.png (Starlight serves public/ at root).

Local dev and build

cd docs
npm install      # First time only
npm run dev      # Serves at http://localhost:4321
npm run build    # Static output to dist/
npm run preview  # Sanity-check the built output

Config changes (astro.config.mjs, src/content.config.ts, src/styles/custom.css) require a dev-server restart; markdown/MDX content hot-reloads.

Brand and styling

  • Wordmark uses the Lobster font, self-hosted via @fontsource/lobster (first entry in Starlight's customCss in astro.config.mjs; no Google Fonts request). It matches the main app's Header.module.css and is applied in src/styles/custom.css to .site-title and .hero h1. The only third-party request at page load is the cookieless Cloudflare Web Analytics beacon.
  • The site is themed to match the main app (frontend/src/styles/variables.css, the "dive watch" aesthetic) in both light and dark — accent, neutrals, surfaces, and text colors. src/styles/custom.css overrides Starlight's CSS custom properties to do this; keep those values in sync with frontend/src/styles/variables.css, which is the source of truth.
    • The mechanism: Starlight derives almost every surface from a grayscale ramp (--sl-color-white = foreground … --sl-color-black = page bg, --sl-color-gray-1..7 between) plus an accent triple (--sl-color-accent-low / --sl-color-accent / --sl-color-accent-high). We override the ramp + accent and only the few derived surfaces whose default doesn't match the app (--sl-color-bg-nav, --sl-color-bg-sidebar, --sl-color-bg-inline-code, dark-mode --sl-color-text-accent). --sl-color-text, hairlines, etc. resolve from the ramp automatically — don't pin them.
    • Stay variable-only: prefer overriding --sl-color-* over per-component CSS so Starlight upgrades don't break the theme. Fenced code blocks (Expressive Code) inherit the gray ramp.
    • Mirror Starlight's own structure: dark values under :root, light under :root[data-theme='light'].
    • custom.css also makes a few chrome elements app-consistent: the wordmark and header social icon use neutral text colors (not Starlight's accent default), and the splash hero CTA is overridden from Starlight's full pill to the app's compact filled-accent button (radius + padding + a shrunk arrow icon). custom.css is a plain global stylesheet — do not use :global() there (it's a CSS-modules/scoped-style construct and is silently dropped as an invalid selector); use plain descendant selectors.
  • Provider logo strip: src/components/ProviderLogos.astro renders the "Works with" row on the splash page (index.mdx). It inlines the same official marks the main app uses (frontend/src/components/icons.tsx — Claude clay #d97757, Codex teal #10a37f, Cursor monochrome via currentColor, OpenCode monochrome via currentColor); keep them in sync. SVGs are inlined (not <img>) so the currentColor marks adapt per theme.
  • Footer override: src/components/Footer.astro (wired via Starlight's components.Footer in astro.config.mjs) renders Starlight's default footer, then a Privacy / Terms / Cookies row linking to https://code.confabulous.dev/{privacy,terms,cookies}. Keep the Cookies link: the main site's Cookie Policy is where this site's Cloudflare Web Analytics beacon and browser storage are disclosed.
  • First-visit theme defaults to dark to match the main app, via a pre-paint script at the top of the head array in astro.config.mjs that seeds localStorage['starlight-theme'] with 'dark' when unset. Explicit choices from Starlight's theme switcher are preserved.

Deployment

Hosted on Cloudflare Pages, built from docs/ on push to main. Custom domain: code-docs.confabulous.dev. Search is Pagefind (built into Starlight, static, zero runtime cost).

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.