agentleFS
opentabs-devopentabs-dev/opentabs/docs/CLAUDE.md

opentabs

CLAUDE.md967 starsChanged 8 months agoMITView on GitHub

The OpenTabs documentation site is built with Next.js 16, content-collections for MDX, and a neo-brutalist design system. Content is authored in MDX under content/, rendered via content-collections, and styled with Tailwind CSS 4. All checks must pass. This project has no test suite. npm run check runs them all sequentially, stopping on first failure. From the repo root, these convenience aliases are available: app/global.css defines the visual language as CSS custom properties. Key tokens: Shadows are flat offsets using var(--border)…

The file

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

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

  • 5

    Very specific

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

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

    All checks must pass. This project has no test suite.

    line 26
  2. Very specific:

    All illustrations live in docs/components/illustrations.tsx and are registered in docs/components/MDX.tsx for use in .mdx files.

    line 78
  3. Very specific:

    Normal users: use Node.js and npm. Commands in user-facing docs (Quick Start, Installation) should use npx / npm.

    line 116
  4. Very specific:

    Plugin developers: use Node.js and npm. Plugin docs should show npm run build, npx @opentabs-dev/create-plugin, etc.

    line 117
  5. Very specific:

    Platform contributors: use Node.js and npm. Contributing docs reference npm run commands.

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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 Project Instructions

Overview

The OpenTabs documentation site is built with Next.js 16, content-collections for MDX, and a neo-brutalist design system. Content is authored in MDX under content/, rendered via content-collections, and styled with Tailwind CSS 4.

Tech Stack

  • Framework: Next.js 16 (static export via next build)
  • Content: content-collections (@content-collections/mdx + @content-collections/next)
  • Styling: Tailwind CSS 4 (CSS-first config via @theme inline in global.css)
  • UI primitives: Radix UI (Slot), Headless UI (Tabs)
  • Fonts: Archivo Black (headings), Space Grotesk (body), Space Mono (code)

Commands

npm run build         # next build (static export)
npm run type-check    # tsc --noEmit
npm run lint          # biome lint
npm run knip          # unused code detection
npm run format:check  # biome format check
npm run check         # All checks (build + type-check + lint + knip + format:check)

All checks must pass. This project has no test suite. npm run check runs them all sequentially, stopping on first failure.

From the repo root, these convenience aliases are available:

npm run dev:docs        # next dev (docs dev server)
npm run build:docs      # next build
npm run lint:docs       # biome lint
npm run type-check:docs # tsc --noEmit
npm run check:docs      # All docs checks from root

Directory Structure

docs/
├── app/
│   ├── global.css              # Theme definition — single source of truth
│   ├── layout.tsx              # Root layout (fonts, Provider)
│   ├── page.tsx                # Homepage
│   └── docs/                   # Docs pages layout
├── components/
│   ├── retroui/                # RetroUI primitives (Button, Badge, Table, etc.)
│   ├── illustrations.tsx       # All SVG illustration components
│   ├── MDX.tsx                 # MDX component overrides and illustration registration
│   ├── CodeBlock.tsx           # Code block with copy button
│   └── global-header.tsx       # Shared header across all pages
├── content/
│   └── docs/                   # MDX content files (guides, SDK reference, etc.)
├── config/                     # Content-collections and docs configuration
├── lib/
│   └── utils.ts                # cn() helper
└── types/                      # TypeScript type definitions

Theme

app/global.css defines the visual language as CSS custom properties. Key tokens:

TokenLightDarkTailwind class
--radius0(same)rounded
--background#fff#111111bg-background
--foreground#000#f5f5f5text-foreground
--primary#ffdb33#ffdb33bg-primary
--border#000#777777border-border
--card#fff#1c1c1cbg-card

Shadows are flat offsets using var(--border) with no blur or spread.

SVG Illustrations

All illustrations live in docs/components/illustrations.tsx and are registered in docs/components/MDX.tsx for use in .mdx files.

Design Rules

  • CSS variables for theming: var(--color-foreground), var(--color-primary), var(--color-background)
  • Font: var(--font-mono), monospace for all text
  • Borders: 3px strokeWidth on main containers
  • Shadows: Hard drop shadow via offset <rect> (4px right, 4px down) filled with var(--color-foreground)
  • Headers: Box-with-header-bar pattern — header filled with var(--color-foreground), text in var(--color-primary) bold
  • No border-radius (--radius: 0)
  • Arrow markers: Triangular arrowheads filled with var(--color-foreground), unique IDs per illustration (e.g., pf-arrow, fp-arrow)
  • Muted labels: opacity="0.4" to 0.5" for secondary text
  • Highlighted items: var(--color-primary) with opacity="0.12" fill and 1.5px stroke
  • Dashed borders: strokeDasharray="4 3" for optional/repeating elements
  • Accessibility: aria-hidden="true" on <svg> elements

Current Illustrations

ComponentUsed onConcept
ArchitectureIllustrationdocs/content/docs/contributing/architecture.mdx3-component platform architecture
QuickStartFlowdocs/content/docs/quick-start.mdxQuick start installation steps
ConfigDirectorydocs/content/docs/reference/configuration.mdxConfig directory tree structure
MonorepoStructuredocs/content/docs/contributing/dev-setup.mdxMonorepo project layout
PluginStructuredocs/content/docs/guides/plugin-development.mdxPlugin directory structure
ProgressFlowdocs/content/docs/guides/streaming-progress.mdx6-step progress notification pipeline
LifecycleSequencedocs/content/docs/sdk/lifecycle-hooks.mdxLifecycle hooks execution timeline
ErrorCategoriesdocs/content/docs/guides/error-handling.mdxError categories and retry behavior
HowItWorksdocs/content/docs/index.mdx3-step runtime flow overview
InstallPathsdocs/content/docs/install/index.mdxThree installation path options
FirstPluginFlowdocs/content/docs/first-plugin.mdx5-step plugin creation workflow

Runtime and Tooling Context

The docs site is a platform contributor tool — built and developed using Node.js and npm (npm run build, npm run dev:docs, etc.).

The docs content, however, covers three audience tiers with different runtime and tooling expectations:

  • Normal users use Node.js and npm. Commands in user-facing docs (Quick Start, Installation) should use npx / npm.
  • Plugin developers use Node.js and npm. Plugin docs should show npm run build, npx @opentabs-dev/create-plugin, etc.
  • Platform contributors use Node.js and npm. Contributing docs reference npm run commands.

Documentation Tone

The docs follow a progressive audience path: normal user (Quick Start, Installation) → plugin developer (Guides, SDK Reference) → platform contributor (Contributing). The tone is:

  • Friendly and accessible — no jargon without explanation, no assumptions about prior knowledge
  • Step-by-step and hand-holding — explicit numbered steps, one action per step
  • Show before tell — lead with a visual or code example, then explain
  • Concrete over abstract — real commands, real output, real file paths

Illustrations should match this tone: clear, labeled, approachable. Prefer showing the "happy path" flow over comprehensive architecture diagrams. Use annotations and labels generously.

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.