Essays

AI & Building

Prompt Architecture Is a Design Discipline

Not a trick, not a hack, not a folder of clever phrases.

8 min read

The word prompt has done real damage. It suggests something small and disposable — a phrase you type, a lever you pull, a thing you tweak until the output looks right. Under that framing, prompting becomes folklore. People trade incantations. Somebody swears that asking the model to take a deep breath improves reasoning. Somebody else keeps a spreadsheet of magic words. It is all very energetic and almost entirely unaccumulating, because none of it is built on a model of why anything works.

What actually works looks much more like design. It has structure, constraints, hierarchy, and a point of view. It can be reviewed by a colleague. It can be inherited by someone who was not in the room. It improves in a direction rather than oscillating.

A prompt is a phrase you try. An architecture is a set of decisions you can defend.

Where the discipline came from

I did not arrive at this from theory. I arrived at it from a bad week. A client project had a content system that generated summaries, and the summaries were fine about eighty percent of the time. The other twenty percent were subtly wrong in ways that were hard to describe and easy to notice. My response, initially, was the folk response: I edited the phrasing. I added emphasis. I added an example. Each change fixed the case in front of me and broke a case I had not thought to check.

The turn came when I stopped editing sentences and started drawing the thing. On paper, the system had four separable concerns tangled into one paragraph: who the writer is, what the reader needs, what the source material is allowed to contribute, and what must never happen. Once those were separated, the failures were legible. The twenty percent were nearly all boundary failures — the model was inferring context that no one had granted it. That is not a wording problem. It is an architecture problem, and no amount of rephrasing was going to reach it.

The layers

Every serious instruction set I have written since separates into layers, and the layers are stable across wildly different projects.

There is identity: who the system is being, and with what expertise and disposition. Identity is not costume. It determines which of a thousand plausible registers the output lands in, and it does more work than any other single element.

There is context: the world the system is operating in, including the things a new employee would need explained on their first day. Most disappointing output is a context failure wearing the mask of a capability failure.

There is task: the actual thing being asked, stated once, precisely, without hedging. Ambiguity here compounds through everything below it.

There is form: the shape of the response. Length, structure, whether it explains itself, what it does when it is unsure. Form is where most teams over-specify and under-think, producing rigid templates that break on the first unusual input.

And there are boundaries: what must never happen, what to do at the edges, how to fail gracefully. Boundaries are the least glamorous layer and the one that separates a demo from a system. A demo is judged by its best output. A system is judged by its worst.

Why this is design and not engineering

The distinction matters more than it sounds. Engineering asks whether something works. Design asks what should exist and for whom, and accepts that there are many working answers and only a few good ones.

When you write instructions for a system that will speak to your customers, you are making decisions of the same kind a brand designer makes. How formal are we? What do we do when we do not know? Do we apologize, and how much? Is brevity a courtesy here or a coldness? These are taste questions with real consequences, and they cannot be resolved by benchmarking. They have to be decided by someone with a point of view, written down, and held to.

This is why I resist the phrase prompt engineering for most of what I do. The engineering part is real — evaluation, versioning, regression testing, all of it necessary. But the part that determines whether the result feels like anything is design work, and treating it as configuration is how organizations end up with three products that all sound like the same tired assistant.

Anything that speaks to your customers is part of your brand, including the parts that are generated.

Versioning and the end of folklore

A practical consequence of taking this seriously: instructions belong in version control, with the same review culture as code. Not because they are code, but because they are decisions, and decisions deserve a history.

When an instruction set is versioned, a change becomes reviewable. A colleague can ask why the boundary was loosened, and there is an answer. When something degrades, you can find the commit. When someone new joins, they read the architecture and understand the product's voice in twenty minutes instead of absorbing it by osmosis over a quarter.

The alternative — a shared document that four people edit live, or worse, a prompt pasted into an interface and never recorded — produces exactly the folklore problem. Knowledge stays in individual heads. Improvements are personal rather than institutional. The team gets better at prompting and the organization does not get better at anything.

What good looks like

A well-architected instruction set has a few observable properties. It is readable by someone non-technical, because it is mostly prose about intent. It is short in the places where the model already knows what to do and long in the places specific to your world. It contains at least one deliberate refusal — something the system will not do, stated plainly. And it produces output whose failures are boring: when it goes wrong, it goes wrong in the same recognizable way, which means it can be fixed rather than merely re-rolled.

That last property is the real test. Randomly distributed failures mean you do not understand your system. Clustered failures mean you do, and the cluster is your next piece of work.

The system I mentioned at the start went from eighty percent acceptable to something we stopped measuring in percentages, because the remaining failures were all one shape and we simply handled that shape. It took an afternoon of drawing and a morning of writing. The four weeks of tweaking that preceded it produced nothing durable at all.

If you are maintaining a collection of prompts that nobody quite trusts, there is usually a structure hiding inside it waiting to be drawn out. I enjoy that conversation more than almost any other part of this work.