code-to-chart

Extract static import dependencies across Python, JavaScript/TypeScript, Go, and Java codebases and render them as Mermaid diagrams.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill code-to-chart
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-to-chart
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/code-to-chart
Command: npx skills add https://github.com/haomingz/kimi-skills --skill code-to-chart

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automatically reveal how code modules depend on each other across a multi-language project, simplifying architecture reviews and onboarding.

Core Features & Use Cases

  • Architecture diagrams showing module-level dependencies.
  • Flowcharts tracing file-level import/call chains.
  • Org charts depicting directory/file structure.
  • Use Case: Quickly assess coupling in a new project and communicate structure to teammates.

Quick Start

Run the analyze_codebase.py script on your project path to generate Mermaid diagrams in the current directory.

Frequently Asked Questions about code-to-chart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize code dependencies in a multi-language project?▼

To visualize code dependencies, this tool extracts static imports across Python, JavaScript/TypeScript, Go, and Java from a root path and renders them as Mermaid architecture diagrams, automatically excluding common build directories.

Can I generate Mermaid diagrams for both file-level flowcharts and directory structure?▼

Yes, generating Mermaid diagrams supports architecture diagrams for module-level dependencies, flowcharts for file-level import chains, and org charts for depicting directory and file structure across the analyzed codebase.

Does the code dependency analyzer output SVG or only Mermaid text?▼

The code dependency analyzer outputs Mermaid text by default, and can also output SVG format when the Mermaid CLI is installed locally on your system, allowing direct visual rendering of the generated diagrams.

What is the best way to analyze static import dependencies across Python and Go?▼

The best way to analyze static import dependencies across Python and Go is using built-in parsers that trace imports from a single root path. It respects a configurable file limit to manage analysis scope on large codebases.

How do I assess codebase coupling for architecture reviews?▼

Assess codebase coupling for architecture reviews by generating module-level architecture diagrams from extracted static imports. This reveals how modules depend on each other, simplifying structural communication and onboarding.

Are there limitations when visualizing code dependencies for very large repositories?▼

A limitation when visualizing code dependencies for large repositories is the configurable file limit, which caps the number of files analyzed. The tool also excludes common build directories to manage scope but may not capture dynamic imports.