Cxc Repo Map logo

Cxc Repo Map

Community
lidge-jun
cxc-repo-map

Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.

Overview

Publisherlidge-jun
Repositorycodexclaw
Skill namecxc-repo-map
Stars
51
Forks
10
Bundled files
57
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.

  • 57 bundled files

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

  • Open source

    Published by lidge-jun on GitHub. Read the source before you install it.

Installation

Install the Cxc Repo Map 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.
    https://github.com/lidge-jun/codexclaw/tree/main/plugins/codexclaw/skills/repo-map
  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/lidge-jun/codexclaw.git /tmp/codexclaw
mkdir -p .claude/skills
cp -r /tmp/codexclaw/plugins/codexclaw/skills/repo-map .claude/skills/cxc-repo-map
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cxc Repo Map 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 Cxc Repo Map 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 Cxc Repo Map 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.

repo-map

RepoMap generates a compact symbol overview for a repository or subtree. It uses tree-sitter tag queries to find definitions and references, then ranks files and symbols with PageRank over the reference graph. The implementation is vendored from Pete Davis' RepoMapper and keeps the Aider lineage for the .scm tag queries.

Reach for it before deep rg dives when you are entering unfamiliar C2+ code and need the project shape: important files, definitions, cross-file reference gravity, and the likely architectural center of a subtree.

rg and ast-grep boundaries

Use rg for text, filenames, comments, literal strings, and byte-level regex searches.

Use cxc-ast-grep for shape search and deterministic rewrites: function/call patterns, imports, syntax-aware migrations, and codemods.

Use this skill for an overview map, not for exact search. The map is a guide for where to inspect next, not proof that a symbol is absent.

When to use this skill

  • "Give me a repo map of this package."
  • "I am in unfamiliar code; show me the structure first."
  • "What files define the main symbols in this subtree?"
  • "Build an architecture map before changing this module."
  • "와꾸 먼저 보자."

CLI usage

Preferred:

bash
cxc map .
cxc map src/ --budget 2048

Direct script:

bash
python3 plugins/codexclaw/skills/repo-map/scripts/repomap.py .
python3 plugins/codexclaw/skills/repo-map/scripts/repomap.py src/ --budget 2048

Useful flags:

Note: compiled-output dirs (dist, build, target, out, coverage) are skipped during directory expansion. If a repo's real sources live there, pass the path explicitly (e.g. cxc map dist/) to map it anyway.

bash
--map-tokens N      # token budget; default 4096
--budget N          # alias for --map-tokens
--chat-files ...    # files currently in focus, ranked higher
--mentioned-idents  # symbols to boost
--verbose           # stderr summary: files, defs, refs

Dependencies

cxc map resolves its Python dependencies through a bootstrap ladder, so in most environments no manual install is needed:

  1. CODEXCLAW_PYTHON env override — that interpreter is used verbatim.
  2. uv on PATH — the script runs via uv run --with-requirements, and deps resolve into uv's own rebuildable cache automatically (first run pays a short resolve; later runs are warm).
  3. An existing venv at $CODEXCLAW_HOME|~/.codexclaw/venvs/repomap — a user-level rebuildable derived cache (philosophy §2). Auto-created only when CODEXCLAW_MAP_BOOTSTRAP=1 is set (opt-in network install).
  4. Bare python3 — works when deps are already installed; otherwise degrades to the install hint below.

Manual install (rung 4 environments):

bash
python3 -m pip install -r plugins/codexclaw/skills/repo-map/scripts/requirements.txt

The CLI degrades cleanly when dependencies are missing. --help works with only system Python and always bypasses the ladder (dep-free help contract). A real map run without parser dependencies prints a single install hint and exits with code 3.

The pinned parser stack matters: tree-sitter-language-pack==0.9.0 and tree-sitter==0.25.1 are the verified working pair for this vendored parser API.

Cache

RepoMap stores derived tag cache data under:

text
.codexclaw/cache/repomap/tags.v1

Set CODEXCLAW_REPOMAP_CACHE to override the location. The cache is rebuildable derived data. It is wiped only by cxc reset --all.

Verification tiers

Locally fixture-verified: TypeScript/JavaScript, Python, and Rust.

Other languages inherit the vendored Aider-tested .scm tag queries on a best-effort basis. Treat those maps as orientation, then inspect the files they surface.

Notes

  • On-demand skill (allow_implicit_invocation: false); reached by trigger or explicit use.
  • Discoverability: a SessionStart hook (hooks/session-start-announcing-map-affordance.json, cxc-ops) announces this tool's existence once per session when the repo clears a source-file size gate. That is a POINTER only — the map body is never session-injected (on-demand stays the rule). This is the runtime companion to the dev §1.5 DEV-MAP-FIRST-01 routing, which is model-autonomous.
  • Stateless one-shot CLI: no daemon, server, MCP process, background indexer, or workspace watcher.
  • Lazygap 005 compliant: no dependency import or runtime setup is required for --help; heavy Python modules load only after argument parsing.

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 Cxc Repo Map AI skill do?

Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.

Why use Cxc Repo Map on TypingMind?

Because you install it once and use it with any model. Cxc Repo Map 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 Cxc Repo Map in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lidge-jun/codexclaw/tree/main/plugins/codexclaw/skills/repo-map. 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 Cxc Repo Map?

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 Cxc Repo Map?

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

Is the Cxc Repo Map AI skill free?

Yes. It is published on GitHub by lidge-jun 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 👇