Browse Source

Add dedicated Cartography skill documentation page and link from README (#100)

Co-authored-by: cto-new[bot] <140088366+cto-new[bot]@users.noreply.github.com>
cto-new[bot] 2 months ago
parent
commit
52c0c82b28
3 changed files with 62 additions and 0 deletions
  1. 1 0
      README.md
  2. 58 0
      docs/cartography.md
  3. 3 0
      docs/quick-reference.md

+ 1 - 0
README.md

@@ -233,6 +233,7 @@ https://raw.githubusercontent.com/alvinunreal/oh-my-opencode-slim/refs/heads/mas
 
 - **[Quick Reference](docs/quick-reference.md)** - Presets, Skills, MCPs, Tools, Configuration
 - **[Installation Guide](docs/installation.md)** - Detailed installation and troubleshooting
+- **[Cartography Skill](docs/cartography.md)** - Custom skill for repository mapping + codemap generation
 - **[Antigravity Setup](docs/antigravity.md)** - Complete guide for Antigravity provider configuration
 - **[Tmux Integration](docs/tmux-integration.md)** - Real-time agent monitoring with tmux
 

+ 58 - 0
docs/cartography.md

@@ -0,0 +1,58 @@
+# Cartography Skill
+
+Cartography is a **custom skill** bundled with this repo.
+
+It helps agents quickly build a high-quality mental model of an unfamiliar codebase by generating a structured *codemap* and tracking changes over time.
+
+## What it does
+
+Cartography is designed for repository understanding and hierarchical codemap generation:
+
+1. Selects relevant code/config files using LLM judgment
+2. Creates `.slim/cartography.json` for change tracking
+3. Generates `codemap.md` templates (per folder) for explorers to fill in
+
+## How to use
+
+Cartography is installed automatically by the `oh-my-opencode-slim` installer when custom skills are enabled.
+
+### Run it (manual / local)
+
+From a repo root (or with an explicit `--root`):
+
+```bash
+# Initialize mapping
+python3 cartographer.py init --root /repo --include "src/**/*.ts" --exclude "node_modules/**"
+
+# Check what changed
+python3 cartographer.py changes --root /repo
+
+# Update hashes
+python3 cartographer.py update --root /repo
+```
+
+## Outputs
+
+### `.slim/cartography.json`
+
+A change-tracking file with hashes for files/folders.
+
+### `codemap.md` (per folder)
+
+Empty templates created in each folder so an Explorer-style agent can fill in:
+
+- Responsibility
+- Design patterns
+- Data/control flow
+- Integration points
+
+## Screenshot
+
+The existing screenshot lives in `img/cartography.png`.
+
+![Cartography screenshot](../img/cartography.png)
+
+## Related
+
+- `src/skills/cartography/README.md` and `src/skills/cartography/SKILL.md` contain the skill’s internal docs.
+- `codemap.md` at the repo root is an example output/starting point.

+ 3 - 0
docs/quick-reference.md

@@ -6,6 +6,7 @@ Complete reference for oh-my-opencode-slim configuration and capabilities.
 
 - [Presets](#presets)
 - [Skills](#skills)
+  - [Cartography](#cartography)
 - [MCP Servers](#mcp-servers)
 - [Tools & Capabilities](#tools--capabilities)
 - [Configuration](#configuration)
@@ -183,6 +184,8 @@ Skills are specialized capabilities provided by external agents and tools. Unlik
 
 **Automated repository mapping through hierarchical codemaps.**
 
+A dedicated guide (with screenshots) lives at: **[docs/cartography.md](cartography.md)**.
+
 `cartography` empowers the Orchestrator to build and maintain a deep architectural understanding of any codebase. Instead of reading thousands of lines of code every time, agents refer to hierarchical `codemap.md` files that describe the *why* and *how* of each directory.
 
 **How to use:**