SnapDoczilla
v1.2.0Offline docs-as-code for any backend and frontend: a MkDocs site in your repo, by your AI agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
snapdoczilla_status
Report whether SnapDoczilla is installed in the repo, its areas, how many commits each area is behind its docs, the existing pages, the next ADR number and the suggested next step. Call this first.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Absolute path of the git repository (any folder inside it works). |
snapdoczilla_install
Install the documentation scaffold into documentation/ (templates, update script, pre-push reminder) and download Mermaid once (needs internet). Refuses to touch an existing documentation/ folder.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Human name shown as the site title. |
repo * | string | Absolute path of the git repository (any folder inside it works). |
areas | Code areas as {name: path relative to the repo root}, e.g. {'back': 'backend/', 'front': 'frontend/'}. Omit for a single area covering the whole repo. | |
language | string | Docs language code: 'en', 'es', ... |
profile | string | 'standard', or 'cmmi' to add the CMMI process-evidence page, DAR-style ADRs and traceability rules. |
ui_areas | Names from `areas` that contain UI components; they get component-page rules. |
snapdoczilla_add_manual
Add an end-user manual to an existing install (standard or cmmi profile): user-manual/ pages in nav and AGENT-RULES-MANUAL.md (steps, exact UI labels, messages, screenshot placeholders). Refuses if it already exists.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Absolute path of the git repository (any folder inside it works). |
snapdoczilla_get_rules
Return the rules the documentation must follow (language, tone, page layout, no invention).
| Parameter | Type | Description |
|---|---|---|
repo * | string | Absolute path of the git repository (any folder inside it works). |
area | Also return this area's AGENT-RULES-<area>.md when it exists. |
snapdoczilla_changes_since_sync
List the files, commits and diffstat of an area since its last documented commit, so only the affected pages are updated. With no previous sync it says to analyze the whole area.
| Parameter | Type | Description |
|---|---|---|
area * | string | Area name from documentation/areas.conf, e.g. 'back' or 'front'. |
repo * | string | Absolute path of the git repository (any folder inside it works). |
snapdoczilla_write_page
Create or overwrite one Markdown page. Writes are confined to documentation/source/.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full Markdown of the page. Embed real code with --8<-- "path/from/repo/root". |
page * | string | Path inside documentation/source/, e.g. 'architecture.md' or 'adr/0002-use-queue.md'. |
repo * | string | Absolute path of the git repository (any folder inside it works). |
nav_title | Menu title. Pass it when creating a page so it is added to nav (the strict build needs that). |
snapdoczilla_build_html
Rebuild documentation/html with a strict MkDocs build (no AI agent is invoked). The first run creates a local venv and installs MkDocs, which takes a minute or two and needs internet. A failed build keeps the old html.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Absolute path of the git repository (any folder inside it works). |
snapdoczilla_mark_synced
Record the current HEAD as the last documented commit of an area. Call it after the area's pages are updated.
| Parameter | Type | Description |
|---|---|---|
area * | string | Area name from documentation/areas.conf, e.g. 'back' or 'front'. |
repo * | string | Absolute path of the git repository (any folder inside it works). |