AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
81/100
Scores the file, not the repository.Length
364 words
7 headings · 1 code blocksRepository
44k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Repository Guidelines23This file provides guidance to AI agents when working with code in this repository.45> **Single source of truth:** This file is a concise pointer document.6> All authoritative architecture, coding rules, and conventions7> live in **CLAUDE.md** at the project root. Read that file first.8> Use `Makefile`, `package.json`, and `pnpm-workspace.yaml` as the9> source of truth for the full command list.1011## Quick Reference1213### Architecture1415Go backend + monorepo frontend (pnpm workspaces + Turborepo) with shared packages.1617- `server/` - Go backend (Chi router, sqlc, gorilla/websocket)18- `apps/web/` - Next.js frontend (App Router)19- `apps/desktop/` - Electron desktop app20- `packages/core/` - Headless business logic (Zustand stores, React Query hooks, API client)21- `packages/ui/` - Atomic UI components (shadcn/Base UI, zero business logic)22- `packages/views/` - Shared business pages/components23- `packages/tsconfig/` - Shared TypeScript config2425### State Management (critical)2627- **React Query** owns all server state (issues, members, agents, inbox, workspace list)28- **Zustand** owns client/view state (view filters, drafts, modals, desktop tab state); current workspace identity is route-driven and only mirrored for platform plumbing29- All Zustand stores live in `packages/core/` - never in `packages/views/` or app directories30- WS events update React Query for server data; store writes are only for clearing client-owned pointers with a single responder/self-event guard3132### Package Boundaries (hard rules)3334- `packages/core/` - zero react-dom, zero localStorage, zero process.env35- `packages/ui/` - zero `@multica/core` imports36- `packages/views/` - zero `next/*`, zero `react-router-dom`, use `NavigationAdapter` for routing37- `apps/web/platform/` - only place for Next.js APIs3839### Database Migrations (hard rules)4041- Never add database foreign keys or cascading actions. Enforce relationships and perform dependent cleanup explicitly in the application layer, using transactions when the operation must be atomic.42- Every index created by a migration, including unique indexes and indexes on new tables, must use `CREATE [UNIQUE] INDEX CONCURRENTLY`. Keep each concurrent index build in its own single-statement migration file.4344### Commands4546```bash47make dev # Auto-setup + start everything48pnpm typecheck # TypeScript check49pnpm test # TS unit tests (Vitest)50make test # Go tests51make check # Full verification pipeline52```5354See CLAUDE.md for the authoritative rules and common commands.55
Also in multica-ai/multica
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| multica-ai/multicaCLAUDE.md · 44k | CLAUDE.md | setuptestlint-formatstyle+9 | 93/100 | today | |
| multica-ai/multicaapps/mobile/CLAUDE.md · 44k | CLAUDE.md | setupbuildlint-formatarch+9 | 81/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| bagisto/bagistoAGENTS.md · 28k | AGENTS.md | setupbuildteststyle+7 | 100/100 | 3 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-query-engine/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+5 | 98/100 | 2 days ago |
