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)…
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/build-plugin/CLAUDE.mdCLAUDE.md
- .agents/skills/bump-version/CLAUDE.mdCLAUDE.md
- .agents/skills/ralph/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .claude/skills/build-plugin/CLAUDE.mdCLAUDE.md
- .claude/skills/bump-version/CLAUDE.mdCLAUDE.md
- .claude/skills/ralph/CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- plugins/CLAUDE.mdCLAUDE.md
- .ralph/CLAUDE.mdCLAUDE.md
- build-pluginSkill
- bump-versionSkill
- ralphSkill
- build-pluginSkill
- bump-versionSkill
- ralphSkill
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
- Very specific: line 26
All checks must pass. This project has no test suite.
- Very specific: line 78
All illustrations live in docs/components/illustrations.tsx and are registered in docs/components/MDX.tsx for use in .mdx files.
- Very specific: line 116
Normal users: use Node.js and npm. Commands in user-facing docs (Quick Start, Installation) should use npx / npm.
- Very specific: line 117
Plugin developers: use Node.js and npm. Plugin docs should show npm run build, npx @opentabs-dev/create-plugin, etc.
- Very specific: line 118
Platform contributors: use Node.js and npm. Contributing docs reference npm run commands.
≈ “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.
Files
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 inlineinglobal.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 rootDirectory 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 definitionsTheme
app/global.css defines the visual language as CSS custom properties. Key tokens:
| Token | Light | Dark | Tailwind class |
--radius | 0 | (same) | rounded |
--background | #fff | #111111 | bg-background |
--foreground | #000 | #f5f5f5 | text-foreground |
--primary | #ffdb33 | #ffdb33 | bg-primary |
--border | #000 | #777777 | border-border |
--card | #fff | #1c1c1c | bg-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), monospacefor all text - Borders: 3px
strokeWidthon main containers - Shadows: Hard drop shadow via offset
<rect>(4px right, 4px down) filled withvar(--color-foreground) - Headers: Box-with-header-bar pattern — header filled with
var(--color-foreground), text invar(--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"to0.5"for secondary text - Highlighted items:
var(--color-primary)withopacity="0.12"fill and1.5pxstroke - Dashed borders:
strokeDasharray="4 3"for optional/repeating elements - Accessibility:
aria-hidden="true"on<svg>elements
Current Illustrations
| Component | Used on | Concept |
ArchitectureIllustration | docs/content/docs/contributing/architecture.mdx | 3-component platform architecture |
QuickStartFlow | docs/content/docs/quick-start.mdx | Quick start installation steps |
ConfigDirectory | docs/content/docs/reference/configuration.mdx | Config directory tree structure |
MonorepoStructure | docs/content/docs/contributing/dev-setup.mdx | Monorepo project layout |
PluginStructure | docs/content/docs/guides/plugin-development.mdx | Plugin directory structure |
ProgressFlow | docs/content/docs/guides/streaming-progress.mdx | 6-step progress notification pipeline |
LifecycleSequence | docs/content/docs/sdk/lifecycle-hooks.mdx | Lifecycle hooks execution timeline |
ErrorCategories | docs/content/docs/guides/error-handling.mdx | Error categories and retry behavior |
HowItWorks | docs/content/docs/index.mdx | 3-step runtime flow overview |
InstallPaths | docs/content/docs/install/index.mdx | Three installation path options |
FirstPluginFlow | docs/content/docs/first-plugin.mdx | 5-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 runcommands.
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.
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.

