In short.
Codebase Visualizer is a Claude Code skill for developers learning a repository’s layout, with a map that cannot explain code relationships. Its standard-library Python helper generates a local HTML page containing collapsible folders, file sizes and extension statistics. Default exclusions and a depth limit make the inventory incomplete by design. Unescaped names create an HTML injection risk, and symbolic links can extend scanning outside the target directory. Runtime behavior, performance, compatibility and licensing remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises the supplied SKILL.md and scripts/visualize.py in 04-Skills/projects/04-codebase-visualizer/.claude/skills/codebase-visualizer at revision 89fea03bf9d577c608bce49c66d942996e801b19. Both files were considered in full. No sibling or ancestor licence notices were supplied, so applicable rights remain unknown. The wider repository is outside this analysis. Installation, execution, generated browser output, compatibility and performance were not assessed.
The overview
Identity
Codebase Visualizer is the codebase-visualizer skill in huangjia2019/claude-code-engineering. The supplied folder contains SKILL.md and scripts/visualize.py. The skill describes repository exploration and permits Python commands through Bash; the helper performs the actual directory scanning and page generation.
The source location is [https://github.com/huangjia2019/claude-code-engineering/tree/main/04-Skills/projects/04-codebase-visualizer/.claude/skills/codebase-visualizer]. The supplied files are pinned to revision 89fea03bf9d577c608bce49c66d942996e801b19.
Assessment
The resource fits an initial orientation task: seeing how folders are arranged, which file extensions appear and where larger files sit. Its scope is narrow and understandable because the implementation inventories filesystem metadata without interpreting source code.
It needs caution with untrusted repository names because generated markup is not escaped. No execution results establish successful page generation, browser rendering or activation through Claude Code.
Users
Beginners joining an unfamiliar project can use the tree to learn its visible layout. Experienced developers can use the HTML inventory during onboarding or structural discussions, provided its exclusions and scan boundary are understood.
It offers little direct help with tracing execution, understanding imports or identifying architectural dependencies. File entries display names and sizes; the implementation provides no source viewer or file-opening action.
Capabilities
The generated page contains expandable folders, extension-based color indicators, formatted file sizes, total file and extension counts, and a chart of the fifteen most common extensions. Controls expand or collapse the tree and collapse folders at two preset depths.
The command accepts a target directory, --max-depth and --exclude. The visual depth controls only change what is displayed; they cannot reveal files omitted during scanning. Statistics count files by extension, not lines of code or detected programming languages.
Using it
Requirements
The helper requires Python 3, directory access for scanning, permission to write in the current working directory, and a browser with JavaScript for the interactive page. All Python imports are from the standard library, and the generated page embeds its CSS, JavaScript and data.
Claude Code provides the intended skill interface, but the helper also has a direct command-line entry point. Minimum supported Python and Claude Code versions, supported operating systems and browser compatibility are unspecified.
Mechanism
The script recursively enumerates entries, sorts directories before files, and records names, relative paths, extensions and file sizes. It does not read source-file contents. Directories without retained children disappear from the resulting tree.
It serializes the tree and extension counts into an HTML document. Browser JavaScript builds the tree and chart using innerHTML and changes CSS classes to control expansion. No model inference, external service calls or external asset dependencies appear in the supplied implementation.
Setup
The documented layout places SKILL.md and scripts/visualize.py under .claude/skills/codebase-visualizer in the project. From the project root, the documented command is python .claude/skills/codebase-visualizer/scripts/visualize.py . . The python command must resolve to Python 3.
The helper writes codebase-map.html in the current working directory, even when a different target directory is supplied. An existing file with that name is overwritten without a confirmation step. It then requests a default-browser launch; the generated file can also be opened manually.
Example
An illustrative command for the current project is python .claude/skills/codebase-visualizer/scripts/visualize.py . --max-depth 4 --exclude coverage,tmp
This requests a depth-limited scan and excludes entries whose names are exactly coverage or tmp. These exclusions are added to the defaults. The intended output is codebase-map.html with navigation controls and file statistics; no execution result or generated example page is supplied.
Assessment & evidence
Limitations
Project names are inserted directly into HTML, and entry names are concatenated into markup rendered through innerHTML. Crafted names could inject active browser content. The generated page also embeds relative paths and file sizes, so sharing it exposes repository metadata even though file contents are not read.
The scanner follows directory symbolic links without tracking visited locations. It can traverse outside the chosen root or count linked content repeatedly, although the depth limit bounds recursion. PermissionError during directory enumeration is silently skipped; other filesystem failures are not comprehensively handled.
The default maximum depth is 6. Defaults exclude common dependency, build, environment and version-control names, including .claude. Exclusions match exact names, not wildcard patterns, and .gitignore is not consulted. A previous codebase-map.html may be counted on a later scan before being overwritten.
The entire retained tree is built in memory and rendered into the page. Large-repository performance and accessibility are not assessed. The browser-launch success message does not check the boolean result returned by webbrowser.open.
Reasoning
A directory map can help locate likely areas of interest before reading code, and a self-contained HTML page makes that layout portable. However, extension counts and folder names provide only structural clues: the implementation parses no imports, symbols, calls or configuration relationships.
Its strongest fit is a trusted repository where a bounded inventory is sufficient. Questions about system behavior or architecture require additional evidence from source code and runtime behavior.
Alternatives
The relevant comparison is between a directory inventory, an editor file explorer and a tool that analyzes code relationships. This resource supplies the first through an HTML interface; requirements such as opening source files, searching contents or tracing dependencies need another approach.
The supplied files identify no alternative products and provide no comparative measurements, so relative speed, usability and completeness are unknown.
Evidence
The skill definition establishes its name, intended use, allowed command family and documented invocation: [https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/89fea03bf9d577c608bce49c66d942996e801b19/04-Skills/projects/04-codebase-visualizer/.claude/skills/codebase-visualizer/SKILL.md].
The Python implementation establishes scanning, exclusions, HTML generation, controls and file-writing behavior: [https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/89fea03bf9d577c608bce49c66d942996e801b19/04-Skills/projects/04-codebase-visualizer/.claude/skills/codebase-visualizer/scripts/visualize.py].
These files support conclusions about implementation, but provide no runtime results, screenshots, performance measurements or compatibility tests. No code was executed.
Access & freshness
Costs
The supplied files state no price or commercial terms, so the resource’s price is unknown. The helper requires no third-party Python packages and contains no model or API calls.
Local CPU, memory and storage use are unmeasured. Any costs associated with accessing Claude Code are not established by these files.
Rights
Neither supplied file contains a licence grant. No licence notices from beside or above the selected folder are included in the evidence.
Permission to copy, modify or redistribute these files therefore remains unknown. Applicable repository and directory notices need to be established before reuse.
Freshness
The source snapshot is revision 89fea03bf9d577c608bce49c66d942996e801b19, captured on 16 November 2026 at 02:39:52.759 UTC. That timestamp records capture, not the date the code was written or last maintained.
The commit date, release version, subsequent changes, maintenance cadence and compatibility with current Claude Code releases are unknown.
Actions
Establish the applicable licence before copying or redistributing the skill. Before using it with untrusted repositories, address HTML escaping and define whether symbolic links should be followed.
Choose the scan depth, exact-name exclusions and output directory deliberately. Check that an existing codebase-map.html can be replaced, and inspect embedded paths and filenames before sharing the page.
Verify generation and browser behavior on a representative repository before depending on the output. Treat its counts as a bounded inventory and use source analysis for architectural conclusions.
