Codemapper logo

Codemapper

Organization
zenobi-us
codemapper

Use when analyzing codebases for structure, finding symbols, tracing call paths, checking test coverage, or analyzing dependencies - provides instant AST-based code analysis using tree-sitter for Python, JavaScript, TypeScript, Rust, Java, Go, and C

Overview

Publisherzenobi-us
Repositorydotfiles
Skill namecodemapper
Stars
67
Forks
6
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zenobi-us on GitHub. Read the source before you install it.

Installation

Install the Codemapper AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zenobi-us/dotfiles.git /tmp/dotfiles
mkdir -p .claude/skills
cp -r /tmp/dotfiles/files/devtools/agent/bundles/developer/skills/devtools/codemapper .claude/skills/codemapper
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codemapper in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codemapper on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codemapper is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CodeMapper (cm) - Fast Code Analysis

Overview

CodeMapper (cm) uses tree-sitter AST parsing to provide instant code analysis without databases. Get project structure, find symbols, trace call graphs, and analyze dependencies in milliseconds.

Supported Languages: Python, JavaScript, TypeScript, Rust, Java, Go, C, Markdown

When to Use

Use CodeMapper when you need to:

  • ✅ Explore unfamiliar codebases (get overview, find structure)
  • ✅ Find symbol definitions and usages (functions, classes, methods)
  • ✅ Understand call graphs (who calls what, call paths)
  • ✅ Check test coverage (find untested code)
  • ✅ Analyze git changes at symbol level (breaking changes)
  • ✅ Pre-refactoring impact analysis (understand dependencies)

Don't use for:

  • ❌ Full-text search (use ripgrep/grep instead)
  • ❌ Runtime analysis (use profilers)
  • ❌ Code execution (use interpreters/compilers)

Quick Start

bash
# Step 1: Get overview
cm stats .

# Step 2: See file structure (ALWAYS use --format ai for LLMs)
cm map . --level 2 --format ai

# Step 3: Find specific code
cm query <symbol> --format ai

# Step 4: Deep dive into a file
cm inspect ./path/to/file --format ai

🔥 CRITICAL: Always use --format ai when analyzing code for LLM context. This is the most token-efficient format (60-80% reduction).

Essential Commands

TaskCommand
Project overviewcm stats .
File structurecm map . --level 2 --format ai
Find symbolcm query <name> --format ai
Show implementationcm query <name> --show-body --format ai
Who calls it?cm callers <symbol> --format ai
What does it call?cm callees <symbol> --format ai
Call path A→Bcm trace <from> <to> --format ai
Find testscm tests <symbol> --format ai
Untested codecm untested . --format ai
Breaking changescm since <commit> --breaking --format ai

For complete command reference: Read references/command-reference.md

Key Workflows

Exploring Unknown Code

bash
cm stats .
cm map . --level 2 --format ai
cm query <symbol> --format ai

Before Refactoring

bash
cm callers <function> --format ai      # Who depends on this?
cm tests <function> --format ai        # Is it tested?
cm callees <function> --format ai      # What does it depend on?

Code Health Check

bash
cm untested . --format ai                       # What's not tested?
cm since <last_release> --breaking --format ai  # Breaking changes?

For detailed workflows: Read references/workflows.md

Common Mistakes

❌ Forgetting --format ai

bash
# Bad (verbose, token-heavy)
cm map . --level 2

# Good (compact, LLM-optimized)
cm map . --level 2 --format ai

❌ Using grep for call graphs

bash
# Bad (misses indirect calls, false positives)
grep -r "process_payment"

# Good (accurate AST-based call graph)
cm callers process_payment --format ai

❌ Skipping stats/map

bash
# Bad (jumping to query without context)
cm query something --format ai

# Good (understand structure first)
cm stats .
cm map . --level 2 --format ai
cm query something --format ai

For more examples: Read references/common-mistakes.md

Best Practices

  1. Always start with overview: cm stats . then cm map . --level 2 --format ai
  2. Always use --format ai for LLMs: Token efficiency matters
  3. Fuzzy search first: Default fuzzy matching is more forgiving
  4. Check before refactoring: Run cm callers and cm tests before changes
  5. Use correct tool: CodeMapper for structure/calls, ripgrep for text search

Troubleshooting

No Symbols Found?

  • Check file extensions: cm stats . shows what's indexed
  • Try fuzzy search (default) vs --exact

Slow Queries?

  • First run builds cache (~10s)
  • Subsequent runs use cache (~0.5s)

Git Commands Fail?

  • Must be in a git repository for: diff, since, blame, history

For detailed troubleshooting: Read references/troubleshooting.md

Reference Documentation

  • references/command-reference.md - Complete command and flag reference
  • references/workflows.md - Detailed workflow patterns for common tasks
  • references/common-mistakes.md - Extended examples of what to avoid
  • references/troubleshooting.md - Comprehensive troubleshooting guide
  • references/integration-examples.md - CI/CD, documentation, code review patterns

Performance

  • Small repos (< 100 files): < 20ms instant
  • Medium repos (100-1000): ~0.5s with cache
  • Large repos (1000+): Fast mode auto-enabled

Cache location: .codemapper/ in project root (auto-managed)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codemapper AI skill do?

Use when analyzing codebases for structure, finding symbols, tracing call paths, checking test coverage, or analyzing dependencies - provides instant AST-based code analysis using tree-sitter for Python, JavaScript, TypeScript, Rust, Java, Go, and C

Why use Codemapper on TypingMind?

Because you install it once and use it with any model. Codemapper is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codemapper in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zenobi-us/dotfiles/tree/master/files/devtools/agent/bundles/developer/skills/devtools/codemapper. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codemapper?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codemapper?

As many as you like. As long as a model supports skills, you can use Codemapper with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codemapper AI skill free?

Yes. It is published on GitHub by zenobi-us under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇