draft_v0
CLAUDE.md0 starsChanged 8 months agoMITView on GitHub
The following specialized agents can be invoked for specific tasks:
- Reads credentials
- Installs packages
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/instructions/copilot-instructions.mdCopilot instructions
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
- Distinctive: line 8
#NoMessLeftBehind: - Never leave broken builds.
- Very specific: line 40
Use ref as a regular prop
- Very specific: line 42
Use React.lazy + <Suspense> for code splitting
- Distinctive: line 50
Never expose internal errors to clients
- Very specific: line 131
Use DSAi design tokens (--dsai-* CSS variables) and Bootstrap utility classes for styling.
- Very specific: line 135
Code Connect: Create .figma.tsx files to map components to Figma nodes
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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
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
anyunless 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), nopropTypes(removed), noReact.FC(removed) - Use
refas 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:
| Agent | Purpose |
auto-error-resolver | Fix TypeScript compilation and build errors systematically |
code-architecture-reviewer | Review code for best practices and architectural consistency |
code-refactor-master | Refactor code for better organization and maintainability |
documentation-architect | Create and enhance documentation |
plan-reviewer | Review development plans before implementation |
principal-engineer | First-principles engineering analysis (Carmack-style) |
refactor-planner | Analyze code structure and create refactoring plans |
web-research-specialist | Research 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 :3001Available 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 clientPlugin
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-v0Project 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 testsAdding 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.tsxfiles to map components to Figma nodes - MCP Servers:
figma-developer-mcpandfigma-console-mcpconfigured in.vscode/mcp.json - Env vars: Set
FIGMA_API_KEY,FIGMA_FILE_IDin.env(see.env.example)
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.

