rysweet avatar

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-code

Installs 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 --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.

Sponsors

Details

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

More from rysweet/amplihack

All 58
1awslabs avatardeployawslabs/agent-pluginsDeploy applications to AWS. Triggers on phrases like: deploy to AWS, host on AWS, run this on AWS, AWS architecture, estimate AWS cost, generate infrastructure.240skills.sh installs
2nuxt-modules avatarmanage-mcpnuxt-modules/mcp-toolkitManage MCP servers in Nuxt with @nuxtjs/mcp-toolkit — setup, create tools/resources/prompts, organize with handlers, build interactive MCP Apps, add elicitation240skills.sh installs
3everyinc avatargit-commiteveryinc/compound-engineering-pluginCreate a git commit with a clear, value-communicating message. Use when the user says "commit", "commit this", "save my changes", "create a commit", or wants to235skills.sh installs
4davepoon avatarcontent-research-writerdavepoon/buildwithclaudeAssists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on ea233skills.sh installs
5thedivergentai avatargodot-project-templatesthedivergentai/gd-agentic-skillsNavigation skill for genre project scaffolds: pick platformer/RPG/FPS (or other genre) then load matching template scripts and route gameplay fill to godot-genr232skills.sh installs
6shanezzzz avatardecision-clarityshanezzzz/decision-clarity-skillImprove decision quality by clarifying the real problem, exposing hidden assumptions, reasoning from fundamental facts, reducing unnecessary complexity, and end228skills.sh installs