Prerequisites
local graph
Chapter 1 — Prerequisites
Section titled “Chapter 1 — Prerequisites”This chapter covers what you need before starting a new specification project: what must already be in place, and what you need to set up. The same setup works whether your specification drives software, a contract, a research protocol, a policy, or any other downstream work.
Domain Expertise
Section titled “Domain Expertise”You must be a domain expert in the space your specification governs. AI can accelerate how you build, but it cannot replace your understanding of the problem and the constraints the work has to respect. A software specification needs a product expert who knows the users and the market. A contract needs a drafter who knows the parties, the deal, and the regulator. A research protocol needs a designer who knows the population, the intervention, and the practices of the institutional review board that will sign off on the study. A policy needs a writer who knows the operating environment and the people who will have to follow the policy. When edge cases arise — and they will — you make the judgment calls yourself. No AI model can make those calls for you.
AI Agent
Section titled “AI Agent”You need an AI agent, not a chatbot. Chatbots respond to one prompt at a time. AI agents chain tasks, call tools (installable pieces of software, covered in Chapter 8), and complete multi-step workflows without hand-holding. The method in this book depends on that capability.
My agent of choice for most tasks — coding and debugging aside — is Claude Cowork. The method and examples in this book adapt easily to other agents. To stay agent-neutral, the book leans on only a small part of what these agents can do.
For every prompt to an AI agent, you can pick a model. Agents come with several, each with its own capabilities and price. The choice matters more than it may seem.
For specification work, you need a reasoning model. The difference between reasoning and text generation is real. A text-generation model is tuned to produce text. A reasoning model is tuned to think through a problem before answering — it weighs trade-offs, catches contradictions, asks clarifying questions when intent is ambiguous, and reaches solutions you did not spell out for it.
This matters because the method asks AI to do more than execute instructions. It asks AI to interpret your intent, see how your constraints fit together, and make decisions within the boundaries you set. A text-generation model produces fluent output that misses the point. A reasoning model engages with the problem.
For specific tasks where reasoning is not the bottleneck — extracting text from images, parsing documents, running bulk transformations — pick a model tuned for that purpose. But for spec work itself, use the most capable reasoning model available, at the top or near-top effort setting.
Version Control
Section titled “Version Control”AI will make mistakes. It will overwrite files. It will take your project in the wrong direction. This is not a maybe — it is a certainty. You need a way to roll back to an earlier snapshot of your project, the way a video game lets you reload a save. The safety net matters once AI is doing most of the work for you.
The answer is version control. My favorite is Git. It is designed for teamwork — but even if you work alone, it is worth learning. Git gives you the full history of every change and the ability to undo any of them. It comes in two forms: a terminal command for engineers, and a graphical application for everyone else.
If Git feels intimidating, and you work solo, there is a simpler alternative. Zip your project folder periodically. After every logical step, make a copy. It is not elegant, but it works. You can always go back to the last zip if something goes wrong.
One rule here is critical: do not give AI access to your version control. If you use Git, either block AI from it entirely or allow read-only access at most. AI should never be able to commit, push, or modify your saved history. If you use the zip approach, save your zips outside the project folder, somewhere AI cannot reach. Your version control is your final safeguard against AI mistakes. AI must not be able to tamper with it.
Project Structure
Section titled “Project Structure”The core security and control principle — in the real world and in AI work alike — is compartmentalization. You need at least two separate directories on your computer.
The first directory is the one AI has access to. This is your project folder — the place where the specification, its supporting files, and any working drafts live. AI fully controls this folder. If your AI agent supports projects, this directory should be the project directory configured in the agent.
The second directory is one that lives entirely outside of AI’s reach. AI does not know about it. AI cannot read from it or write to it. This is where you store anything you want to keep safe — reference materials, exports, notes. If you use the zip approach for version control, your zips go here. You manage this directory manually.
You will add more components to this project structure as the book unfolds. What you see here is the minimal setup — just enough to explain the concepts. I fully expect you to extend or change this structure to fit your own needs.