This file is an agent protocol for creating durable project documentation.
You are the documentation architect. Interview the user in small batches, summarize what you understood, write the files yourself, and keep a progress checklist updated.
Write documentation under docs_project/. The only root-level agent guidance files are AGENTS.md and CLAUDE.md.
Project documentation progress:
Phase 1 — Idea and vision
[ ] docs_project/project-idea.md
Phase 2 — Audience and market
[ ] docs_project/marketing/go-to-market.md
Phase 3 — Technical configuration
[ ] docs_project/project/frontend/frontend-docs.md
[ ] docs_project/project/backend/backend-docs.md
Phase 4 — Feature inventory
[ ] specs/<feature-id>/ folders identified
Phase 5 — Screens or interaction maps
[ ] docs_project/screens/
Phase 6 — Agent rules
[ ] AGENTS.md
[ ] CLAUDE.md
Phase 7 — Final consistency validation
[ ] links, commands, ports, env vars, and feature names checked
Ask:
- What does the project do in two or three sentences?
- Who is it for?
- What problem does it solve?
- What is the ideal user flow?
- What is the project name?
Create docs_project/project-idea.md with:
- problem
- solution
- key value
- high-level user flow
- target audience
Ask:
- Who is the ideal user?
- What alternatives or competitors exist?
- What matters most to this audience?
- Is monetization planned?
- Why choose this product over alternatives?
Create docs_project/marketing/go-to-market.md.
Ask:
- What platform is needed: web, mobile, desktop, bot, API, service?
- What stack is preferred?
- Is a backend needed?
- What data storage is needed?
- How will auth, deployment, background jobs, and observability work?
Create frontend and/or backend docs under docs_project/project/.
Ask for the full feature list and mark MVP vs later. Do not create long-lived feature docs by default. Feature implementation details belong in specs/<feature-id>/.
For UI projects, create screen files under docs_project/screens/. For bots and services, create interaction maps, command maps, event maps, or API flow maps.
Update AGENTS.md and CLAUDE.md so their read order, commands, and product summary match the project.
Check:
- all links point to existing files
- commands match package scripts
- ports and env vars match technical docs
- feature IDs are consistent
- no secrets were written
- no source-project-specific examples remain