File formats reference
Files docsbot reads
Vocabulary
A controlled list of preferred terms and their aliases, set with vocabulary: in
docsbot.yml. check reports tags that are aliases or not in the list, graph uses it to
resolve entities, and audit scores terminology with it.
# vocab.yaml
terms:
OpenTelemetry:
aliases: [OTel, otel]
type: product # optional entity type
description: Observability framework
Kubernetes:
aliases: [k8s]
tracing: {} # a term with no aliases
Matching is case-insensitive.
Tasks file
Reader goals for audit findability, set with --tasks or audit.tasks.
# tasks.yaml
tasks:
- task: Install on Windows
queries: [install windows, windows installer]
expect: [install/windows.md] # route, file path or URL; any one answers it
| Key | Description |
|---|---|
task |
what the reader wants to do |
queries |
the searches they might type |
expect |
pages that answer it: a route, a file path or a URL. Any one counts |
A query passes when an expected page ranks in the top audit.search_top_k (default 3).
Query log
Real searches from your site, set with --query-log or audit.query_log. CSV with a
query column and an optional count column:
query,count
install windows,412
change port,97
connection refused,55
Front matter schema
A JSON Schema, in JSON or YAML, set with check.schema. Every page’s front matter is
validated against it, and failures are reported as frontmatter-schema.
Draft template
A Markdown file for draft write --template or draft.template. Each ## heading is a
section. An HTML comment under the heading guides what goes there, and can include:
query: words: extra words to search the sources forpassages: codeorpassages: prose: use only that kind of source
## Summary
<!-- What the practice achieves and when it applies, in two or three sentences. -->
## Before you start
<!-- Prerequisites, versions, access. query: prerequisites requirements install version access -->
The built-in template has Summary, Before you start, Recommended practices, Common mistakes, and Check that it works.
Transcripts
draft write --transcript takes WebVTT (.vtt), SubRip (.srt) or plain text (.txt).
Files docsbot writes
Draft folder
draft write writes to drafts/<topic> (or --out):
| File | Contents |
|---|---|
draft.md |
the page, with front matter status: draft and review: required, and a footnote citation on every statement |
claims.json |
the verification ledger: each claim, its citations, its facts (numbers, versions, flags, commands, parameters, fields, defaults), whether each is found in the cited passage, whether it agrees with the repository, and its review status |
review.md |
the reviewer’s checklist, rewritten by every draft verify |
Agent run folder
agent run writes to drafts/agent (or --out): report.md and run.json for the run,
and one folder per group with the draft folder’s files plus:
| File | Contents |
|---|---|
agent.json |
what the draft was made from: gap items, MCP passages, repository pages |
eval.json, eval.md |
validation results, the score and the gate |
proposed-changes.md |
for existing pages: each line to fix, with a diff |
approval.json |
written by agent approve |
Conversion report
convert writes convert-report.md and convert-report.json to the output folder: each
construct that was approximated, dropped or needs review, with file and line, and the
source lines whose words are missing from the output.
Knowledge graph
graph build writes a SQLite database (docsbot-graph.db by default). Use graph export
for portable formats rather than reading the database directly; its schema may change.
Agent-ready files
agent-ready generate writes to build/agent-ready (or --out): llms.txt,
llms-full.txt, a .md copy of each page, copy-as-markdown.js and
discovery-snippet.html.