Architecture blueprints and skills for AI coding agents.

Free files you drop into your project so Claude Code, Cursor, Copilot or any other agent builds the feature properly.
Each one gives it the architecture, the rules it must not break, the order to build in, and a checklist for “done”.

Nine free blueprints for the things agents get wrong. Find your problem, copy one file, ship it.

AB-001 · agent-loop
Free
medium · 3–5 days · Python
Verified 2026-08-18

The Agent Loop

Use when The number of steps is unknown at design time, the next action depends on what the last one returned, and the task has an end state you can recognise — “find the bug in this repo”, “get this ticket to done”.

AgentsControl flowTool useStop conditions
Read the blueprint
AB-002
Free
low · 1–2 days

The Error Envelope

Use whenClients — web, mobile, another service, an agent — need to react differently to different failures, and you want one shape rather than one per route.

TypeScriptAPI
Read
AB-003
Free
medium · 3–5 days

Eval Harness Design

Use whenYou are about to make the second change to any system built on a model. The first you can eyeball; from the second you are trading one set of failures for another and cannot see it.

PythonEvals
Read
AB-004
Free
low-med · 1–3 days

Idempotency & Retry Safety

Use whenAn operation can be delivered more than once — webhooks, queued jobs, payments, outbound email — and running it twice would double-charge, double-send or double-write.

TypeScriptPostgres
Read
AB-005
Free
medium · 4–6 days

Observability & Tracing

Use whenA system that calls a model runs somewhere you cannot watch it, and someone will eventually say “it gave me a strange answer on Tuesday”. Or nobody can say which feature is responsible for the model bill.

PythonOpenTelemetry
Read
AB-006
Free
low · 1–3 days

Prompt Structure

Use whenA prompt will run more than a handful of times — anything in a product path. Also when an existing prompt has grown by accretion and now contradicts itself or caches badly.

PythonCaching
Read
AB-007
Free
low · 2–3 days

Structured Model Output

Use whenThe model's output feeds code rather than a person — extraction, classification, filling a form — and a parse failure is an incident rather than a nuisance.

PythonPydantic
Read
AB-008
Free
low · 2–4 days

Tool Design

Use whenAn agent has more than one tool, and it picks the wrong one, sends malformed arguments, or misreads what came back. Also whenever tool schemas are being reworked.

PythonPydantic
Read
AB-009
Free
low · 1–2 days

Validation at the Boundary

Use whenData arrives from anywhere you do not control — HTTP bodies, webhooks, queue messages, env vars, third-party responses, model output — and the rest of the code should be able to trust it.

TypeScriptZod
Read
SKILL · map
Free
Claude Code

map

Drop-in skillDraws a self-contained HTML map of a codebase — its jobs, not its folders.

SkillHTML
Read

Put them in the project. Then let the agent pick.

Simple copy
git clone --depth 1 \
  https://github.com/ysz7/awesome-ai-blueprints.git /tmp/ab \
  && cp -r /tmp/ab/blueprints ./blueprints \
  && rm -rf /tmp/ab
Or as a submodule
git submodule add \
  https://github.com/ysz7/awesome-ai-blueprints.git .blueprints
ln -s .blueprints/blueprints blueprints
Tell your agent the catalogue exists — CLAUDE.md
## Architecture blueprints

This project carries architecture blueprints in `blueprints/`.

Before implementing any substantial feature, read
`blueprints/README.md`. It lists every blueprint available
here, with the situation each one is for and the situations
it must not be used for.

Never follow a blueprint silently — say which one you are
using, and why.
  1. 01Read it yourself first. Ten minutes tells you which architectural decisions the agent is about to make on your behalf.
  2. 02Give the file to your agent. Claude Code — drop it in the repo and reference it. Cursor / Windsurf — add to chat context or .cursor/rules/. ChatGPT, Gemini — paste as the first message.
  3. 03Let it do the steps. Verify current versions online, read project conventions, audit existing code against the checklist, propose a plan for approval. The audit is what stops it replacing code that already works.
  4. 04Build in the given order. §7 sequences by risk — whatever is most likely to be wrong is built and tested first.
  5. 05Check against §11. Every item is observable: run it, query it, or grep for it. If you cannot demonstrate an item, the feature is not done.

Ask an agent to “add payments” and the result looks finished.

Then you notice it unlocks the product the second the browser hits the success page — anyone who guesses the URL gets your product for free. Nothing in the code looks wrong, so nobody catches it until a customer does. A blueprint is the missing half of that prompt: it tells the agent what correct looks like before it writes a line.

Without a blueprint
With one
A new architecture every session, invented on the spot
One architecture, written down and reused
It works from training data that can be two years out of date
It checks the current versions and APIs before writing a line
Six questions before it starts — or none at all
It proposes one stack and asks you to confirm, once
It rebuilds code you already have
It reads your project first and builds only what is missing
“Done” means the code ran without an error
“Done” is a checklist you can check yourself, item by item
You find the ways it breaks in production
The ways it breaks are listed up front, with symptom, cause and fix

A blueprint is not a tutorial and not a framework. It is the half of the prompt you never write: what to build, in what order, and what the agent may not do. Written down once — so the same request builds the same system every time.

— Awesome BlueprintsMITVerified 2026-08-19