---
title: "map"
description: "Generate a dependency map showing how modules and files relate to each other in the codebase."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/map
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:30:46.645Z
license: CC-BY-4.0
attribution: "map — Claudary (https://claudary.paisolsolutions.com/skills/map)"
---

# map
Generate a dependency map showing how modules and files relate to each other in the codebase.

## Overview

Generate a dependency map showing how modules and files relate to each other in the codebase.

## Steps


1. Scan all source files and extract import/require statements.
2. Build a dependency graph:
3. Classify modules by role:
4. Calculate module metrics:
5. Identify high-risk areas:
6. Generate a visual map in text or Mermaid format.

## Format


```
Core Modules (high fan-in):
  - <module>: imported by <N> files

Dependency Chains:
```


## Rules

- Only map first-party code, not node_modules or third-party packages.
- Flag circular dependencies as issues that need resolution.
- Highlight modules that are single points of failure.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/map) · https://claudary.paisolsolutions.com
