agentleFS
martinbouvet2000-techmartinbouvet2000-tech/claude-code-stage-4/skills/web-stage-4/templates/AGENTS.md

claude-code-stage-4 / templates

AGENTS.md0 starsChanged 2 months agoMITView on GitHub

  • Reads credentials

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
AGENTS.md
<!-- Keep the "BEGIN/END:nextjs-agent-rules" block generated by Next as is (next dev recreates it if missing). Paste this template BELOW that block. Keep it short: only what differs from defaults. No tutorials. -->

<Project name>

<One sentence: for whom, which problem, which promise.>

Stack

Next.js 16 (App Router, src/) · strict TypeScript (noUncheckedIndexedAccess) · Tailwind v4 (@theme in src/app/globals.css) · shadcn/ui · <Supabase | Prisma + Postgres> · Vercel · Biome · Vitest · Playwright + axe · Sentry.

Commands

GoalCommand
Devnpm run dev
Typesnpm run typecheck
Lint + formatnpm run lint / npm run lint:fix
Unit testsnpm run test
E2E (prod build, port 3100)npm run test:e2e
Everything (definition of done)npm run check && npm run test:e2e
Dead code / unused depsnpm run knip

Architecture

  • src/app/ routes (Server Components by default; "use client" only at the lowest interactive level).
  • src/lib/dal/ data access layer: EVERY DB read/write goes through here, with an authz check (verifySession()).
  • src/app/**/actions.ts server actions: Zod schema.safeParse() on the first line, then the DAL.
  • src/env.ts is the only source of process.env. src/proxy.ts sets security headers + nonce-based CSP.
  • docs/adr/ decisions; docs/specs/<feature>/ spec → plan → tasks; docs/design/anti-ai-look.md visual rules.

Conventions (≠ defaults)

  • Colors, radii, type: ONLY through @theme tokens (bg-primary, rounded-lg…). Never hard-coded hex or bg-[#…].
  • UI components: npx shadcn@latest add <x> then adapt to the tokens; no competing UI library.
  • Conventional Commits (feat:, fix:, chore:…), small and frequent.
  • New table: versioned migration + RLS + policies in the same file.

Forbidden

  • Reading/writing .env* (blocking hook); committing a secret.
  • prisma db push outside a throwaway prototype; SQL applied by hand in production.
  • --no-verify, disabling a test or a lint rule to "make it pass".
  • any, @ts-ignore without a justifying comment.
  • Production push/deploy, destructive migration, system dependency install: ask the owner first.

Known pitfalls

  • CSP nonce ⇒ dynamic root layout (await connection()). New external API ⇒ add it to connect-src in src/proxy.ts.
  • .npmrc min-release-age=3: a package published < 3 days ago is invisible (ERESOLVE "found X@undefined") ⇒ pin the previous version.

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.