Plan first, then prompt: starting a project with AI
Before an AI writes code for you, the workflow belongs in your head. Three questions before the first prompt, small steps and what the GDPR requires.
In short
An AI coding tool decides everything you do not tell it. So before the first prompt, settle three questions: who uses the application, which data arise and who may see them, and what happens step by step? Then let the AI plan and build in small steps that you can check one at a time.
Auf Deutsch lesen: deutsche Fassung
Video· in German· 3:46
Plan first, then prompt: how to start a project with AI
Clicking the image or a chapter loads the video from YouTube. Your browser then sends data to Google, such as your IP address. Until then there is no connection to YouTube. More in the privacy policy.
How the episode is made: the voice is an AI clone of my own voice and the music is AI-generated, both produced locally on my computer. Ronny, the drawn robot, has no voice; his lines appear as text on screen. I am responsible for the content and the facts.
More episodes on YouTube: channel “Der KI-AUDITOR” · playlist “Coding with AI”
“Build me an app for my sports club.” That was all Ronny, the drawn robot on my channel, needed. Shortly afterwards he reports: done. With login, with chat, even with a shop. Only one thing is missing, the sign-up for training. And every member can see everyone else’s mobile number. That is how my Coding with AI series begins, in a video in German. In it, we build a small app for a sports club together, and an AI does the programming. You learn how to lead it so that something secure comes out at the end. It works the same way for a small tool for your company. The first episode manages without a single line of code, and so does this article.
Why the brief was Ronny’s problem
The AI can program. The problem was the brief. An AI coding tool is like a very fast apprentice who never asks questions. Everything you do not say, it decides for itself. And it guesses, with full conviction. A real apprentice would get an induction and a trainer who checks the work. With the AI, you take on both roles. In Ronny’s case it guessed that a shop matters more than the training sign-up and that everyone may see every number.
One vendor sees it similarly. The best-practice notes of a widely used coding agent say, in essence: when a session goes differently than expected, it almost always comes down to one of a few causes. First on the list: the agent built something different from what you had in mind, because it lacks information it cannot read from the code. Decisions from a meeting and processes that exist only in one person’s head are named explicitly. The advice there: say up front what “fixed” looks like.
The flip side is interesting. The same documentation describes that the agent tends to read a request conservatively and build the smallest thing that satisfies it, because it cannot see how much you were hoping for. Ronny built too much, the real agent tends to build too little when in doubt. Both have the same cause. Without a plan you get the tool’s guess, and it matches your needs only by chance.
Incidentally, the real damage in Ronny’s app is not a programming error. The code does what it is supposed to do. A requirement was missing: who may see which data. No AI can guess that, someone has to decide it.
Three questions before the first prompt
The workflow belongs in your head before it goes into the prompt. I always settle three questions beforehand:
- Who uses the app? For the club app, that is the coach, the members and the parents of the children. Each group needs something different and may do something different.
- Which data arise, and who may see which? Here they are names, mobile numbers and children’s birthdays. Those are personal data. So I decide right now: the coach sees her group, a member sees only themselves.
- What happens step by step? The coach creates a session. A member signs up or cancels. The coach sees who is coming.
I have the workflow clearly in my head, and I know what to watch out for at each step. At most I jot down a few bullet points on the computer. For the second question a small table helps, because it shows gaps immediately:
| Who | may see | may change |
|---|---|---|
| Coach | Sessions and the members of her group with their sign-ups and cancellations | Sessions of her group |
| Member | Sessions of their own group and their own data | Their own sign-up or cancellation and their own data |
| Parents | Sessions and data of their own child | Sign-up or cancellation for their own child |
At work the three questions look exactly the same. Take a holiday planner for the team. Who uses it? Employees, team lead, perhaps HR. Which data arise? Names, days of leave, perhaps sick days, and those must never appear in the same view as the holidays. What happens step by step? Request, check by the team lead, approval, entry in the calendar. If you cannot explain one of these steps, it is not clear to the AI either.
If I cannot explain the workflow myself, the AI cannot build it either.
What the GDPR and ISO/IEC 27001 say about it
The second question is not a matter of style. Article 25 GDPR requires data protection by design and by default. Under paragraph 1, the controller implements appropriate measures already at the time of the determination of the means for processing, in other words while planning, and not only once the system is running. The measures are meant to implement principles such as data minimisation from Article 5(1)(c) effectively: only as much data as the purpose needs.
Paragraph 2 reads as if someone had seen Ronny’s app. By default, only the data necessary for each specific purpose may be processed. That applies to the amount, the extent of processing, the storage period and the accessibility. And in particular, personal data must not by default be made accessible without the individual’s intervention to an indefinite number of people. A member list in which everyone sees every mobile number is exactly that default.
For businesses with an information security management system, ISO/IEC 27001:2022 comes on top. Annex A 8.26 requires that, when an application is developed or acquired, its security requirements are worked out, written down and approved. 8.25 requires rules for secure development, 8.29 security testing during development and acceptance. And 8.30 requires outsourced development to be directed, monitored and reviewed. An AI agent is not a contractor in the contractual sense. Still, the stance of 8.30 fits exactly: you set the direction, you watch, you check the result.
Which information counts as personal data in the first place is explained in the first episode of my data protection series:
What personal data really areThe plan becomes the first prompt, in small steps
Only now does the prompt come. And not as one big throw either. I give the AI the whole plan and tell it, in essence: plan the work and then proceed step by step, first only with the sessions. That way every change stays small enough for me to check. Ronny is disappointed. Only sessions? Yes, Ronny. Only sessions for now.
An example of how such a first brief can sound, freely worded:
“Here is the plan for a club app with roles, data and workflow. Read it, ask me about anything that is unclear, and propose an order for the work steps. Do not build anything yet. After that we only implement step 1: creating and showing sessions, without sign-up and without contact details.”
Many coding agents support this way of working with a dedicated planning mode. The documentation of the agent mentioned above says: in plan mode it researches the code and proposes changes without making them. Except in terminal sessions where skipping all permission checks is available, edits stay blocked until you approve the plan. For cases in which you do not yet know exactly what you want, the same documentation recommends the reverse route: let the agent interview you until a specification emerges, write it to a file and start the build in a fresh session with a written definition of when the work is done.
Both routes end up in the same place. At the start there is a plan that a person has read and approved. Then come small steps, and after each step you check whether it does what the plan says.
After each step I ask myself four things:
- Does the step do what the plan says, and only that?
- Did the AI build something that was not in the plan, such as a shop?
- Are data now being stored that were not there before?
- Can a role see or change more than the table allows?
Sounds slow, but it is faster
Sounds slow? It isn’t. Whatever you do not settle beforehand, you clean up afterwards. In my experience, cleaning up finished code takes much longer than a few minutes of thinking first. Anyone who decides afterwards that members in Ronny’s app may only see themselves has to touch every view, every query and every export individually. And has to hope not to miss a single spot.
Three spots are particularly easy to miss, even when the views are already right. The export that was meant for the coach and still hands out the whole member list. The search function that finds names from other groups. And the test data: anyone who loads the real member list while trying things out has real numbers in an environment that nobody protects. ISO/IEC 27001 dedicates a control to exactly this, Annex A 8.33: test data have to be chosen with care, protected and managed. For the club app that simply means invented names and invented numbers until the plan is settled and checked.
As an auditor I see a second benefit. The three answers become your test basis later. “A member sees only themselves” is a sentence you can test: log in as a member and try to find someone else’s number. Without the sentence there is nothing to test against, and then whatever the AI built counts as correct. And do not let the same AI that built it do the checking.
To avoid a false impression: I do not mean a forty-page requirements specification. Bullet points are enough. For a throwaway prototype without real data, you may simply experiment. As soon as real people enter their data, the three questions are mandatory.
In the series I work with three kinds of tools: an AI agent in the terminal, a coding agent from another vendor and a local AI on your own computer. Which tool programs where, and which data leave your computer in the process, is the topic of the next episode. The plan before it is the same for all of them.
When it pays to build your own AI tool, and where security gets stuck along the way:
Build your own AI tool or buy oneRemember: the AI writes the code, but the thinking stays with you. Who uses it, which data arise, which workflow, and all of that before you write the first prompt.
The task from the video: take a small idea from your everyday life or your company, such as a holiday planner for the team or a sign-up list for an event. Settle the three questions and capture the workflow in a few bullet points. Which of the three questions did you find hardest?
Primary sources
- Regulation (EU) 2016/679 (GDPR), Article 5(1)(c) and Article 25(1) and (2) (EUR-Lex, accessed on 25 November 2026)
- ISO/IEC 27001:2022, Annex A 8.25, 8.26, 8.29, 8.30 and 8.33 (iso.org; controls checked against the original on 25 November 2026)
- Documentation of a coding agent in the terminal, best practices: missing information, specific brief, interview before the build (code.claude.com, accessed on 25 November 2026)
- Documentation of a coding agent in the terminal, permission modes: plan mode and plan approval (code.claude.com, accessed on 25 November 2026)
- Tool from the series, coding agent from another vendor, documentation (developers.openai.com, redirected to learn.chatgpt.com on 25 November 2026)
- Tool from the series, local AI on your own computer (ollama.com, accessed on 25 November 2026)
Frequently asked questions
How do I start a project with a coding AI?+
With three questions before the first prompt: who uses the application, which data arise and who may see which, and what happens step by step? Then give the AI the plan, let it propose an order and build in small steps that you check one at a time.
Why doesn’t the AI simply build what I mean?+
Because it only sees what is in the brief and in the code. It does not know decisions from meetings or processes that exist only in your head. Whatever you do not say, it decides for itself, and that matches your needs only by chance.
What does data protection have to do with the first prompt?+
Article 25 GDPR requires data protection already when the means are determined, in other words while planning. By default only necessary data may be processed, and personal data must not be made accessible to an indefinite number of people without the individual’s intervention. Who may see what therefore belongs in the plan.
Do I need a long requirements specification for this?+
No. Bullet points on users, data and workflow are enough for a small tool. For a throwaway prototype without real data you may experiment. As soon as real personal data are involved, the three questions are mandatory.
Author & expert review: Lars Zimmermann · ISO/IEC 42001 Senior Lead Auditor & Senior Lead Implementer · ISO 9001 Senior Lead Auditor · ISO/IEC 27001 Lead Auditor & Lead Implementer (PECB)
An auditor with shop-floor experience and managing director of a manufacturing company, who audits and builds AI management systems and information security. Author of “Stallgeruch” (in German). Verify the credential on Credly · More about me.
Last updated: 30 November 2026. Researched and reviewed to the best of my knowledge. This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.
Questions about your own case?
In a free 15-minute intro call we assess where you stand on ISO 42001, ISO 27001 and the EU AI Act, honestly and without a sales pitch.