Before you ask an AI to build your app: the requirements interview (free templates)
It has never been easier to ask an AI assistant to build you an app. Type "make me a booking app for our club" and, a minute later, you have screens, buttons and a few hundred lines of code. What you usually don't have is the app you needed. The code isn't always the problem. More often, nobody worked out what the software actually had to do.
The fix is cheap and takes about half an hour: before any design or code, let the assistant interview you, then turn your answers into a short requirements document you can test against later. This note walks through that first step, with a free sample from our handbook Prompt the Prompt: Building Software.
Download the free sample (US Letter, PDF)
A4 version (PDF)
3 pages: the interview prompt, the requirements-document prompt and the "challenge it" prompt; a short checklist; and the BRIEF and HANDOFF project-file templates with a handoff prompt. Read on screen or print at 100%. No sign-up needed.
Describe the problem, not the solution
Start with what happens today, not with "build me an app". The running example in the book is a volunteer-run tool library. "Volunteers lose track of who has the ladder" is a better starting point than "make a booking app with a calendar", because it leaves room for a simpler answer, and sometimes for no new software at all.
1. Let the assistant interview you
Give the assistant the situation in a few sentences and ask it to interview you, one question at a time, before anything is designed. A list of twenty questions is tiring and the hard ones get skipped; one at a time, it can choose the next question from your last answer. Tell it to stay away from technology for now. That choice comes later, once you know what the thing must do.
"I don't know" is a perfectly good answer. Ask the assistant to note it as an open question. Those notes show you where something is still undecided, before anyone builds on a guess. (Prompt 1 in the sample.)
2. The questions people skip
Whatever the assistant asks, make sure the interview covers these five. They are the ones most often left out, and the most expensive to discover late:
- Who can see and change what? Even the tool library has roles: members, volunteers and an administrator.
- What personal data is involved, and do you really need it? Every field you collect is one you have to protect.
- What happens on a bad day? A wrong entry, a double booking, a lost phone, the server down on a Saturday morning.
- Who maintains it after launch? If the answer is "nobody", pick the simplest possible build.
- What is not included? Writing down what you won't build keeps the project from growing.
3. Turn the answers into requirements you can test
Next, ask for a requirements document of under two pages: the goal and the users; must, should, could and won't-have items, each written as "[role] can [action] so that [reason]"; what data is stored and who sees it; constraints; and open questions. (Prompt 2.)
The most valuable part is the acceptance criteria: for each must-have, a concrete check that a non-programmer could carry out by trying the software, including at least one failure case. In the tool library, "a volunteer can record a loan" comes with "a tool that is already out cannot be lent again, and the volunteer sees who has it". Later, when the assistant says a feature is done, these are how you check it without reading the code.
Tell the assistant not to invent requirements you didn't state. Anything it thinks is missing belongs under open questions, where you decide.
4. Have a fresh chat challenge them
Before designing anything, paste the requirements into a new chat that didn't write them and ask it to act as an experienced product manager: find contradictions, vague or untestable items, missing failure cases, data you may not need, and features to drop. Ask it to rank them by how much trouble each would cause. (Prompt 3.) A chat that wrote something tends to defend it; a fresh one has no reason to. You still decide on every point.
The sample's checklist, "Requirements are ready when", tells you when to stop and move on to design.
5. Keep the project's memory in files, not in the chat
An assistant remembers nothing between chats, and less than you'd expect within a long one. So keep a few short plain-text files in the project folder. The sample includes two of them. The BRIEF is one page on what you're building and for whom, with a block of project rules you paste at the start of every chat (work only on the step given, no new libraries without asking, no real secrets or personal data, say when unsure whether something exists). The HANDOFF note is written at the end of every chat so the next one can carry on: where things stand, what's next, decisions, known problems, a file map and warnings. (Prompt 4 and the two templates.)
That last rule about unsure answers matters more than it looks. Assistants sometimes suggest software libraries that don't exist; a 2025 study of code-generating models found that a noticeable share of the packages they suggested were invented, and invented names can be exploited by people who publish harmful packages under them. Check anything the assistant adds before you install it.
What the full handbook adds
Prompt the Prompt: Building Software ($10) follows the same tool-library project from this first interview to launch: deciding whether to build at all, choosing how, a small design with a first threat model, a build plan in small tested steps with one step per fresh chat, debugging without going in circles, working with existing code, tests, code review in a chat that didn't write the code, audits for security, privacy, performance, reliability and maintainability, and a pre-launch checklist. It's a fixed-layout PDF (71 pages in US Letter, 70 in A4; not EPUB or Kindle) with 29 copy-ready prompts, all the checklists and seven project-file templates, also as a plain-text file. It works with any chat or coding assistant and any programming language.
It is educational, not professional or security advice. If your software takes payments, stores personal or health data, or has public accounts, have it reviewed by a qualified professional before launch; the book shows how to prepare for that review.
New to working with AI assistants in general? Start with the free templates in Prompt engineering for beginners, or the general handbook Prompt the Prompt.
If you'd like a short note when a new tool joins the shelf, there's a sign-up in the footer of this page. It's occasional, and you can unsubscribe at any time.
The study linked above is named only to identify the source; Mothleaf has no affiliation with its authors and is not paid by anyone mentioned here.
Mothleaf is a small shop of ebooks, printable tools and original designs. You can read how it is run on the About page.