Generate Confluence-ready documentation from any codebase — as GitHub Copilot slash commands.
docs-agent is a lightweight Copilot plugin that turns your code, git changes, and tickets into
clean documentation you can paste straight into Confluence Cloud and get native rendering — no
Confluence API, no manual reformatting.
It runs in GitHub Copilot CLI and VS Code + GitHub Copilot.
| Command | What it does |
|---|---|
/onboarding |
Explores the whole project and writes a new-joiner onboarding guide. Run once per repo. |
/documentate |
Documents the feature you just built — pulls ticket context, analyzes your git diff, and lists affected components. |
/explain-this <path> |
Deep-dives one file/feature: purpose, internals, dependencies, data flow, gotchas. |
/update-documentation <doc> |
Updates an existing doc after behavior changes, with a clear revision changelog. |
Each command writes two files under docs/generated/:
<name>.md— the editable Markdown source<name>.html— opens in your browser; select all → copy → paste into Confluence Cloud
Confluence Cloud does not reliably parse pasted Markdown, but it does convert pasted rich
text/HTML into native elements. So docs-agent renders your doc as clean semantic HTML and opens it;
you copy the rendered page and paste — headings, tables, code blocks, and lists all become native
Confluence content.
Prompt-first, graph-free. Each command:
- Gathers real context with small zero-dependency Node helpers (
lib/):scan-project.mjs— languages, frameworks, entrypoints, structurecollect-diff.mjs— structured git diff (working tree or branch)to-confluence-html.mjs— Markdown → Confluence-safe HTML (+ auto-open)
- Reads the relevant source (and ticket, for
/documentate). - Writes the doc from a consistent template (
templates/). - Converts to HTML and opens it for one-paste publishing.
No knowledge graph, no dashboard, no build step — just documentation.
See install.md for Copilot CLI and VS Code steps.
See ready-made sample output in examples/:
onboarding-sample.md/.html— an onboarding guidedocumentate-sample.md/.html— a feature/change doc
Open either .html in a browser, select all, copy, and paste into a Confluence Cloud page to see
the native rendering (headings, tables, code blocks, lists) with zero reformatting.
- Node.js >= 18 (for the helper scripts)
- Git (for
/documentateand/update-documentation)
npm test # runs node:test over the lib/ helpersMIT