Use for AST search and codemods. Triggers: ast-grep, sg, function/call/class/import, empty catch, missing await, YAML rules.
日本語の概要は準備中です。原文の説明を表示しています。
Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture 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.
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.
Preferred:
cxc map .
cxc map src/ --budget 2048
Direct script:
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.
--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
cxc map resolves its Python dependencies through a bootstrap ladder, so in most
environments no manual install is needed:
CODEXCLAW_PYTHON env override — that interpreter is used verbatim.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).$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).python3 — works when deps are already installed; otherwise degrades to
the install hint below.Manual install (rung 4 environments):
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.
RepoMap stores derived tag cache data under:
.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.
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.
allow_implicit_invocation: false); reached by trigger or
explicit use.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.--help; heavy Python modules load only after argument parsing.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use for AST search and codemods. Triggers: ast-grep, sg, function/call/class/import, empty catch, missing await, YAML rules.
日本語の概要は準備中です。原文の説明を表示しています。
Use for coding, PR delivery, scaffolding and QA. Triggers: develop, fix, refactor, test, review, docs, browse, stacked PR, 개발, 수정, 검토, 스택 PR.
日本語の概要は準備中です。原文の説明を表示しています。
Use for module boundaries and dependencies. Triggers: circular import, coupling, barrel, re-export, validation placement, 모듈 경계, 순환 참조.
日本語の概要は準備中です。原文の説明を表示しています。
Use for APIs, servers and app databases. Triggers: REST, GraphQL, migration, query optimization, middleware, caching, queues, 백엔드, API 작업, 마이그레이션, 쿼리 최적화.
日本語の概要は準備中です。原文の説明を表示しています。
Use for code/PR/diff review and refactor audits. Triggers: review this, before merge, antipattern, 리뷰, 코드 리뷰, 머지 전에 확인.
日本語の概要は準備中です。原文の説明を表示しています。
Use for analytics and data pipelines. Triggers: ETL, ELT, data quality, SQL optimization, schema drift, backfill, 데이터 파이프라인, 데이터 품질, 백필.
日本語の概要は準備中です。原文の説明を表示しています。