This page explains what the templates are and how a project uses them. It needs no programming. Each term in bold is defined in the glossary, and the full design is in the specification.
AI coding agents read a note of house rules before they work, a file named
AGENTS.md or CLAUDE.md. Such a note is a context file.
Most projects write their note by hand, and it drifts. The templates are a shared library of such rules, written once, reviewed, and turned into a project's context file by a tool.
Picture a restaurant where each cook keeps their own notes. The same failures show up in projects whose agents work from hand-written notes, or from none:
| In the kitchen | With coding agents |
|---|---|
| Monday's cook salts the soup, Tuesday's does not | One session writes tests for its change, the next session does not |
| A cook improvises with an ingredient the kitchen stopped buying | An agent runs a tool the project dropped, because an old note still names it |
| Two notes on the wall give two cooking times for the same dish | Two rules in the context file disagree, and the agent has to guess which holds |
| A new cook learns by watching, and copies a colleague's shortcut | A new session copies the pattern it finds in the code, good or bad |
| A fix one cook finds never reaches the other branches | A lesson one project learns stays in that project's notes |
| Nobody tastes the dish before it leaves the kitchen | Nothing checks the change before it is committed |
The food is sometimes good and sometimes not, and the customer cannot tell in advance which it will be.
Think of a restaurant franchise. Head office wants every branch to cook to the same standards, whoever is on shift. The templates aim for the same of every agent and every session.
| In a franchise | In the templates |
|---|---|
| Head office's operations manual | Upstream: the shared rules, the tool that builds the files, and the checks |
| The basics every branch follows, such as hygiene | The core tier, in every chain: quality, Git, docs, testing and review |
| The items on a restaurant's menu, each bringing the basics it relies on | The roots a project picks, such as backend-api, with their dependencies |
| A regional franchise that adds local menu items and merges head-office updates | A fork |
| A local supplement that adds to or replaces a named section of the manual | A section that extends or overrides another, by its ID |
| The dated edition of the manual one restaurant uses | The project's pin, a released tag |
| The kitchen binder, assembled once for this restaurant's menu | The emitter's output, rebuilt after an update |
| The rules posted at the station, in view all the time | AGENTS.md, in context on every turn |
| A recipe card, taken from the binder when a matching order comes in | A task skill, loaded when a matching task starts |
| The inspector, who checks named standards in the dishes | The hooks and checks, run on the project's files and changes |
Each row answers the failure in the same row of 2.1:
| The franchise adds | So that | In the templates |
|---|---|---|
| One written manual for every branch | Every cook follows the same standard, on every shift | Every session reads the same AGENTS.md |
| A new edition that replaces the old pages | No cook works from a page head office withdrew | Rebuilding replaces the whole file, so a rule upstream removed leaves with it |
| Reviewed recipes, not each cook's habits | One recipe per dish, tested before it is printed | Rules written once, reviewed, and checked for duplicates |
| The manual on a new cook's first day | A new cook learns the standard, not a colleague's shortcut | A new session starts from the rules, not from whatever the code shows |
| A dated edition sent to every branch | A fix found at head office reaches every branch | Moving the pin and rebuilding brings every upstream fix |
| An inspector with a checklist | A slip is caught before the customer sees it | Hooks stop a commit that breaks a checked rule |
A franchise does not make every cook brilliant. It makes the good result
the usual one, and the bad one rare and visible. Whether the templates do
the same for agents is measured, not assumed: the benchmark,
solid-ai-dev/solid-ai-benchmark, compares the same agent with the files
and without them.
- The manifest,
templates/manifest.yaml, records which template depends on which - The chain is resolved from it, the same way every time
- The emitter writes the files. The same roots at the same release give the same files, byte for byte
The emitter splits the rules by when they are needed:
| File | Read | Holds |
|---|---|---|
AGENTS.md |
On every turn | The rules every change needs, the project's facts, and a table of skills |
| A task skill | When that task starts | The procedure for one kind of task, such as writing tests or reviewing a change |
An agent that cannot load a skill on demand gets everything in AGENTS.md
instead. An agent with a file of its own, such as Claude Code's CLAUDE.md,
gets a one-line file that points to AGENTS.md. Codex reads only the first
32 KiB of AGENTS.md unless its limit is raised, as the README's quick setup
shows.
A project building an HTTP API picks one root and looks at its chain, from a clone of the templates beside the project:
py ../solid-ai-templates/tools/resolve_chain.py backend-apitemplates/core/quality.md
templates/core/git.md
templates/core/docs.md
templates/core/testing.md
templates/core/review.md
templates/backend/http.md
templates/backend/api.md
The core files come first, then the layers backend-api depends on, then
backend-api itself. From the project's own folder, the project then
writes its files:
py ../solid-ai-templates/tools/resolve_chain.py --emit . backend-apiThe emitter writes AGENTS.md and one skill per task kind the chain
carries, such as write-tests, change-api and review. It leaves a few
placeholders, such as {{project-name}} and the build and test commands,
for the project to fill in.
| Choice | Options | Where it is set |
|---|---|---|
| Roots | Any templates the project needs, from upstream or a fork | The roots given to the emitter |
| Delivery | Skills that load per task, or everything in AGENTS.md |
--inline-skills |
| How it holds the templates | A submodule, a clone, a copy, the generated files only, or the hooks only | The project, at a released tag |
| Its own rules | None, or a fork that adds stacks, platforms and process rules | A fork of upstream |
A project always takes a released tag, never a branch, so the rules it follows change only when it moves its pin.
A rule that a tool can check names its check beside it: the command, and what passing looks like. Checks too long to write inline ship as pre-commit hooks, which stop a commit that breaks the rule. The hooks page shows how to install them, with or without the templates.
From 3.0.0, a minor or patch release never breaks the frozen surface: file paths, section IDs, the manifest's shape, the core tier, exit codes, the hooks and the points where a fork plugs in. A rule's wording can improve in any release; a breaking change waits for the next major, after a deprecation.
| To | Read |
|---|---|
| Set up a project | The README's quick setup |
| Run the checks in CI | Pre-commit hooks |
| Add your own stacks | Adapt the rules |
| Move from 2.x | Migrating from 2.x |
| Learn how it is built | Specification |
| See whether the rules help | The benchmark, solid-ai-dev/solid-ai-benchmark |



