AGENTS.md
For detailed documentation about this repository, see REPO.md.
Development Guidelines
Code Style
- Run
bun run lintbefore committing - this uses Biome for linting - Run
bun run formatto format code with Biome - Do NOT add comments to code unless explicitly requested
- Follow existing code patterns and conventions
Commands
bun run dev- Start development server with Turbopackbun run build- Build for productionbun run lint- Run Biome linter (check code)bun run format- Format code with Biomebun run deploy- Deploy to Cloudflare Workers
Tech Stack Notes
- Next.js 15 with App Router
- React 19
- TypeScript throughout
- Convex for backend (queries in
convex/directory) - Clerk for authentication (use
useConvexAuth()hook, not Clerk'suseAuth()) - shadcn/ui components in
components/shadcn/ - Radix UI imports use pattern:
import { ComponentName as Primitive } from "radix-ui" - Zod for validation
Project Structure
app/- Next.js pages (App Router)components/- Reusable React componentsconvex/- Backend functions and schemaactions/- Server Actionsutils/- Utility functions
Important
- Never commit secrets or API keys
- Always test changes before committing
- Use
Authenticated,Unauthenticated,AuthLoadingfrom Convex, not Clerk - All Convex functions must check
ctx.auth.getUserIdentity()