map

Map JavaScript and TypeScript codebase architecture via import graph regex analysis.

4|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/Dragoon0x/dragoon-skills --skill map-dragoon0x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: map
Source: https://github.com/Dragoon0x/dragoon-skills/tree/main/skills/map
Command: npx skills add https://github.com/Dragoon0x/dragoon-skills --skill map-dragoon0x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manually mapping a codebase's structure, identifying unused files, and auditing dependencies is time-consuming and error-prone, especially when onboarding to a new project or planning a cleanup.

Core Features & Use Cases

  • Architecture Metrics: Reports total file, line, and byte counts for the target codebase.
  • Structural Insights: Identifies hot files (most imported), largest files by line count, orphan files (imported by no other files), and most-used external dependencies.
  • Use Case: When joining a new team, run this skill to quickly understand the project's structure, spot dead code to remove, and identify overgrown files that need splitting.

Quick Start

Use the map skill to generate a full architecture overview of your codebase, including hot files, orphan files, and top external dependencies.

Frequently Asked Questions about map

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

FAQPage Schema
How do I map codebase architecture to identify hot files and orphans?

To map codebase architecture, run a static import graph analysis using regex to identify hot files, orphan files, and top external dependencies without requiring AST parsing or network access. The tool outputs human-readable or JSON metrics including file counts and largest files.

Can I find dead code in JavaScript and TypeScript projects without AST parsing?

Yes, you can find dead code in JavaScript and TypeScript projects by analyzing import graphs via regex to detect orphan files that are imported by no other files, eliminating the need for heavy AST parsing. This approach quickly highlights unused files for removal.

What is the best way to audit external dependencies for onboarding to a new codebase?

The best way to audit external dependencies during codebase onboarding is to run a static import analysis that surfaces the most-used external dependencies, hot files, and structural metrics like total line counts. This provides a fast, zero-dependency overview of the project.

Does this codebase mapping tool require network access or external dependencies?

No, this codebase mapping tool requires zero network access and has no external dependencies, relying entirely on local static import graph regex analysis to output architecture metrics and identify dead code. It safely audits JavaScript and TypeScript projects offline.

How do I prioritize splitting large files in a TypeScript project?

To prioritize splitting large files in a TypeScript project, run a static architecture mapping tool to identify the largest files by line count and byte size, then target those overgrown files for refactoring based on import metrics. This helps sequence structural cleanup effectively.