
Code Visualizer
Generates mermaid flow diagrams from your codebase across Python, TypeScript, JavaScript, Rust, and Go. Point it at a directory and it spits out one diagram per language showing imports and dependencies, plus an optional combined view with subgraphs. The staleness detection is genuinely useful: it compares file mtimes against your committed diagrams and tells you when they're out of sync. Built with a clean brick architecture where each language analyzer is self-contained and outputs to a normalized graph format. Reaches for regex parsers instead of full ASTs for most languages, which keeps it fast but means it might miss exotic syntax. Best for onboarding docs, PR reviews, and catching when your architecture diagrams have drifted from reality.
- skills.sh installs
- 242
- GitHub stars
- 76
- last updated
- Aug 21, 2026
Install
$ npx -y skills add rysweet/amplihack --skill code-visualizer --agent claude-codeInstalls into .claude/skills of the current project.
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
--combinedview that places each language in its own mermaidsubgraph. - 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.
Sponsors
Details
- Repository
- github.com/rysweet/amplihack
- Categories
- Code Review & Quality, Python
- First seen
- Jun 3, 2026
More from rysweet/amplihack
All 58- Urban Planner Analyst242
- Debate Workflow240
- Environmentalist Analyst236
- Futurist Analyst235
- Meeting Synthesizer228
- Skill Builder227
- Pr Review Assistant225
- Epidemiologist Analyst224
- Context Management170
- Model Evaluation Benchmark160
- Goal Seeking Agent Pattern157
- Poet Analyst156
- Azure Devops154
- Email Drafter154
- Ethicist Analyst152
- Lsp Setup151
- Session Learning151
- Anthropologist Analyst148
- Mcp Manager146
- Indigenous Leader Analyst141
- Dynamic Debugger140
- Multi Repo137
- Philosophy Compliance Workflow136
- N Version Workflow134