code-map

Generate a CODEBASE_MAP.md index of functions, types, routes, components, and cross-references.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/0xACE3/opentools --skill code-map
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-map
Source: https://github.com/0xACE3/opentools/tree/main/skills/code-map
Command: npx skills add https://github.com/0xACE3/opentools --skill code-map

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebuilds a concise, AI-friendly index of the entire codebase to improve context for automated agents and developers.

Core Features & Use Cases

  • Creates CODEBASE_MAP.md listing functions, types, routes, components, and cross-references.
  • Works across multiple repos and languages to provide a single source of truth for code navigation.
  • Use before large refactors, audits, or onboarding to give agents a complete code context.

Quick Start

Run code-map from the repository root to regenerate CODEBASE_MAP.md.

Frequently Asked Questions about code-map

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

FAQPage Schema
How do I generate an AI-readable codebase index for my repository?

To generate a codebase index, run code-map from the repository root to regenerate CODEBASE_MAP.md. This file lists functions, types, routes, components, and cross-references extracted across multiple repos and languages.

What is a code map and when do I need one for development?

A code map is a concise, AI-friendly index of your entire codebase that provides context for automated agents and developers. You need it before large refactors, audits, or onboarding to give agents complete code context.

Can I use a single code map across multiple repositories and languages?

Yes, code-map works across multiple repos and code types to provide a single source of truth for code navigation. It extracts cross-references and structural elements to produce a navigable map.

How do I extract functions, types, and routes from my codebase for AI context?

Running code-map extracts functions, types, routes, components, and cross-references from your repository. It compiles these elements into a navigable, human- and AI-readable CODEBASE_MAP.md file.

What's the best way to give an AI agent context about my entire codebase?

The best way to provide AI context is regenerating a complete CODEBASE_MAP.md index. This file serves as a single source of truth, listing extracted functions and components for automated agents during development and planning.