Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.23 KB

File metadata and controls

32 lines (23 loc) · 1.23 KB

Repository Conventions (Happier monorepo)

This file provides cross-cutting guidance for Claude Code (claude.ai/code) when working in this monorepo.

Package-specific guidance lives in:

  • cli/CLAUDE.md (Happier CLI)
  • expo-app/CLAUDE.md (Expo app)
  • server/CLAUDE.md (Server)

Naming conventions (shared)

These are repo-wide defaults. If a package-specific CLAUDE.md conflicts with this file, the package-specific file wins (e.g. the server has its own directory naming conventions).

Folders

  • Buckets: lowercase (e.g. components, hooks, utils, modules, types)
  • Feature folders: camelCase (e.g. newSession, agentInput)
  • Avoid _folders except special/framework files and __tests__
  • Prefer not to create a folder that contains only a single file (unless it groups platform variants like Thing.ios.tsx/Thing.web.tsx, or it’s clearly about to grow).

Files

  • React components: PascalCase.tsx
  • Hooks: useThing.ts
  • Plain TS modules: camelCase.ts

Allowed _*.ts markers (organization only)

Allowed only inside “module-ish” directories (e.g. modules/, ops/, phases/, helpers/, domains/):

  • _types.ts
  • _shared.ts
  • _constants.ts

No other _*.ts file names should be introduced.