A good prompt gets you surprisingly far when you build an app with AI. Then you open a new session, switch coding agents, or come back two weeks later, and the agent knows none of what you decided. Your chat history shouldn't be the only place that knows how your application works.

Markdown files that live next to your code fix that. They're plain text, any agent can read them, and they keep decisions, constraints and progress between sessions. Here are seven worth knowing, each with one example from a fictional wardrobe dashboard: users upload garment photos, AI suggests a category, they filter their inventory and save outfits. It's an illustration, not a built app.

These are conventions, not seven required files, and an agent won't read one just because it exists. You point it to the ones that matter.

PRD.md

What are we building? A product requirements document: the problem, who it's for, core features, constraints, success criteria and scope.

PROMPT / COPY-PASTE
# Wardrobe Dashboard
## Goal
Help users make better use of clothes they own.
## Core features
- Upload clothing photos
- Categorize garments with AI
- Search and filter wardrobe items
- Create and save outfits
## Out of scope
Shopping recommendations

Write down what you are not building. That line stops scope creep before the agent starts exploring features nobody asked for. For a small project, one short page is enough.

APP_FLOW.md

How will people use it? Screens, navigation, key interactions, and what happens when something goes wrong. It helps the agent connect separate features into one experience.

PROMPT / COPY-PASTE
Open wardrobe → Add garment → Upload photo
→ Review AI-suggested category → Save → View wardrobe

If categorization fails: let the user pick a category manually.
Never discard the upload.

Always include the failure path next to the happy one.

ARCHITECTURE.md

How will it work underneath? Components and their jobs, data model, storage, APIs, authentication, deployment and how data moves between them. Written down once, the agent stops choosing a new tool every session.

Decide before building where data lives, who can access it and which outside services receive it. In this sketch the vision service gets the photo, so the call happens on the server, where the API key stays out of the browser. The stack is one possible choice for this fictional app, not a recommendation.

IMPLEMENTATION_PLAN.md

How will we build it? Phases, dependencies and a definition of done for each, so you don't ask the agent for the whole app in one pass.

PhaseDeliverableDone when
1Data model, photo upload, garment cardsUploaded items persist after a refresh
2AI categorization, filters, searchTags can be corrected and AI errors are handled
3Create and save outfitsSaved outfits come back correctly

Generated code isn't a finished phase. A phase is finished when its check passes.

AGENTS.md

How should the AI work? Standing guidance for coding agents: conventions, repository layout, verification commands, security rules and when to ask first.

PROMPT / COPY-PASTE
# Project instructions
- Reuse existing components.
- Never expose secrets in frontend code.
- Do not use production data for testing.
- Run relevant tests after changes.
- Ask before changing the data model.
- Keep documentation aligned with code.

AGENTS.md is the instruction file Codex reads, and many other agents do too. Claude Code's own convention is CLAUDE.md. Claude Code v2.1.277 and later can read AGENTS.md directly, but by default only when no CLAUDE.md applies. To share one file across both tools, put @AGENTS.md at the top of your CLAUDE.md. Check which instruction files your agent loaded, because support varies by tool, version and settings.

Keep it short. These instructions guide behavior but don't enforce anything. Real protection comes from permissions and access controls.

TESTING.md

How do we know it works? Expected behavior, edge cases, security checks and regression scenarios, so "the build passed" isn't the only definition of done.

  • Upload a supported clothing image.
  • Reject unsupported file types.
  • Correct a wrong AI category by hand.
  • Confirm saved items persist after a refresh.
  • Verify one user can't open another user's wardrobe.
  • Handle a failed categorization request gracefully.

This file guides verification. It doesn't replace automated tests or manual checks, and it starts counting while you build, not before release.

NOW.md

Where did we leave off? A short checkpoint for work that spans sessions: current milestone, finished work, blockers, open decisions and next steps. NOW.md is a convention I like, not a standard.

PROMPT / COPY-PASTE
## Current focus
Phase 2: AI categorization
## Completed
- Garment upload and inventory dashboard
- Database integration
## In progress
- Category extraction
## Next
- Validate suggested tags
- Add manual category correction

It isn't automatic agent memory. Tell the agent to read it when you resume and update it when you stop, and keep it short and current instead of letting it grow into a transcript.

How they fit together

  • Before building: PRD.md, APP_FLOW.md and ARCHITECTURE.md define the product and the technical approach.
  • During building: IMPLEMENTATION_PLAN.md and AGENTS.md guide the work and the agent's habits.
  • Before shipping: TESTING.md defines how you verify.
  • Between sessions: NOW.md carries the state over.

It isn't a waterfall. You can write the plan and test criteria before any code, and instructions, tests and docs keep changing as the project does. Update them when the code changes, or they become wrong instead of helpful.

How much documentation you need

For a small project, combine requirements, user flow and architecture into one short project brief. Keep the instruction file your agent reads, write down how you'll verify the work on day one, and add a checkpoint if the work spans several sessions. Split files apart when complexity, collaboration or frequent changes make it worthwhile. More files don't mean better software.

Make important decisions once, save them, and give the agent the least context it needs to build consistently.

Starter prompt

Run this before any code gets written:

PROMPT / COPY-PASTE
Help me plan an application for [describe your idea]. Clarify the requirements, user flows, technical architecture, implementation phases and acceptance criteria. Create the minimum useful project documentation, including persistent agent instructions and a session checkpoint. Identify unresolved decisions before implementation. Do not write application code yet.

Review the proposed decisions, resolve the open questions, and then tell the agent it can start building.

Go deeper: Claude Code memory and CLAUDE.md · Codex AGENTS.md guide · How to Start a Big Project in Claude Code · Delegating to AI Agents