Skip to content
rysweet avatar

Code Visualizer

Multi-language diagram generator that detects stale architecture diagrams against source changes across Python, TypeScript, Rust, and Go.

CCM score
54 of 100
skills.sh installs
245
GitHub stars
77
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers mermaid diagram generation per language, plus an optional combined view with one subgraph per language
  • Includes four language analyzers (python_analyzer, ts_analyzer, rust_analyzer, go_analyzer) behind a shared language-blind renderer
  • Enforces staleness checks by comparing source mtimes against committed .mmd files, with --check-staleness exiting non-zero when diagrams are outdated
  • Designed for polyglot repositories, PR architecture review, and checking diagram freshness after new modules are added

Install

$ npx -y skills add rysweet/amplihack --skill code-visualizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Visualizer Skill

Purpose

Automatically generate and maintain visual code flow diagrams across multiple programming languages. The skill auto-detects which languages are present in a target path, analyzes each one with a dedicated analyzer, and emits one mermaid diagram per language plus an optional combined high-level view. It also detects when committed diagrams are stale relative to the source they describe.

What's New in 2.0.0

  • Multi-language support: Python, TypeScript/JavaScript, Rust, and Go.
  • Language dispatcher: Detects languages by file extension and routes to per-language analyzers.
  • Language-blind renderer: A single mermaid renderer consumes a normalized graph; the renderer never inspects language semantics.
  • One diagram per language plus an optional --combined view that places each language in its own mermaid subgraph.
  • Generalized staleness: Walks all source files matching detected languages' extensions and compares max-mtime against the diagram mtime.
  • Brick-style architecture: Each language analyzer is a self-contained module that exposes a single normalize() function. No shared inheritance.

Details

Repository
github.com/rysweet/amplihack
Categories
Technical Documentation, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the code-visualizer skill do?

The code-visualizer skill auto-generates code flow diagrams from module analysis, producing mermaid diagrams that show imports, dependencies and module relationships. It supports Python, TypeScript/JavaScript, Rust and Go, and emits one diagram per language with an optional combined view.

How do I install the code-visualizer skill?

Run npx -y skills add rysweet/amplihack --skill code-visualizer -y in a project to install it. Once installed, the agent can analyze the project and generate mermaid architecture diagrams for it.

When should I use the code-visualizer skill?

Use it when creating new modules, reviewing pull requests for architecture impact, or checking whether committed diagrams are stale. It detects when code has changed but its architecture diagram has not been updated.

Which category does code-visualizer belong to and what sets it apart?

It sits in the Technical Documentation category on Claude Marketplaces, alongside skills such as domain-modeling, archify and design-doc-mermaid. Its distinct focus is generating and checking mermaid diagrams that track how source code is structured.

More from rysweet/amplihack

All 55

Similar to Code Visualizer

More Technical Documentation