⚡ PromptLoot

Home › AI Agents

Six-File AI Dev Team Starter Kit: SPEC, TASKS & Agent Roles

Six copy-paste files (CLAUDE.md, SPEC, TASKS, NOTES, ARCHITECT, REVIEWER) that turn Claude Code, Codex, or Cursor into a small dev team: spec, one task, review.

Added

Create these six files. Edit the bracketed parts. Keep each one short; the agent reads them every session.

===== CLAUDE.md (or AGENTS.md) =====
# [PROJECT NAME]
Read in this order at the start of every session: SPEC.md, TASKS.md, NOTES.md.
- Work on ONE task from TASKS.md at a time: the first one marked [ ] whose dependencies are done.
- Before coding, restate the task's "done when" line. After coding, run [TEST COMMAND] and show the result.
- Only edit files listed in the task. If you need others, stop and ask.
- When done: tick the task [x], add a 1-3 line entry to NOTES.md, and stop. Do not start the next task.
- For design questions, follow agents/ARCHITECT.md. Before marking done, run the agents/REVIEWER.md checklist.

===== SPEC.md =====
## What we're building
[2-3 sentences: the product, who it's for, the one job it does]
## Must have (v1)
- [feature] - done when [observable behavior]
## Not in v1
- [things the agent must not build yet]
## Constraints
Stack: [ ] · Hosting: [ ] · Never: [store passwords in plain text, call paid APIs in tests, ...]

===== TASKS.md =====
Format: - [ ] T# Title | files: ... | depends: T# | done when: ...
- [ ] T1 [Project skeleton runs locally] | files: [ ] | depends: none | done when: [command] prints [ ]
- [ ] T2 [ ] | files: [ ] | depends: T1 | done when: [ ]
(Keep tasks small enough to finish and test in one session.)

===== NOTES.md =====
Newest first. Decisions, gotchas, and anything the next session must know.
- [YYYY-MM-DD] T#: [what changed, why, anything surprising]

===== agents/ARCHITECT.md =====
You are the architect. You plan; you do not write feature code.
- Turn a SPEC.md item into 3-7 tasks in TASKS.md format, each with files and a testable "done when".
- Prefer the simplest design that meets SPEC.md. Note any trade-off in NOTES.md.
- Flag anything in SPEC.md that is vague or contradictory before planning around it.

===== agents/REVIEWER.md =====
You are the reviewer. Review the diff for the current task in a FRESH session, without the builder's chat history.
Check, and answer PASS or FAIL with specifics:
1. Does it meet the task's "done when"? Run [TEST COMMAND] yourself.
2. Did it touch files outside the task? Any dead code, duplicates, or TODOs left?
3. Secrets, auth, or input-validation problems?
4. Tests that only check mocks they set up themselves?
On FAIL, write the exact fix needed. After 2 FAILs on the same task, stop and ask the human.

Workflow: ARCHITECT fills TASKS.md -> builder does one task -> REVIEWER checks in a fresh session -> human merges.

How to use it

  1. Click Copy template.
  2. Paste into ChatGPT, Claude, Grok, Cursor, or your agent framework.
  3. Replace the [BRACKETED] parts with your details.

Pairs well with: AGENTS.md Starter Template for Claude Code, Codex & Cursor

Sponsor this page · Reach builders who use AI daily. Get details

FAQ

What files does a Claude Code project need?

At minimum a rules file (CLAUDE.md or AGENTS.md) that says how to work. This kit adds a spec of what to build, a task list with testable done checks, a notes file for decisions, and two role files: an architect who plans and a reviewer who checks the work.

Why review in a fresh session?

A reviewer that shares the builder's chat history tends to accept the same assumptions and mistakes. A new session that only sees the spec, the task, and the diff is a much stricter check, much like a second engineer reviewing a pull request.

Do I need a multi-agent framework for this?

No. The roles are just Markdown files. You can run them as Claude Code subagents, separate Codex or Cursor chats, or one agent that you switch between roles by telling it which file to follow.

How is this different from HANDOFF.md?

HANDOFF.md moves one in-progress task between agents or sessions. This kit is the project's permanent structure: what to build, the task queue, and who plans and reviews. Use HANDOFF.md alongside it when a task is interrupted halfway.

Get 3 new templates every week

Free. Unsubscribe anytime.

Related templates

Multi-Agent Crew Setup (Planner/Worker/Critic)

A three-role agent pattern that produces better results than one agent.

HANDOFF.md: Move Tasks Between Claude Code, Codex & Cursor

A HANDOFF.md prompt that makes your current coding agent write a short, exact handoff file so a fresh session or a different agent can pick up the task without re-reading everything.

End-of-Session Review: Decision Log & Rules File Updates

Run before /clear or closing a session: the agent logs decisions to docs/decisions.md, notes where it stalled, and proposes small rules-file fixes so the next session doesn't repeat mistakes.

AI Agent Harness Starter Pack: Rules, Hooks, Status & Verify

Set up a simple agent harness: a short rules file, a status file the agent keeps current, a verify command, and hooks that block 'done' until checks pass.

Browse all AI Agents templates

New on PromptLoot

Check Current Docs First: Stop Agents Using Outdated APIs

Rules that make Claude Code, Cursor, and Codex check your installed versions and current docs before calling any API, cite the version, and flag deprecations.

Minimal Diff Rules: Stop AI Agents Rewriting Unrelated Code

Rules for Claude Code, Cursor, and Codex: change only what you asked, no drive-by renames, refactors, or reformatting, and list every changed file.
PromptLoot Pro Pack · 200+ advanced templates, agent workflows, and Cursor rules bundles. Coming soon