Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
description: Export the wiki (or architecture model) to markdown, HTML, JSON, or Structurizr DSL. allowed-tools: Bash(repowise export:*), Read
Repowise Export
Export indexed wiki pages to files, or emit a Structurizr DSL architecture
model. Use this when the user wants a shareable dump, a static site, a JSON
archive, or a C4/Structurizr model — not when they need an interactive Q&A
answer (/repowise:ask).
Steps
- If
.repowise/doesn't exist: "This repo isn't indexed yet. Run/repowise:initfirst." Stop. - Resolve format and output from
$ARGUMENTS(see below). - Run
repowise exportand report where files were written (page count / output path). Do not invent page content.
Choosing the invocation
Default — markdown under .repowise/export:
repowise export
Handle $ARGUMENTS:
- "html" / "site" →
repowise export --format html - "json" →
repowise export --format json - "json full" / "archive" →
repowise export --format json --full(--fullkeeps tombstones and adds decisions / dead code / hotspots) - "structurizr" / "c4" / "dsl" →
repowise export --format structurizr - "structurizr standalone" →
repowise export --format structurizr --standalone - "structurizr components" → add
--components - "to
" / "-o " → pass --output <dir>(for structurizr, a path ending in.dslnames the file itself) - A repo path →
repowise export <path> …
repowise export
repowise export --format html -o ./site
repowise export --format json --full
repowise export --format structurizr --standalone --components
repowise export --format structurizr -o architecture.dsl
Structurizr notes
- Default structurizr output is a model fragment to include from your own
workspace.dsl. Pass--standalonefor a complete workspace with default views. --forceoverwrites an output file even if Repowise did not write it (--standaloneoften targetsworkspace.dsl).--no-externalsleaves third-party dependencies out of the model.
Notes
- Markdown / HTML / JSON write a directory of pages; structurizr writes DSL.
- Never fabricate export contents. If the command reports no pages, say so and
suggest
/repowise:init.