agentleFS
keinsaasforeverkeinsaasforever/better-chatbot/AGENTS.md

better-chatbot

AGENTS.md1.2k starsChanged 14 months agoMITView on GitHub

  • Reads credentials
  • 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,773 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.

The file

We split this AGENTS.md into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep modules focused; avoid circular deps.

    line 26
  2. Very specific:

    Run locally: pnpm test and pnpm test:e2e (ensure app is running or let Playwright start via config).

    line 31
  3. Distinctive:

    Add tests for new features and bug fixes.

    line 32
  4. Very specific:

    Before opening PR: pnpm check (lint+types+tests) should pass.

    line 38
  5. Distinctive:

    If using DB/Redis locally, start services via Docker scripts or your own stack.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Repository Guidelines

Project Structure & Module Organization

  • App code lives in src.
    • src/app (Next.js routes, API, middleware)
    • src/components (UI; reusable components in PascalCase)
    • src/lib (helpers: auth, db, ai, validations, etc.)
    • src/hooks (React hooks: useX)
  • Assets in public/. End‑to‑end tests in tests/. Scripts in scripts/. Docker files in docker/.

Build, Test, and Development Commands

  • pnpm dev — Run the app locally (Next.js dev server).
  • pnpm build / pnpm start — Production build and run.
  • pnpm lint / pnpm lint:fix — ESLint + Biome checks and autofix.
  • pnpm format — Format with Biome.
  • pnpm test / pnpm test:watch — Unit tests (Vitest).
  • pnpm test:e2e — Playwright tests; uses playwright.config.ts webServer.
  • DB: pnpm db:push, pnpm db:studio, pnpm db:migrate (Drizzle Kit).
  • Docker: pnpm docker-compose:up / :down to run local stack.

Coding Style & Naming Conventions

  • TypeScript everywhere. Prefer zod for validation.
  • Formatting via Biome: 2 spaces, LF, width 80, double quotes.
  • Components: PascalCase.tsx; hooks/utilities: camelCase.ts.
  • Co-locate small module tests next to code; larger suites under tests/.
  • Keep modules focused; avoid circular deps; use src/lib for shared logic.

Testing Guidelines

  • Unit tests: Vitest, filename *.test.ts(x).
  • E2E: Playwright under tests/, filename *.spec.ts.
  • Run locally: pnpm test and pnpm test:e2e (ensure app is running or let Playwright start via config).
  • Add tests for new features and bug fixes; cover happy path + one failure mode.

Commit & Pull Request Guidelines

  • Conventional Commits: feat:, fix:, chore:, docs:, etc. Example: feat: add image generation tool.
  • Branch names: feat/…, fix/…, chore/….
  • PRs: clear description, linked issues, screenshots or terminal output when UI/CLI changes; list test coverage and manual steps.
  • Before opening PR: pnpm check (lint+types+tests) should pass.

Security & Configuration Tips

  • Copy .env.example to .env; never commit secrets. For local HTTP use NO_HTTPS=1 or pnpm build:local.
  • If using DB/Redis locally, start services via Docker scripts or your own stack.

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.