Docs

Documentation tooling — the module-docs generator, documentation rules, and architecture maps.

4 skills · 4 tools

How dev-bot’s own documentation is written, gathered and published — plus the diagram tooling for mapping an application.

What it does

  • gather-module-docs — the build-time generator behind this site. It walks src/<area>/<module>/docs.md, derives each module’s capability manifest from its own files, and emits one page per module plus the /modules index and the navigation data. See Create a module.
  • assert-pages-build-type — the deploy workflow’s preflight. It fails the build when GitHub Pages would serve the branch instead of the artifact this workflow uploads.
  • documentation-rules — where docs live, how they are structured, and the README table of contents invariant.
  • use-case-map — traces call chains from entry points through commands, handlers, ports and adapters in a PHP codebase.
  • impact-diagram — the diff-scoped use-case map: only the flows a change touches, changed units in red.
  • app-map — the editor for drawing architecture diagrams: an interactive map saved as JSON and exported as SVG.

Contents

Type Name Purpose
Skill app-map Use when drawing, creating or editing an architecture diagram or application map. Triggers on ‘app map’, ‘architecture diagram’, ‘architecture canvas’, ‘visual architecture’.
Skill documentation-rules Use when writing documentation or updating the README. Triggers on ‘docs’, ‘README’, ‘documentation’.
Skill impact-diagram Use when mapping which flows a git diff affects in a PHP codebase. Triggers on ‘impact diagram’, ‘blast radius’, ‘what does this change affect’, ‘affected flows’.
Skill use-case-map Use when mapping how commands flow through a PHP codebase. Triggers on ‘use case map’, ‘system overview’, ‘message flow’.
Tool assert-pages-build-type Fail the Pages deploy when the site is not built from the Actions artifact
Tool gather-module-docs Gather every module’s docs.md into the Jekyll site — one page per module, the /modules index, the nav data and the aggregate pages
Tool impact-diagram —
Tool use-case-map Generate a UseCaseMap architecture diagram JSON from a PHP codebase. Traces call chains from entry points through commands, handlers, ports, adapters, and HTTP clients. Requires a PHP project (composer.json) and a local PHP CLI or Docker for full command/handler/event resolution; without them only declaration-based discovery runs.

Configuration

The site is a static Jekyll build under docs/. make docs runs the gather before serving; the GitHub Pages workflow runs it before jekyll build.

Publishing must be set to GitHub Actions (build_type: workflow). A branch (legacy) source serves the committed docs/ folder alone, so every generated page and install.sh 404s. The deploy workflow fails when the source is anything else, saying how to switch it.

See also