Instructions for an agent
This page gives an AI agent the files it reads before it writes docs in a project, and the commands that check its work.
The files
Copy two files from the folder templates/ of Flight Manual to the project:
| File of Flight Manual | Goes to | What it has |
|---|---|---|
| templates/WRITING.md | WRITING.md at the top of the project |
The rules of the voice, the page, and the examples, and the steps before a page goes out. |
| templates/AGENTS-docs.md | A section of AGENTS.md |
The rules of the docs for an agent: the templates, the site file, the reference entries, and the check. |
Copy the templates of the four kinds of pages too: start.md, guide.md, reference.md, and explanation.md.
Change the rules to the words of the project. Keep them short: an agent reads the whole file at the start of each task.
The prompt
Give the agent a task in this form:
Write the page docs/guides/backup.md: a guide that backs up the database of the app.
Read WRITING.md first, and start from the template of a guide.
Run each command that the page shows, and put its real output on the page.
Add the page to site.fm, and run flight-manual build -strict _site.
In your report, say what you ran and what you did not check.
The check
The agent runs these commands, and a reviewer runs them again:
flight-manual build -strict _site
grep -nE '\b(will|should|may|just|simply|easy)\b|—' docs/guides/backup.md
The first command checks the links, the anchors, the pictures, the headings, and the colors. The second finds the words of the voice. Then the reviewer goes through Review a page.
Limits
Flight Manual 0.1.0 has no command that checks the voice of a page, such as the length of a sentence. The search with grep above is the check for now.
Next: Commands.