AGENTS.md for a Small Business: Read What the Skill Wrote
8 min read
The skill has written about a dozen files. For the sample cafe it was eleven, 112 lines in all. Before you trust any of them, read them. This lesson walks through the folder in the order the assistant uses it, starting with `AGENTS.md`, the one file it opens at the start of every chat. A business owner can read all of it in ten minutes, and should.
Open a file inside the app
Click any file name in the build report. The file opens in the side panel as a formatted page, with three buttons above it: Show changes, View source and Open.
- Show changes marks what the assistant just added or removed.
- View source shows the plain text behind the formatting.
- Open opens the file in another app on your computer.
!AGENTS.md open in the side panel
AGENTS.md: the short map
`AGENTS.md` sits at the top of the project folder. Codex reads it on its own whenever you start a chat in the project. The one the skill wrote for the sample cafe is seven lines. It names the business in one sentence, with the tags showing where that came from, and sets four rules:
Tin Lantern Cafe is a coffee shop in Toronto's west end.
[owner] [file: menu-and-prices.txt]
- Read the relevant context files before answering. Start with
the folder map.
- Name the source of every business claim. Use confirmed numbers.
- Ask before opening a website the owner did not list.
- Treat inbox/ as read-only. Save new work in work/.The folder map it points to is `context/README.md`, which lists where each kind of knowledge lives.
This file is the reason a new chat in the project already knows the business. It's also the first place to look when the assistant does something you don't like. Add a line, save, and the next chat follows it.
Keep it short. A long `AGENTS.md` gets skimmed by the assistant the same way a long memo gets skimmed by staff. The detail belongs in the files it points to.
The context folder: three kinds of knowledge
context/
README.md
rules/
00-business-foundation.md
01-voice.md
02-policies-and-never-say.md
facts/
offer-and-prices.md
customers.md
sales-path.md
team-tools-and-jobs.md
analysis/
reviews.md
coverage.mdRules hold what must always be true. The foundation file is the business in under twenty lines: name, what it does, where, hours, contact. The voice file describes how the business sounds and quotes real sentences from your own site or files. The policies file holds promises, limits and the never-say list from question 4.
Facts hold how things are today. Prices and menu items, who the customers are, how a sale happens, who does which job with which tool. These change, and that's expected.
Analysis holds dated findings: what the reviews say, and the coverage score. Each entry has a date, because a finding from last spring isn't a fact about today.
The one-home rule
Each fact is written in one file and nowhere else. The catering deposit lives in the policies file. The offer file doesn't repeat it and neither does `AGENTS.md`.
The rule sounds fussy until a price changes. With one home, you change one line and every later answer is right. With three copies, you change one, forget two, and the assistant quotes whichever it reads first.
The tags on every line
Every fact carries a note saying where it came from.
- `[owner]`: you said it in the chat.
- `[file: menu-and-prices.txt]`: it's in that inbox file.
- `[web: address, date read]`: it's on a public page the assistant opened on that date.
!The changes view for offer-and-prices.md, every price tagged with its source file
In the sample cafe's offer file every price carries `[file: menu-and-prices.txt]`. Under it, the best sellers line is tagged `[owner]` because we said it, and the line about catering margin says `not found` and names the report that would settle it.
Where the skill found nothing, the line says `not found` and names what would settle it, such as "a sales export by item". It's told never to estimate a number.
Your ten-minute check
Read these three files now, in this order.
- The foundation file. Is every line true today? Hours and contact details are the usual errors.
- The policies and never-say file. Is anything missing that would embarrass you if a draft promised it?
- The offer and prices file. Pick three prices and check them against the real list.
Correct errors by telling the assistant, in a sentence: "The Saturday hours are 8 to 4, from the menu file. Fix the foundation file." It edits the one home and tells you which line changed. Use Show changes to see it.
What you should see now
`AGENTS.md` and the three rule files read and corrected, and at least one fix made by a plain sentence.
Next: the score, and what to do about it.