agentleFS
anasahmed07anasahmed07/doit/frontend/AGENTS.md

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

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
  1. Very specific:

    Use @/* path alias for imports (maps to ./src/*).

    line 50
  2. Very specific:

    Use Server Components by default.

    line 51
  3. Very specific:

    Use async params/searchParams in page components (Next.js 16 requirement).

    line 52
  4. Very specific:

    Place API proxy logic in src/lib/api-proxy.ts, not directly in route handlers.

    line 53
  5. Very specific:

    Use next-themes for dark mode via ThemeProvider.

    line 54
  6. Very specific:

    Follow ESLint config (eslint-config-next).

    line 56

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 migrations

Structure

  • 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 layout
    • globals.css - Global styles
  • src/components/ - React components
    • __tests__/ - Component tests
    • KanbanBoard.tsx, DraggableNoteGrid.tsx - Drag-and-drop views
    • NoteCard.tsx, NoteForm.tsx, NoteViewDialog.tsx - Note CRUD
    • ProjectCreationDialog.tsx, ProjectsContext.tsx - Project management
    • Sidebar.tsx, Navbar.tsx, Footer.tsx - Layout components
    • ThemeProvider.tsx, ThemeToggle.tsx - Dark mode support
  • src/lib/ - Shared utilities
    • auth.ts - Better Auth server config
    • auth-client.ts - Better Auth client config
    • api-proxy.ts - Backend API proxy helpers
    • types.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 async params/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-themes for dark mode via ThemeProvider.
  • Tests live in src/components/__tests__/ colocated with components.
  • Follow ESLint config (eslint-config-next).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.