claude-code-stage-4 / templates
AGENTS.md0 starsChanged 2 months agoMITView on GitHub
- Reads credentials
In this repository3 other files it gives its agents.
- skills/web-stage-4/templates/CLAUDE.mdCLAUDE.md
- skill-routerSkill
- web-stage-4Skill
The file
We found no rules to list in this file: it reads as prose or reference rather than instructions.
Files
<!-- 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
| Goal | Command |
| Dev | npm run dev |
| Types | npm run typecheck |
| Lint + format | npm run lint / npm run lint:fix |
| Unit tests | npm 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 deps | npm 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.tsserver actions: Zodschema.safeParse()on the first line, then the DAL.src/env.tsis the only source ofprocess.env.src/proxy.tssets security headers + nonce-based CSP.docs/adr/decisions;docs/specs/<feature>/spec → plan → tasks;docs/design/anti-ai-look.mdvisual rules.
Conventions (≠ defaults)
- Colors, radii, type: ONLY through
@themetokens (bg-primary,rounded-lg…). Never hard-coded hex orbg-[#…]. - 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 pushoutside a throwaway prototype; SQL applied by hand in production.--no-verify, disabling a test or a lint rule to "make it pass".any,@ts-ignorewithout 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 toconnect-srcinsrc/proxy.ts. .npmrcmin-release-age=3: a package published < 3 days ago is invisible (ERESOLVE "found X@undefined") ⇒ pin the previous version.
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.

