CLAUDE.md - Development & Project Guidance
This file provides architectural guidelines and operational instructions for Claude Code and autonomous agent assistants working in this repository.
Commands & Workflows
- Development Server: npm run dev (runs local server on port 3000)
- Unit & Integration Tests: npm test or npx vitest run
- Type Checking: npm run check-types
- Production Build: npm run build
- Linting & Formatting: npx @biomejs/biome check --write .
Architectural Principles
- File-Based Routing: Application endpoints are mounted dynamically from pages/. Do not introduce manual Express router files.
- Defensive Programming: Validate every incoming payload using schemas before passing data to services.
- Zero Leaks: Never log private keys, passwords, or bearer tokens in stdout/stderr.
- Deterministic Testing: All tests must run idempotently without relying on external network dependencies.