A starter repo built for coding agents as much as for humans. TypeScript, Fastify, Zod. The layout follows one constraint: an agent's context window is small, so the always-loaded files stay short and everything else loads on demand, runs as a hook, or gets verified.
always loaded AGENTS.md ──@──▶ CLAUDE.md (~120 lines total)
on demand .claude/skills .claude/rules docs/
enforced format hook · pre-commit secret scan · CI
verified make check = lint + typecheck + test
remembered MEMORY.md · ERRORS.md · ROADMAP.md · docs/decisions/
The heart of AGENTS.md:
- Ask before assuming. Restate the deliverable, then act. Simplest solution first, surgical changes only.
- Never guess external facts. Verify data freshness - which DB, which env, is the process current.
make checkgreen before anything is called done. Show the output.- Prose follows Orwell's six rules. No "comprehensive", no "robust", no "successfully".
- No package published less than 24h ago.
Needs Node >= 22 (.nvmrc). Click Use this template on GitHub, or:
git clone https://github.com/nada-r/agent-template.git my-project
cd my-project && rm -rf .git && git init
make setup # deps + git hooks
make check # must be green before you touch anythingAfter scaffolding:
package.json- name and description.AGENTS.md- rewrite the project overview; prune rules that don't apply.MEMORY.md+docs/architecture.md- describe the real system; delete every(example)entry.SECURITY.md- fill the vulnerability-reporting placeholder.- Rewrite this README - your project ships its own, not the template's.
docs/PLAYBOOK.md- keep for the team, or delete.
AGENTS.md- the rules, readable by any agent (open standard).CLAUDE.mdimports it and adds the workflow..claude/- commands (/commit-push-pr,/fix-issue,/interview-spec,/update-memory), subagents (fresh-context sessions that review or verify), skills (playbooks loaded only when used), rules (loaded only when matching files are touched).MEMORY.md,ERRORS.md,ROADMAP.md- what the agent learns, breaks, and aims for. The agent updates them after each task (/update-memory) and reads ERRORS.md before debugging anything familiar. Dated entries;(example)rows show the format.SECURITY.md- the security model: secret scanning at three layers (pre-commit,make secrets, CI), the 24h package cooldown, the agent permission allowlist.docs/PLAYBOOK.md- why each file exists, with sources. Delete it if you want a lean repo.docs/stack-variants.md- Python, Rust/Anchor, Prisma, monorepo, Next.js adaptations.src/routes/echo.ts- the pattern to copy for new endpoints.make helplists the commands.
MIT license.