From Spec to Execution Plan: Turning Your AI Planning Docs Into a Build Plan You Actually Understand

From Spec to Execution Plan: Turning Your AI Planning Docs Into a Build Plan You Actually Understand
Get in touch or AI consulting Join the AI Community & Comprehensive Online Courses for All Levels

Planning is done, or at least the research part is. In this lesson of Ariel’s build-an-app-with-AI series, all the documents written so far get packed into a single execution plan that an agent can follow task by task. Then comes the part most people skip: making the AI explain the plan in plain language, and questioning it until the holes show up. In this case one of those holes would have quietly deleted every image the app ever generated.

Where we are

The project is a giraffe meme generator: log in with Google, buy credits, generate funny giraffe memes, share the best ones. Ariel says this small app took him less than a day of planning; for a really big app, a week or a month of research and planning is perfectly reasonable. Either way, you end up with outputs. Here there are four main ones: the initial concept spec, the plan for external services, the backend design, and the database schema, plus a configuration file with parameters.

If you are just joining, he recommends starting from the beginning of the playlist, where he teaches from absolute zero: installing Claude Code and VS Code, and then the whole stack, front to back, all the way to running the app live on a real server.

The prompt that builds the plan

Now the docs need to become something you can execute. The prompt, roughly:

  • Read all files in the docs folder.
  • Think and reason about it. Ariel points out that words like “think” and “reason” switch on deeper thinking.
  • Build a big, clear plan for executing everything, split into subtasks it can do one by one.
  • Add lots of tests, so it checks and fixes itself.
  • Write it to docs/implementation-01.

Two settings matter here. He uses /effort to raise the effort. Normally he works on high and suggests everyone make that their standard, but for this step he wants max: as strong as possible, and if you have the patience, leave it on max all the time. And he is in bypass-permissions mode. He also says that wiser practice would be a bigger model for this step, but he sticks to Sonnet so viewers can follow at the same pace.

Then the most important addition: do not assume anything; ask me questions, but not about code, I am not a coder. Otherwise the model will hit an open question, say “I’ll assume X”, and keep going.

The questions it asked (and the answers)

Plan mode turned into a short interview, and the questions show why it is worth having:

  • Should credit purchases work right away, or later? Right away. It suggested Stripe, which means setting up a profile and more. Ariel picks PayPal now, because “these days every second person has PayPal”, and a “coming soon” for credit cards.
  • Where should the share button go? Floating, always, everywhere. Part of the fun.
  • Google login needs a Google Console setup. Fine, but right now everything is developed locally. Buying a domain, a server and the real login setup come when it is time to go live.
  • What about preview images for the four meme styles? Instead of placeholder boxes it suggested something nice: you already have OpenRouter, so let’s generate four images with it.

Ariel’s comment: you have it easy today. Once nobody asked you these questions; you had to stop and think of every one yourself.

Then the plan tried to wander. It wanted a modern frontend framework, while the earlier frontend planning had already chosen, and explained, plain HTML, CSS and vanilla JavaScript only. So he reminded it. Watch for this: sometimes it wants to run ahead.

7,000 lines and a lot of patience

The result was a plan of about 7,000 lines. The first attempt failed with an output-too-large error, so Ariel told it to write it in chunks. Overall it worked for around half an hour, got stuck, and then another 40 minutes or so. That is normal for tasks this size; 15 minutes, half an hour, even an hour is fine.

And the time between does not matter either. He started on a Thursday, let it finish, Shabbat came, a week passed, the computer was closed and reopened. As long as everything is written in documents, we are stateful: the memory is full, and the agent knows everything it needs to know.

Explain it to me like I am not a programmer

Nobody is going to read 7,000 lines. So the next prompt: read all of it. I am not a programmer. I need a simple, human-readable flow chart and a high-level explanation of everything that happens. Write, draw and explain, and do not use technical words. Save it as docs/implementation-flow-01. It is totally fine not to know what the code does, says Ariel, but as the owner of the product you must know exactly what your product is going to do. (Tools like Figma can be connected through MCP for real diagrams; here he keeps it simple with Markdown, previewed in VS Code with Ctrl+Shift+V.)

Claude mapped the 40 tasks into six parts, using things non-programmers already know, like a restaurant kitchen, a filing cabinet and a shop:

  1. Organize the house: folders, settings, tools. Plus the to-do list for the human: open a Google Console account for login and a PayPal developer account for payments.
  2. Build the cabinet: the database, with 12 drawers, each one showing what is inside.
  3. Build the brain: the services, such as sessions, memes, credits, gallery and admin.
  4. Build the door: Google login.
  5. Build the site: what the users see, seven screens, including checkout: the user clicks buy, goes to PayPal, approves and comes back.
  6. PayPal, and how everything connects: browser to backend, backend to database, backend to the outside services.

The questions that saved the app

Here is where the lesson earns its title. Ariel added a questions section at the bottom of the flow file, and asked the agent to answer right there in the file:

  • What are the actual prompts? The first AI is a “creative prompt engineer” for a giraffe meme generator: its only job is turning the user’s idea into a smart prompt, with rules like the giraffe must be the main subject, the user’s idea must come through with humour, and things like speech bubbles, signs and t-shirts are fair game, with output that is only the image. He was confused by a “3D style” in the second step, asked, and remembered: the style comes from the user’s choice. Fine.
  • Where is the image saved? It is not. Oh no. The plan had decided not to keep images, to avoid filling up storage, and assumed OpenRouter keeps the images and returns links. Ariel did not think that was true; as far as he knew, it sends the image back and you deal with it. So he told it to search the web and answer. It came back confirming that the image data is returned, so the app must store it. Update the plan, and add the sources, so the agent reads them when it starts working.
  • Why force a PayPal sandbox? He has a regular PayPal account and wants real payments, a simple button and done. The answer: a sandbox lets you test payments many times while building a big app. Good to know, not needed right now, so fix the plan to use a simple button.

That is the whole point. Imagine it had just built all of this, and then images vanished and payments failed and you had no idea why. You have to ask it for a flow, ask it to explain exactly how the plan works, and question it. That is how you build a good work plan.

Once this last update is in, Ariel will simply tell it to start working. But first, we want an agent for every area of the project, and that is the next lesson: agents and subagents.

๐Ÿ”ฅ Roast Corner

Look at the workflow here. Ariel asks the AI to write a plan. The AI writes 7,000 lines. Ariel, a man with 30 years of experience, then asks the AI to explain its own plan to him using a restaurant kitchen and a filing cabinet. This is the first project in history where the architect and the client are the same person, and both of them need the picture-book version.

And thank goodness he asked, because the AI’s plan was a masterpiece of confidence. It wanted Stripe when PayPal was enough, a modern framework when vanilla JS had already been chosen, a sandbox when nobody asked for one, and a storage strategy for the images of “don’t”. The AI’s favourite hobby is adding infrastructure; its second favourite is deleting your product. Picture the launch: users log in with Google, pay with PayPal, generate a brilliant giraffe meme, and it is gone forever. A meme generator that runs on pure Zen Buddhism.

Before anyone feels superior: a Sonar survey of over 1,100 developers found that 96% believe AI-generated code isn’t functionally correct, yet only 48% say they always check it before committing (The Register). So the industry standard is “I don’t trust it, ship it”. Ariel, at least, read the comic book.

๐Ÿค– AI for Humans

In Benin, maize is not a side dish. It is a staple for more than 300 million Africans, and the fall armyworm alone is estimated to destroy between 8.3 and 20.6 million tonnes of it every year in Africa. Dodi Daguia, head of the youth organization Youth4Peace, and his team are building PlantGuard AI, a phone app that helps farmers identify maize diseases and pests, and here is the clever part: it works completely offline. The model runs on the phone itself, using Google’s TensorFlow Lite, so it works in fields with no internet at all, and no photos have to be sent anywhere.

A farmer photographs a leaf laid flat from about 20 centimetres away and gets a result in under a second, with a confidence rate and a colour code. Instead of a simple yes or no, it rates severity on a 0 to 5 scale adapted to each threat: the spotted area for rust, damage to the plant’s heart for the armyworm, how early the infection came for the streak virus. If the photo is blurry it asks for another; if two diseases look alike, it gives a quick visual quiz. Results can be read aloud in French and English, with local languages like Fon under consideration, and the advice is based on FAO and national agricultural research references. The pilot started in July 2026 with 25 farmers, including 9 women, and an app store release is planned before the long rainy season in March 2027. It is a lovely example of what this lesson preaches: a plan built around the real constraints of the real user, in this case a farmer with no signal. Source: Matin Libre.

Get in touch or AI consulting Join the AI Community & Comprehensive Online Courses for All Levels

๐Ÿ’ฌ Comments