# Codemap: interactive map of a codebase

> Builds one interactive HTML page that maps a JS/TS repo or Shopify theme: what each file does, how files link, pages, flows, where to change things, git history and possibly unused code.

Codemap: interactive map of a codebase is a paid AI agent skill on Agensi by Tosin Alade, in E-commerce. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Tosin Alade](https://www.agensi.io/creators/tosin-alade)
- Category: [E-commerce](https://www.agensi.io/skills/ecommerce)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/codemap-interactive-map-of-a-codebase
- Tags: documentation, code-review, ecommerce, javascript, typescript, shopify, liquid, nextjs

## About this skill

Point it at a JavaScript/TypeScript repo or a Shopify theme and it produces one HTML page for a person who wants to understand the code.

### What the page shows

- **Map**: every file and the links between them, in columns from the files that use the most to the files that are used the most. Click a file for what it does, what it uses, what uses it, how often it changes and which decisions mention it.
- **Pages** (or **Templates** for a theme): each route or template with its sections in order and the data each one reads.
- **Flows**: real journeys through the code, step by step (a request arriving, a form being submitted).
- **Where to change**: prices, copy, navigation, colours and the like, each mapped to the file that holds it.
- **Start here**: a reading order and questions to check your understanding.
- **Health**: hot spots, possibly unused code with a confidence tier and the evidence, docs that point at missing files, decisions that may be out of date, and what changed since the last map.

### Two layers

- **Computed** by the included scripts, with no model calls: links, pages, git history, findings. The same code always gives the same result.
- **Written** by the agent from reading the code: descriptions, flows, the change index. Each description records how closely its file was read and the file hash it was written against, so it is flagged when the file changes.

Nothing is ever written into the repo being mapped. Data goes to `~/.local/share/codemap/<repo-name>/`.

### Use it

Ask your agent to "map this repo" or "refresh the code map". Needs Node 18+, Python 3.8+ and git.

## Requires

- Git
- Node.js 18+
- Python 3.8+

Nothing is written into the repo you map; output goes to ~/.local/share/codemap/. Tested on a Next.js site and on Shopify's Dawn theme.

## Known limitations

Needs Node 18+, Python 3.8+ and git. Supports JavaScript/TypeScript repos and Shopify themes only. 'Unused' means nothing in the map refers to a file, not proof it never loads at run time, and Liquid snippets rendered by a variable name can't be traced. History signals are weak in repos with few commits. On repos over about 150 files the agent describes the most-used files first; the computed map always covers every file.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Codemap: interactive map of a codebase skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does codemap produce?

One HTML page per repo with six tabs: Start here, Map, Pages (or Templates for a theme), Flows, Where to change and Health. It also writes a short codemap.md summary for coding agents.

### Which agents and languages does it support?

Any agent that can run local Node and Python scripts, such as Claude Code. It maps JavaScript and TypeScript repos, including Next.js App Router pages, and Shopify themes.

### How does the map stay accurate as the code changes?

Each description is stamped with the hash of the file it was written against. On a refresh, changed files are flagged as stale and the Health tab lists new, removed and edited files since the last map.

### Does it change my repo or send my code anywhere?

No. The scripts only read the repo and write to ~/.local/share/codemap/, and they make no network calls.

### What are its limits?

It covers JavaScript/TypeScript and Shopify themes only. 'Possibly unused' is based on what the map can see, so each finding states its evidence and confidence. Theme JSON in git can lag the live store if merchants edit in the admin. It has been tested on one Next.js site and on Shopify's Dawn theme, so expect rough edges elsewhere.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
