cartography

Map repository files and generate hierarchical codemap.md templates with change tracking.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/SaintFore/OpenCodeSettings --skill cartography-saintfore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cartography
Source: https://github.com/SaintFore/OpenCodeSettings/tree/main/skills/cartography
Command: npx skills add https://github.com/SaintFore/OpenCodeSettings --skill cartography-saintfore

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Helps engineers and orchestrators quickly understand large or unfamiliar codebases by producing structured, per-folder codemaps and a machine-readable state for detecting changes, removing the manual toil of locating responsibilities and integration points across a repository.

Core Features & Use Cases

  • Initialize a mapping of core source/config files while excluding tests, docs, and dependencies.
  • Compute and persist MD5 file and folder hashes in .slim/cartography.json for reliable change detection.
  • Create empty codemap.md templates for each relevant folder and enable targeted explorer updates when files change.
  • Use Case: Onboarding a new contributor or running an automated audit to identify which subfolders changed and which codemaps need updating.

Quick Start

Run the cartographer init workflow to create .slim/cartography.json and codemap.md templates for each relevant folder in the repository.

Frequently Asked Questions about cartography

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

FAQPage Schema
How do I generate hierarchical codemaps for a large repository?

You can generate hierarchical codemaps by initializing mapping on a source code repository to compute MD5 file hashes, detect changes, and populate codemap.md templates for each relevant folder. State is persisted for ongoing tracking.

What is the best way to track file changes across a codebase for automated audits?

The best way to track file changes is by computing and persisting MD5 file and folder hashes to a state file. This enables reliable change detection to identify modified subfolders and determine which codemaps require updates.

Can I exclude tests and dependencies when mapping a repository?

Yes, you can exclude tests, docs, and dependencies when mapping a repository by using include and exclude globs with built-in .gitignore support. This ensures only core source and config files are mapped.

How does change detection work for repository mapping?

Change detection works by computing MD5 hashes for files and folders, then persisting this state to a JSON file. On subsequent runs, it compares current hashes against the persisted state to detect added, removed, or modified files.

Do I need to manually update codemaps when source files change?

No, you do not need to manually update codemaps. When files change, the mapping process spawns per-folder explorer agents that automatically create or update the codemap.md files for affected folders based on detected modifications.