/ai-devkit:cmk:visualizefrom ai-devkit
Traces a codebase into a validated scene graph and renders it as an interactive isometric map or static SVG, with every node and edge citing its source file and line.
Ships in ai-devkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Trace a codebase into one validated scene graph and render it as a map a person and an agent can discuss, where every building and every connection carries the file that proves it. This is the operational form of docs/design/visualize-repo-map.md; read that for the full contract behind what follows.
EMIT DATA, NEVER PIXELS. VALIDATE BEFORE YOU RENDER. NEVER RENDER INVALID.
Analysis produces exactly one JSON scene graph. Renderers are fixed code, not a per-invocation drawing decision made by a language model. Before calling either renderer, pass the document to validateSceneGraph from skills/visualize/assets/validate.mjs. If valid is false, stop there: do not call renderSvg or renderHtml. Report the returned errors array to the user instead of a picture. There is no partial render and no "close enough" document — an invalid scene graph blocks rendering outright.
A node or an edge without a file:line gathered in this run does not appear in the document at all, not even as a low-confidence guess. This is not a judgment call you relax under time pressure: validateSceneGraph rejects any node or edge whose citations array is empty, and an invalid document cannot render (see above). If you suspect a relationship but cannot point at the line that proves it, it belongs in gaps[], never in edges[]. Full field meaning, and why this rule is schema-enforced rather than a convention, is in references/scene-graph.md.
Before any payload sample enters the scene graph:
.gitignore and equivalents) or its secret patterns (.env*, key material, credential files, anything a secret scanner would flag). Skip the file entirely rather than sample from it.samples[] entry.Redaction happens before the document exists, not before it renders: the scene graph itself is the publishable artifact, so a secret that reaches it has already leaked.
Resolve each from the user's own words; fall back to the default marked *. Independence is the point — choosing three-d never touches altitude, and choosing subsystem never touches style.
| Axis | Values |
|---|---|
| Diagram type | system-architecture* (only type shipped) |
| Style | isometric*, flat, three-d |
| Altitude | budget* (12 to 20 nodes, folds to fit), subsystem (named slice, no folding) |
| Output form | interactive artifact*, static SVG |
docs/ai/ routing hint and payload sampling, is in references/analysis.md.assets/validate.mjs. Invalid stops here — see The hard rule.assets/render-html.mjs (renderHtml(doc, { style })) for the interactive form, assets/render-svg.mjs (renderSvg(doc)) for static SVG. Publish the interactive form as an artifact when the host supports one; write the SVG into the repo when the invocation warrants durability, or when no artifact host is available.folded and gaps alongside the render, not buried in it. Say what was hidden — a fold or an unresolved relationship passing silently is the failure this skill exists to prevent.nodes[].children is an optional nested scene graph, generated eagerly in the same pass rather than lazily on a later click, up to the depth cap of 3 enforced by validateSceneGraph. See references/scene-graph.md for the field.
If docs/ai/ exists (built by cmk:codebase-docs), read it first as a map of where to look. Treat it strictly as a hint: a stale docs/ai/ costs time, never correctness, because no citation is ever copied from it. Every citation in the scene graph must come from a file:line actually read in this run, whether or not docs/ai/ pointed there first.
An interactive artifact is typically link-shareable, and a repo map exposes internal structure and real code snippets. Confirm with the user before publishing a map of a private repository — rendering intent is not the same as sharing intent.
references/analysis.md — the tracing procedure: the docs/ai/ routing hint, enumerating entrypoints and manifests, tracing imports and call sites with citations, the altitude fold, payload sampling with redaction, and what goes in gaps[].references/scene-graph.md — field-by-field companion to assets/scene-graph.schema.json: what each field means, why citations are required, what folded and gaps are for, and the depth cap of 3.TESTS.md (opens in a new tab)assets/render-html.mjs (opens in a new tab)assets/render-svg.mjs (opens in a new tab)assets/scene-graph.schema.json (opens in a new tab)assets/validate.mjs (opens in a new tab)eval.json (opens in a new tab)references/analysis.md (opens in a new tab)references/scene-graph.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.