agentleFS
michelvemichelve/draft_v0/CLAUDE.md

draft_v0

CLAUDE.md0 starsChanged 8 months agoMITView on GitHub

The following specialized agents can be invoked for specific tasks:

  • Reads credentials
  • Installs packages

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    #NoMessLeftBehind: - Never leave broken builds.

    line 8
  2. Very specific:

    Use ref as a regular prop

    line 40
  3. Very specific:

    Use React.lazy + <Suspense> for code splitting

    line 42
  4. Distinctive:

    Never expose internal errors to clients

    line 50
  5. Very specific:

    Use DSAi design tokens (--dsai-* CSS variables) and Bootstrap utility classes for styling.

    line 131
  6. Very specific:

    Code Connect: Create .figma.tsx files to map components to Figma nodes

    line 135

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

Project Instructions

Engineering Philosophy

  • First Principles Over Convention - Question assumptions, understand WHY things work
  • Simple Over Clever - Solve the actual problem, not the general case
  • Measure, Don't Guess - Data over intuition for performance claims
  • #NoMessLeftBehind - Never leave broken builds. Every error must be resolved

Tech Stack

  • Frontend: React 19, TypeScript, TanStack Router/Query, Bootstrap 5.3, DSAi Design System
  • Backend: Node.js, Express, TypeScript
  • Database: Prisma ORM (SQLite default)
  • State: TanStack Query (server), Zustand (client), React Hook Form + Zod (forms)
  • Build: Vite 6, TypeScript strict mode
  • Testing: Vitest (unit), Playwright (e2e)
  • Linting/Formatting: Biome, ESLint, Prettier
  • Design: Figma Code Connect, Figma MCP servers
  • Plugin: hugin-v0 (skills, agents, hooks, MCP servers)

Code Standards

  • TypeScript strict mode - no any unless absolutely necessary
  • 4-space indentation, double quotes, semicolons, trailing commas
  • Naming: camelCase (variables/functions), PascalCase (types/components), UPPER_SNAKE_CASE (constants)
  • Max 300 lines per component, max 5 levels of nesting
  • Conventional commits: feat:, fix:, refactor:, docs:, chore:, test:

Architecture

  • Layered: Route → Controller → Service → Repository → Database
  • Feature-based organization with proper separation of concerns
  • Relative imports within modules, absolute/alias imports across modules
  • Path aliases: @/* → src/client/*, @server/* → src/server/*

React 19

  • No forwardRef (removed), no propTypes (removed), no React.FC (removed)
  • Use ref as a regular prop
  • Functional components only with named exports
  • Use React.lazy + <Suspense> for code splitting
  • Loading states: use LoadingOverlay/SuspenseLoader (never early returns with spinners)

Error Handling

  • Custom error classes extending Error
  • Typed error responses with consistent structure
  • Catch Prisma errors: P2002 (unique), P2025 (not found) explicitly
  • Never expose internal errors to clients

Available Agents

The following specialized agents can be invoked for specific tasks:

AgentPurpose
auto-error-resolverFix TypeScript compilation and build errors systematically
code-architecture-reviewerReview code for best practices and architectural consistency
code-refactor-masterRefactor code for better organization and maintainability
documentation-architectCreate and enhance documentation
plan-reviewerReview development plans before implementation
principal-engineerFirst-principles engineering analysis (Carmack-style)
refactor-plannerAnalyze code structure and create refactoring plans
web-research-specialistResearch solutions on the internet

Quick Start

pnpm install
cp .env.example .env
pnpm db:push        # creates SQLite database
pnpm dev             # Vite on :5173, Express on :3001

Available Scripts

pnpm dev              # Start dev servers (Vite + Express)
pnpm build            # TypeScript check + Vite build
pnpm typecheck        # Run tsc --noEmit on both configs
pnpm lint             # ESLint check
pnpm format           # Prettier format
pnpm biome:check      # Biome lint + format check
pnpm test             # Vitest unit tests
pnpm test:e2e         # Playwright e2e tests
pnpm test:e2e:ui      # Playwright UI mode
pnpm db:push          # Push Prisma schema to database
pnpm db:studio        # Open Prisma Studio
pnpm db:generate      # Generate Prisma client

Plugin

This project uses the hugin-v0 Claude Code plugin for skills, agents, hooks, and MCP servers.

# Install (in Claude Code)
/plugin marketplace add michelve/hugin-v0
/plugin install hugin-v0@michelve

# Local testing
claude --plugin-dir ./path/to/hugin-v0

Project Structure

src/
├── client/              # React 19 SPA (Vite)
│   ├── routes/          # TanStack Router file-based routes
│   ├── components/      # Shared components (DSAi in ui/)
│   ├── lib/             # Utilities (cn, query-client)
│   └── hooks/           # Custom React hooks
├── server/              # Express API
│   ├── routes/          # API route handlers
│   ├── controllers/     # Request parsing + response sending
│   ├── services/        # Business logic + custom error classes
│   ├── repositories/    # Prisma queries, data access only
│   └── lib/             # Shared (prisma client)
prisma/
└── schema.prisma        # Database schema (SQLite default)
e2e/
└── *.spec.ts            # Playwright e2e tests

Adding UI Components

DSAi components live in src/client/components/ui/. Import with @/components/ui/button.

Use DSAi design tokens (--dsai-* CSS variables) and Bootstrap utility classes for styling.

Figma Integration

  • Code Connect: Create .figma.tsx files to map components to Figma nodes
  • MCP Servers: figma-developer-mcp and figma-console-mcp configured in .vscode/mcp.json
  • Env vars: Set FIGMA_API_KEY, FIGMA_FILE_ID in .env (see .env.example)

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.