cartography

Hash files and generate per-folder codemaps to detect repository changes.

1|2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/EremesNG/oh-my-opencode-lite --skill cartography-eremesng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cartography
Source: https://github.com/EremesNG/oh-my-opencode-lite/tree/main/src/skills/cartography
Command: npx skills add https://github.com/EremesNG/oh-my-opencode-lite --skill cartography-eremesng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Cartography automates repository mapping and change detection, generating a persistent state and per-folder codemaps to help engineers understand, audit, and evolve large codebases.

Core Features & Use Cases

  • Initialize project state and compute file/folder hashes to detect changes across the repository.
  • Generate empty codemap.md templates for folders to document responsibilities, design, flow, and integration points.
  • Respect .gitignore and user-specified include/exclude patterns to focus on relevant code.
  • Use the built-in commands (init, changes, update) to maintain an up-to-date map of the repository.

Quick Start

Run cartographer.py init --root ./ to create the initial state and codemaps for your project.

Frequently Asked Questions about cartography

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

FAQPage Schema
How do I automate repository mapping and track changes across a large codebase?

You can automate repository mapping by computing file and folder hashes to detect changes across a codebase. The tool generates a persistent state file and per-folder codemaps, updating documentation as files change to ensure reproducible audits.

What's the best way to generate codemaps for folders to document codebase responsibilities and integration points?

Generate per-folder codemaps by initializing repository state to create empty markdown templates. These templates document folder responsibilities, design, flow, and integration points, providing a structured architectural map of your codebase.

Does this change detection tool respect .gitignore and support include or exclude patterns?

Yes, the change detection mechanism respects .gitignore rules and supports user-specified include and exclude patterns. This filtering ensures codemap generation and file hashing focus only on relevant code files.

Can I use this repository mapping approach for codebases of any size?

Yes, this repository mapping approach is designed for codebases of any size. It initializes state, computes hashes, and generates folder-level codemaps regardless of scale, ensuring reproducible audits and consistent change tracking.

Do I need Python 3 to run the repository mapping and change detection commands?

Yes, Python 3 is required to run the repository mapping and change detection commands. The tool uses Python scripts and built-in commands like init, changes, and update to maintain an up-to-date map of your repository.

Why is repository change detection not working correctly when files are updated?

Repository change detection relies on hashing files and storing state in a JSON configuration file. If detection fails, ensure the state file is intact and your include or exclude patterns are correctly configured to track modified files.