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
In this repository8 other files it gives its agents.
- backend/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- add-session-cardSkill
- backend-maintenanceSkill
- bugfixSkill
- cut-releaseSkill
- frontend-maintenanceSkill
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
- Very specific: line 41
When adding a page, also wire it into the sidebar tree in docs/astro.config.mjs.
- Very specific: line 53
When changing CONFIGURATION.md or SELF-HOSTING.md, update the corresponding docs site page in the same PR.
≈ “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.
Files
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(notQuickstart for End Users) - ✅
title: API reference(notAPI Reference) - ✅
## How sync works(not## How Sync Works) - ✅
### Generate secrets(not### Generate Secrets) - ✅
### GitHub OAuth— bothGitHubandOAuthstay 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 architectureWhen 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 page | Canonical source |
self-hosting/configuration.md | CONFIGURATION.md (ported in full) |
self-hosting/deploy.md | SELF-HOSTING.md (ported in full) |
api/overview.md | backend/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 outputConfig 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'scustomCssinastro.config.mjs; no Google Fonts request). It matches the main app'sHeader.module.cssand is applied insrc/styles/custom.cssto.site-titleand.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.cssoverrides Starlight's CSS custom properties to do this; keep those values in sync withfrontend/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..7between) 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.cssalso 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.cssis 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.
- The mechanism: Starlight derives almost every surface from a grayscale ramp (
- Provider logo strip:
src/components/ProviderLogos.astrorenders 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 viacurrentColor, OpenCode monochrome viacurrentColor); keep them in sync. SVGs are inlined (not<img>) so thecurrentColormarks adapt per theme. - Footer override:
src/components/Footer.astro(wired via Starlight'scomponents.Footerinastro.config.mjs) renders Starlight's default footer, then a Privacy / Terms / Cookies row linking tohttps://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
headarray inastro.config.mjsthat seedslocalStorage['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).
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.

