
When to Prompt and When to Architect
The AI skill that matters most is not better prompts. It is knowing which problems fit in a prompt and which need a design first.
- Published
- May 11, 2026
- Author
- Hrushiekesh Reddy Kanjula
- Read time
- ~5 min
- Category
- essay

The most useful AI skill is not writing better prompts. It is knowing which problems fit in a prompt and which need a design first. I call them prompt-sized and architecture-sized.
I know two colleagues who get this wrong in opposite ways. One uses Claude for everything. He is faster than anyone I know at certain tasks. But he gets blocked when a problem is bigger than one prompt, because he has never had to think past that limit.
The other refuses to use AI for anything architectural. He will use it for a regex or an error message, but not for system design. His reason is "I don't trust it to understand the full context." He is right that AI doesn't hold context the way a human architect does. He is wrong that this makes it useless for big problems.
What makes a problem prompt-sized
A prompt-sized problem has three properties:
- It is self-contained.
- It doesn't need the broader system to be solved correctly.
- You can verify the answer by inspection or a simple test.
A screen capture module is a good example. It is a button that captures the application window, crops the taskbar and saves a PNG. The requirements fit in two sentences. It uses standard libraries (pyautogui, Pillow) and touches nothing else in the system. You test it by running it and looking at the file. A zero-shot prompt gives a complete, correct implementation in minutes.
A regex for one date format is prompt-sized. So is a Celsius-to-Fahrenheit function, or a straightforward SQL aggregation. These aren't trivial. They have edge cases and need accuracy. But the solution space is bounded enough that an LLM with no extra context can handle it.

What makes a problem architecture-sized
An architecture-sized problem has dependencies across several modules. Its state lives across files or processes. Correctness depends on why the system was designed the way it was.
The 1,600-line async nozzle validation pipeline from a previous post is one of these. You can't specify it in a prompt. The prompt would have to carry:
- the async database query pattern
- the SQLite schema
- the Eel WebSocket callback chain
- the concurrency constraints of the edge hardware
- the business rules for severity classification
- the UI integration points
That context doesn't transfer in one shot. The AI has to read the codebase, reason about dependencies and write a plan before it writes any code.
If an LLM generates the pipeline from a short prompt, the code will look right and be subtly wrong. It will reference variables that don't exist in the codebase. It will assume a schema slightly different from the real one. It will ignore the threading model already in place. None of this is obvious, and it hides until runtime.
Over-engineering: treating a prompt-sized problem as architecture
This is the failure I see most often.
An engineer needs a function to turn a list of component dictionaries into a CSV string. That is prompt-sized. Instead, they spend 45 minutes designing a ComponentSerializer class with an abstract base, a CSV strategy, a JSON strategy and a factory method. By some software metrics, the result is better. It is also unnecessary. A csv.writer call works, reads clearly and needs no maintenance.
Over-engineering costs time. It also leaves complexity that future engineers have to work through. The best AI-assisted engineers I've worked with use a hard filter. If the task can be written as a clear prompt and verified in 10 minutes, it doesn't need a design document.

Under-engineering: treating an architecture-sized problem as a prompt
This one causes the subtle errors above. The classic symptom is a codebase that grows by adding new files instead of changing existing ones. Each prompt produces a self-contained solution that doesn't integrate with what is already there. After 20 of these, you have 20 modules that overlap slightly, and none were designed with the others in mind.
The assembly hub went through a period like this. Features were added one prompt at a time, each working alone, none aware of the shared state model. The result was the 1,200-line monolithic function that needed the state management refactor I described earlier. Every prompt was correct. The architecture they added up to was wrong.
The two-question filter
For a new task, I ask two questions.
1. Can I write the complete requirements in under 200 words, without attaching any files?
If yes, it is prompt-sized. Write the prompt. If no, it is architecture-sized. First read the relevant code and map the dependencies. Then write an implementation plan. Then use AI to execute specific subtasks inside that plan.
2. Does a correct solution depend on a decision made outside this function?
If yes, it is architecture-sized. The solution needs context the prompt can't carry.
The screen capture module passes both questions. The nozzle validation pipeline fails both. So far the filter has held.

Why this is an AI literacy skill
The engineers who get the most from AI tools are not necessarily the ones who write the best prompts. They are the ones with an accurate picture of where AI is reliable and where it isn't. Classifying the problem correctly decides whether the rest of your AI workflow can be trusted.
Get it right and AI adds to your output. Get it wrong and it writes confident code that erodes your codebase one invisible mistake at a time.