Write docs pages
write_docsCreates documentation pages with summaries and linked body paragraphs for code areas and symbols, saving each version to ShadowGit history for later reference.
Instructions
Write the words of docs pages get_docs read, at the head it answered. For each page, an area by its id or overview: true, then a summary, one sentence on what it is for (at most 200 characters), and a body, short paragraphs on how it works (at most 400 words), each paragraph text or pieces, a piece linking a symbol (its file and name, as get_docs and get_code_context name them) or an area by its id, where the text names it. Or holds: true, when the words still hold after the changes get_docs listed: they are kept again at head, unchanged. Describe what the code does and how it works, from the code you read and the facts get_docs gave: a page with no words can start short, and later sessions add to it. Links that name nothing at head are made plain text and named back. A page past these limits is left out, with why; the others are kept. ShadowGit keeps every version in its own history, never in the project's files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head | Yes | The head get_docs answered | |
| repo | No | Project name or absolute path. Defaults to the current project. | |
| pages | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head | Yes | ||
| repo | Yes | ||
| pages | Yes |