Use with Agents
An AI coding agent follows LiteSpec only when it reads the rules before it writes code. Every LiteSpec page is published as plain Markdown that an agent can fetch. This page sets that up: read how LiteSpec works yourself, start one session with a prompt, or answer four questions about your project and commit the block they produce to its AGENTS.md file, which agents read at the start of every session.
Read How It Works
The agent applies the rules, but you decide what it may do on its own and you review what it brings back. These 10 pages explain the rules and how LiteSpec's parts fit together, in reading order. They take about 73 minutes in all.
- Why LiteSpec Exists5 min
The problem LiteSpec solves, for a team that is deciding whether LiteSpec fits.
- How LiteSpec Works7 min
The standard, the records, the model, and the tools, traced through one Claimwick use case.
- Read the Standard5 min
Project selections, page arrangement, and provision IDs; how to find the rules that apply to a project.
- Records and the Project Model10 min
The four layers, what a project writes down, where each record lives, and what the model builder computes.
- Reading Tracks6 min
Which records to read in which order: why before how, one journey end to end, one module end to end, and the structural words.
- How the Tools Fit Together8 min
The CLI, the analyzers, and the site, in the order one change moves through them.
- How LiteSpec Compares15 min
LiteSpec beside ten other approaches to spec-driven development, and when each fits.
- Lineage4 min
The practices LiteSpec borrows from, the words it takes from each, and what it does differently.
- Work with Agents4 min
How an agent finds the rules, what it decides alone, and what it brings back.
- Adopt LiteSpec in Steps9 min
Adopting LiteSpec by conformance level: the record model at `records`, traceability at `traced`, and the full contract at `full`, with the records path through the tutorial.
- Why LiteSpec Exists5 min
Start a Session with One Prompt
Paste this prompt into an agent session to try LiteSpec without setting anything up. The agent reads the site index, picks the selection index that matches your project's shape and stacks, and fetches only the pages each task needs. The setup lasts for that session only.
Prompt for Your Agent
Read https://litespec.dev/llms.txt. Pick the selection index that matches this project's shape and stacks, then fetch only the pages each task touches.Tailor It to Your Project
For a repository you keep working in. Your answers pick a selection index: a Markdown file,
llms.txt, that lists only the LiteSpec pages your project applies, so the agent never loads rules for a stack the project does not use.Copy It into Your Project
Paste this block into the
AGENTS.mdfile at the root of your repository and commit it. An agent that readsAGENTS.mdat the start of a session then loads your selection index before each task.AGENTS.md Block
## LiteSpec This project follows LiteSpec 4.0.0: size small, shape server, stacks dotnet and react, extensions none. Before a task, read https://litespec.dev/4.0.0/select/server.dotnet.react/llms.txt and fetch only the pages the task touches. Selected extensions: none UI work: the pattern pages listed in that index.