Codemap

From ils15/pantheon-legacy · View interactive version

Codemap is an AI agent skill from the GitHub repository ils15/pantheon-legacy. Generate codebase maps with directory trees and relationships. Use for onboarding and architecture documentation.

How to use this skill

Skill file

Codemap — Codebase Cartography

When to Use

How to Generate

1. Directory Tree

tree -I 'node_modules|.git|__pycache__|*.pyc|.venv|dist|build' -L 3

2. Entry Points

Identify main entry points:

3. Module Map

For each significant directory, document:

4. Relationship Graph

Show how modules connect:

frontend/ → api/ (HTTP calls)
backend/ → database/ (SQLAlchemy models)
worker/ → queue/ (Redis/RabbitMQ)

Output Format

# Codemap: <Project Name>

## Entry Points
- `src/main.py` — FastAPI application
- `scripts/migrate.sh` — Database migration runner

## Directory Structure

src/

├── api/ # REST endpoints

├── services/ # Business logic

├── models/ # Database schemas

└── utils/ # Shared utilities


## Module Relationships
| Module | Depends On | Used By |
|--------|-----------|---------|
| api/ | services/, models/ | — (top level) |
| services/ | models/, utils/ | api/ |
| models/ | — | api/, services/ |

## Key Files
| File | Purpose | Lines |
|------|---------|-------|
| src/api/auth.py | Authentication endpoints | 120 |
| src/services/user.py | User business logic | 200 |

Maintenance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.