code-map

Generate deterministic dependency graphs from codebases using AST analysis.

3|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/cwijayasundara/claude_harness_eng_v5 --skill code-map-cwijayasundara
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-map
Source: https://github.com/cwijayasundara/claude_harness_eng_v5/tree/main/.claude/skills/code-map
Command: npx skills add https://github.com/cwijayasundara/claude_harness_eng_v5 --skill code-map-cwijayasundara

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ast, tree-sitter, sourcegraph, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of deterministic dependency graphs for codebases, providing a structured view of dependencies and relationships between code modules.

Core Features & Use Cases

  • Dependency Graph Generation: Builds a structured, queryable map of codebase dependencies.
  • AST-Based Analysis: Utilizes Abstract Syntax Trees for Python, React/JS/TS, and Java/C#/Go, with regex fallback for broader language support.
  • Use Case: Use this Skill to quickly visualize and understand the structure of a codebase, identify dependencies, and plan refactorings or refactorings.

Quick Start

Use the /code-map command to generate a dependency graph for the current codebase.

Frequently Asked Questions about code-map

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

FAQPage Schema
How do I generate a dependency graph for my codebase?

Codebase dependency graph generation uses AST analysis to map module relationships, outputting structured JSON, Mermaid visualizations, and ranked symbol maps for Python, React/JS/TS, Java, C#, and Go.

What is AST analysis for codebase visualization?

AST analysis for codebase visualization parses Abstract Syntax Trees to deterministically map structural dependencies between code modules, creating queryable graphs that help plan refactorings and identify architectural seams.

Does dependency mapping work with languages outside of Python and Java?

Dependency mapping supports Python, React/JS/TS, Java, C#, and Go via AST analysis, and provides a regex fallback mechanism to extend codebase dependency mapping to broader programming languages.

What is the best way to visualize code structure for refactoring?

The best way to visualize code structure for refactoring is generating deterministic dependency graphs using AST analysis, which outputs Mermaid diagrams and ranked symbol maps to identify module relationships and architectural seams.

What are the limitations of AST analysis for dependency mapping?

A limitation of AST analysis for dependency mapping is strict language support, requiring a regex fallback for unsupported languages, while accurately parsing supported code like Python, JS/TS, Java, C#, and Go.