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
- Very specific: line 26
Keep modules focused; avoid circular deps.
- Very specific: line 31
Run locally: pnpm test and pnpm test:e2e (ensure app is running or let Playwright start via config).
- Distinctive: line 32
Add tests for new features and bug fixes.
- Very specific: line 38
Before opening PR: pnpm check (lint+types+tests) should pass.
- Distinctive: line 42
If using DB/Redis locally, start services via Docker scripts or your own stack.
≈ “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.
Files
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 intests/. Scripts inscripts/. Docker files indocker/.
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; usesplaywright.config.tswebServer.- DB:
pnpm db:push,pnpm db:studio,pnpm db:migrate(Drizzle Kit). - Docker:
pnpm docker-compose:up/:downto run local stack.
Coding Style & Naming Conventions
- TypeScript everywhere. Prefer
zodfor 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/libfor shared logic.
Testing Guidelines
- Unit tests: Vitest, filename
*.test.ts(x). - E2E: Playwright under
tests/, filename*.spec.ts. - Run locally:
pnpm testandpnpm 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.exampleto.env; never commit secrets. For local HTTP useNO_HTTPS=1orpnpm build:local. - If using DB/Redis locally, start services via Docker scripts or your own stack.
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.

