agentleFS
keep-starknet-strangekeep-starknet-strange/starknet-agentic/website/CLAUDE.md

starknet-agentic / website

CLAUDE.md80 starsChanged 7 months agoMITView on GitHub

Documentation website for Starknet Agentic built with Next.js 16, React 19, and Tailwind CSS. Uses MDX for documentation content with syntax highlighting via Shiki. Documentation uses a two-layer system: 1. app/data/docs.ts - Defines categories and page metadata (titles, descriptions, slugs) 2. content/docs/{category}/{slug}.mdx - Actual MDX content files The dynamic route at app/docs/[category]/[slug]/page.tsx renders MDX content via next-mdx-remote/rsc. If an MDX file doesn't exist for a page defined in docs.ts, a "Coming Soon" placeholder is shown. Uses a neo-brutalist design system…

The file

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

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

  • 3

    Very specific

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

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

    Add page metadata to app/data/docs.ts under the appropriate category

    line 85
  2. Very specific:

    Create MDX file at content/docs/{category}/{slug}.mdx

    line 86
  3. Very specific:

    Use available MDX components: Callout, Collapsible, FAQItem, Steps, Step, QuickStartChecklist

    line 87

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

Documentation website for Starknet Agentic built with Next.js 16, React 19, and Tailwind CSS. Uses MDX for documentation content with syntax highlighting via Shiki.

Commands

TaskCommand
Install dependenciespnpm install
Start dev serverpnpm dev
Build for productionpnpm build
Start production serverpnpm start
Run ESLintpnpm lint

Architecture

Directory Structure

app/
├── components/
│   ├── docs/           # Documentation components (sidebar, search, pagination, callouts)
│   ├── Hero/           # Landing page hero section
│   ├── Navbar/         # Navigation (desktop + mobile)
│   ├── sections/       # Landing page sections (Vision, FeaturedApps, Architecture, etc.)
│   └── ui/             # Reusable UI components (cards, badges)
├── data/               # Static data with TypeScript types
├── docs/               # Documentation pages (uses [category]/[slug] dynamic routing)
└── hooks/              # Custom React hooks
content/
└── docs/               # MDX documentation files organized by category
lib/
├── mdx.ts              # MDX file loading utilities
└── mdx-components.tsx  # Custom MDX component mappings

Documentation System

Documentation uses a two-layer system:

  1. app/data/docs.ts - Defines categories and page metadata (titles, descriptions, slugs)
  2. content/docs/{category}/{slug}.mdx - Actual MDX content files

The dynamic route at app/docs/[category]/[slug]/page.tsx renders MDX content via next-mdx-remote/rsc. If an MDX file doesn't exist for a page defined in docs.ts, a "Coming Soon" placeholder is shown.

Path Aliases

  • @/* → ./app/*
  • @/lib/* → ./lib/*

Styling Conventions

Design System: Neo-brutalist

Uses a neo-brutalist design system defined in the @theme block of app/globals.css (Tailwind CSS 4):

Colors:

  • cream - Background (#FFFBEB)
  • neo-yellow, neo-pink, neo-purple, neo-blue, neo-green, neo-orange, neo-cyan - Accent colors
  • neo-dark - Primary text (#1a1a2e)

Shadows (offset borders):

  • shadow-neo-sm (2px), shadow-neo (4px), shadow-neo-lg (6px), shadow-neo-xl (8px)

Fonts:

  • font-heading (Space Grotesk) - Headings and buttons
  • font-body (DM Sans) - Body text
  • font-mono (JetBrains Mono) - Code

Component Classes

Defined in globals.css:

  • .neo-card / .neo-card-hover - Cards with border + shadow
  • .neo-btn-primary / .neo-btn-secondary / .neo-btn-dark - Buttons
  • .neo-badge - Badges
  • .neo-input - Form inputs
  • .section-padding - Standard section spacing
  • .prose-neo - Documentation prose styling

Adding Documentation

  1. Add page metadata to app/data/docs.ts under the appropriate category
  2. Create MDX file at content/docs/{category}/{slug}.mdx
  3. Use available MDX components: Callout, Collapsible, FAQItem, Steps, Step, QuickStartChecklist

Key Files

FilePurpose
app/layout.tsxRoot layout with fonts and metadata
app/page.tsxLanding page composition
app/docs/layout.tsxDocs layout with sidebar and search
app/data/docs.tsDocumentation structure definition
lib/mdx.tsMDX file reading utilities
lib/mdx-components.tsxCustom MDX component definitions
app/globals.cssTailwind entry point: design tokens (@theme) and component classes
tailwind.config.mjs@tailwindcss/typography theme for docs prose (loaded via @config)
next.config.tsNext.js config with MDX support

Documentation Tracking

<!-- This field is automatically updated by the /update-docs command -->

docs-last-updated: 08504816a479bf7571cf3494f982091bf40168bd

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.