SnapDoczilla

v1.2.0
io.github.julvc/snapdoczilla Checked 1 day ago Published 1 month ago

Offline 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.

ParameterTypeDescription
repo *stringAbsolute 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.

ParameterTypeDescription
project_name *stringHuman name shown as the site title.
repo *stringAbsolute path of the git repository (any folder inside it works).
areasCode areas as {name: path relative to the repo root}, e.g. {'back': 'backend/', 'front': 'frontend/'}. Omit for a single area covering the whole repo.
languagestringDocs language code: 'en', 'es', ...
profilestring'standard', or 'cmmi' to add the CMMI process-evidence page, DAR-style ADRs and traceability rules.
ui_areasNames 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.

ParameterTypeDescription
repo *stringAbsolute 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).

ParameterTypeDescription
repo *stringAbsolute path of the git repository (any folder inside it works).
areaAlso 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.

ParameterTypeDescription
area *stringArea name from documentation/areas.conf, e.g. 'back' or 'front'.
repo *stringAbsolute 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/.

ParameterTypeDescription
content *stringFull Markdown of the page. Embed real code with --8<-- "path/from/repo/root".
page *stringPath inside documentation/source/, e.g. 'architecture.md' or 'adr/0002-use-queue.md'.
repo *stringAbsolute path of the git repository (any folder inside it works).
nav_titleMenu 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.

ParameterTypeDescription
repo *stringAbsolute 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.

ParameterTypeDescription
area *stringArea name from documentation/areas.conf, e.g. 'back' or 'front'.
repo *stringAbsolute path of the git repository (any folder inside it works).