code-to-docs

Installation
SKILL.md

Code-to-Docs

Generate architecture documentation from source code. Output is a single markdown file with one or more Mermaid diagrams plus a focused narrative.

When to use this skill

  • User asks to "document this feature" / "diagram how X works" / "explain this code as a doc"
  • New engineer joining a feature and you want to onboard them
  • Pre-refactor understanding: snapshot current architecture before changing it
  • Phase boundary in the agent workflow (Architect agent producing handoff doc for Frontend/Backend)
  • Pre-PR doc: capture the design that the PR implements

When NOT to use

  • Designing something new — use analyze-requirements and the BA/Architect agents instead
  • API reference docs from doc comments — use DocFX (.NET) or TypeDoc (TS) in CI; faster and deterministic
  • Class-level UML for a whole project — too much detail; pick a feature scope

Workflow

Installs
4
First Seen
Sep 4, 2026