Skip to content
Back to skills

Cartographer 2

ASecurity

Maps and documents the codebase. Generates `docs/CODEBASE_MAP.md` with architecture diagrams, module relationships, and data flow. Use when the user asks to "map the code", "explain the architecture", or "update documentation".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationnodegitdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cartographer-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cartographer 2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cartographer 2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cartographer-2/badge)](https://www.skillsdirectory.com/skills/david-li0406-cartographer-2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cartographer
description: Maps and documents the codebase. Generates `docs/CODEBASE_MAP.md` with architecture diagrams, module relationships, and data flow. Use when the user asks to "map the code", "explain the architecture", or "update documentation".
---

# Cartographer

## Purpose
To create a living document (`docs/CODEBASE_MAP.md`) that serves as the architectural "Source of Truth" for the project.

## Workflow

### Phase 1: Reconnaissance
1.  **Tree Scan:** Execute a file listing command (e.g., `find . -maxdepth 2 -not -path '*/.*'`) to visualize the high-level structure.
2.  **Config Check:** Read `package.json` and `tsconfig.json` to identify the stack.

### Phase 2: Iterative Analysis
**Exclusion Protocol:** You must strictly ignore:
* Folders in `.gitignore` (specifically `node_modules/`, `.next/`, `dist/`, `build/`).
* Lock files (`package-lock.json`, `yarn.lock`).
* Public assets (`public/images/`).

**Loop:** For each *relevant* major directory (e.g., `app/`, `lib/`, `components/`):
1.  Read the entry point files.
2.  Apply the **Inspection Rubric** (`references/inspection-rubric.md`).
3.  Store findings in memory.

### Phase 3: Synthesis
Create or Overwrite `docs/CODEBASE_MAP.md` using the strict template in `references/map-template.md`.

## Critical Constraints
* **Mermaid Diagrams:** You MUST generate a Mermaid graph for the high-level architecture.
* **No Fluff:** Do not summarize code line-by-line. Focus on *intent*.
* **Linkage:** Every mention of a file in the map must be a clickable relative link.

Files in this skill

  • SKILL.md1.5 KB
  • references/inspection-rubric.md1 KB
  • references/map-template.md1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…