doit / frontend
AGENTS.md1 starsChanged 11 months agoApache-2.0View on GitHub
This file provides guidance to AI agents (Claude, Gemini, etc.) when working with code in this directory.
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- .claude/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- doit-cli/AGENTS.mdAGENTS.md
- backend/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- doit-cli/CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- better-auth-best-practicesSkill
- containerize-appsSkill
- create-auth-skillSkill
- fastapi-backendSkill
- frontend-designSkill
- helm-chartsSkill
- kagentSkill
- kubectl-aiSkill
- kubernetes-deployment-validatorSkill
- kubernetes-essentialsSkill
- mcp-builderSkill
- minikubeSkill
- nextjs-16Skill
- shadcn-uiSkill
- skill-creatorSkill
- vercel-react-best-practicesSkill
- web-design-guidelinesSkill
- websocket-engineerSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
Use @/* path alias for imports (maps to ./src/*).
- Very specific: line 51
Use Server Components by default.
- Very specific: line 52
Use async params/searchParams in page components (Next.js 16 requirement).
- Very specific: line 53
Place API proxy logic in src/lib/api-proxy.ts, not directly in route handlers.
- Very specific: line 54
Use next-themes for dark mode via ThemeProvider.
- Very specific: line 56
Follow ESLint config (eslint-config-next).
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.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
AGENTS.md
This file provides guidance to AI agents (Claude, Gemini, etc.) when working with code in this directory.
Environment
- Framework: Next.js 16 (React 19, App Router)
- Language: TypeScript 5.0+
- Styling: Tailwind CSS 4
- Auth: Better Auth (client + server)
- Drag & Drop: Dnd-kit (core + sortable)
- Testing: Vitest + Testing Library
- Package Manager: npm
Commands
npm install # Install dependencies
npm run dev # Start Next.js dev server
npm run build # Production build
npm run start # Start production server
npm run lint # Run ESLint
npm run test # Run vitest
npm run test:watch # Run vitest in watch mode
npm run auth:generate # Generate Better Auth schema
npm run auth:migrate # Run Better Auth migrationsStructure
src/app/- Next.js App Router pages and layouts(auth)/- Auth route group (sign-in, sign-up)(dashboard)/- Dashboard route group (dashboard, notes, projects)(website)/- Public website route group (landing page)api/- API routes (auth, categories, dashboard, notes, projects)layout.tsx- Root layoutglobals.css- Global styles
src/components/- React components__tests__/- Component testsKanbanBoard.tsx,DraggableNoteGrid.tsx- Drag-and-drop viewsNoteCard.tsx,NoteForm.tsx,NoteViewDialog.tsx- Note CRUDProjectCreationDialog.tsx,ProjectsContext.tsx- Project managementSidebar.tsx,Navbar.tsx,Footer.tsx- Layout componentsThemeProvider.tsx,ThemeToggle.tsx- Dark mode support
src/lib/- Shared utilitiesauth.ts- Better Auth server configauth-client.ts- Better Auth client configapi-proxy.ts- Backend API proxy helperstypes.ts- Shared TypeScript types
src/proxy.ts- Next.js 16 proxy (replaces middleware.ts)
Code Standards
- Use
@/*path alias for imports (maps to./src/*). - Use Server Components by default; add
"use client"only when needed. - Use
asyncparams/searchParams in page components (Next.js 16 requirement). - Place API proxy logic in
src/lib/api-proxy.ts, not directly in route handlers. - Use
next-themesfor dark mode viaThemeProvider. - Tests live in
src/components/__tests__/colocated with components. - Follow ESLint config (
eslint-config-next).
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.

