← All posts
·5 min read

The five building blocks of a Claude system

Every system built on Claude comes down to five parts: model, prompt, tools, context and evals. Demos get the first two right; production depends on the rest.

This is Day 1 of Claude Architect in 30 Days, a daily series on designing and shipping systems with Claude. I started it after passing Anthropic's Claude Certified Architect – Foundations exam, and each day takes one idea from the work and explains it plainly. Day 1 is the map: the five parts every Claude system is built from, and the order the rest of the series covers them in.

Who this is for: a developer, founder or team lead about to build their first serious feature on Claude, who wants to know what has to be designed before anything ships.

The map for the whole series: five parts, each with its own week of detail.

1. The model: choose per task

Claude comes in tiers. Opus is the most capable and the slowest and most expensive per token; Sonnet sits in the middle; Haiku is the fastest and cheapest. The common mistake is to choose one for the whole project. A system usually has several jobs with very different needs: sorting incoming messages into categories, drafting a reply, planning a multi-step task. The sorting job wants speed and low cost at high volume. The planning job wants the strongest reasoning you can afford.

So the question isn't "which Claude do we use?" It's "which Claude does this step need?" I went through how to answer that in choosing a model without a leaderboard, and Day 3 of the series goes deeper.

2. The prompt: your spec, written down

A prompt is the specification for the work. A good one says who Claude is in this job, what the task is, what a good answer looks like (an example does more than a paragraph of description), and the exact format you need back. When a prompt is vague, the output varies from run to run, and that variation shows up as bugs that are hard to reproduce.

Prompts also change over time, which is why they belong in version control with your code rather than in a settings screen someone edits by hand. Prompt versioning covers that part.

3. Tools: how Claude acts

On its own, Claude can only answer. Tools let it act. You describe a function to Claude (its name, what it does and the inputs it takes), Claude decides when calling it would help, and your code runs it and hands back the result. Looking up an order, creating a ticket and searching documents are all tools.

The design work is in the descriptions. Claude chooses tools from what you write about them, so an unclear description produces wrong calls. And not every task needs an agent choosing its own tools: often a fixed sequence of steps with one model call in the middle is faster and safer, as I argued in when not to use an agent.

4. Context: what Claude can see

Claude knows only what is in front of it on this request: the instructions, the conversation so far, any documents you include, and anything retrieved from a search. Everything else, including your company's data, doesn't exist for it unless you put it there.

More context is not better. Irrelevant material costs money, slows the response and gives the model more to get wrong. The skill is putting the right few things in front of it. Retrieval (RAG, short for retrieval-augmented generation) is the usual way to do that, and the production RAG checklist covers what it takes to run it well. Week 3 of the series is all about this part.

5. Evals: how you know it got better

An eval is a fixed set of real examples, each with a known good answer, that you run again every time you change the prompt, the model or a tool. It's the test suite for an AI feature. Without one, every change is a guess: something that fixes one case can quietly break three others, and you only find out from users.

This is the part most often missing. A demo doesn't need it, because a demo only has to work once. A product has to keep working through every change, and the eval is what tells you it still does. The eval harness I run is a working example, and Week 4 covers evals in depth.

Try this today

Take one AI feature you've built or are planning, and name its five parts. Which model, which prompt, which tools, what context, and which eval. If you can't name one of them, that is the part to design next. Most often, it's the evals.

Tomorrow, Day 2 follows one API call to Claude from start to finish. If you're planning a Claude system and want a second opinion on its design, that's the kind of work I do in AI agents and automation.

Prefer slides? Download today's carousel as a PDF.

Shanker Dhand
Shanker Dhand
AI Engineer & Technical Lead

I design and ship production AI systems — RAG pipelines, agents, and evaluation infrastructure — built on 10+ years of full-stack engineering.

Related posts