跳到正文
cccskills
免费在 GitHub 公开

cxc-repo-map

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

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(61)

  • SKILL.md4.6 KB
  • agents/openai.yaml165 B
  • scripts/importance.py2.1 KB
  • scripts/LICENSE1.0 KB
  • scripts/NOTICE.md1.2 KB
  • scripts/queries/tree-sitter-language-pack/arduino-tags.scm177 B
  • scripts/queries/tree-sitter-language-pack/c-tags.scm461 B
  • scripts/queries/tree-sitter-language-pack/chatito-tags.scm338 B
  • scripts/queries/tree-sitter-language-pack/commonlisp-tags.scm4.6 KB
  • scripts/queries/tree-sitter-language-pack/cpp-tags.scm809 B
  • scripts/queries/tree-sitter-language-pack/csharp-tags.scm1.1 KB
  • scripts/queries/tree-sitter-language-pack/d-tags.scm1.4 KB
  • scripts/queries/tree-sitter-language-pack/dart-tags.scm2.2 KB
  • scripts/queries/tree-sitter-language-pack/elisp-tags.scm246 B
  • scripts/queries/tree-sitter-language-pack/elixir-tags.scm1.6 KB
  • scripts/queries/tree-sitter-language-pack/elm-tags.scm953 B
  • scripts/queries/tree-sitter-language-pack/gleam-tags.scm1.4 KB
  • scripts/queries/tree-sitter-language-pack/go-tags.scm1.3 KB
  • scripts/queries/tree-sitter-language-pack/java-tags.scm624 B
  • scripts/queries/tree-sitter-language-pack/javascript-tags.scm2.3 KB
  • scripts/queries/tree-sitter-language-pack/lua-tags.scm945 B
  • scripts/queries/tree-sitter-language-pack/ocaml_interface-tags.scm2.0 KB
  • scripts/queries/tree-sitter-language-pack/ocaml-tags.scm2.6 KB
  • scripts/queries/tree-sitter-language-pack/pony-tags.scm2.1 KB
  • scripts/queries/tree-sitter-language-pack/properties-tags.scm135 B
  • scripts/queries/tree-sitter-language-pack/python-tags.scm437 B
  • scripts/queries/tree-sitter-language-pack/r-tags.scm461 B
  • scripts/queries/tree-sitter-language-pack/racket-tags.scm224 B
  • scripts/queries/tree-sitter-language-pack/README.md327 B
  • scripts/queries/tree-sitter-language-pack/ruby-tags.scm1.3 KB
  • scripts/queries/tree-sitter-language-pack/rust-tags.scm1.4 KB
  • scripts/queries/tree-sitter-language-pack/solidity-tags.scm1.4 KB
  • scripts/queries/tree-sitter-language-pack/swift-tags.scm1.4 KB
  • scripts/queries/tree-sitter-language-pack/udev-tags.scm417 B
  • scripts/queries/tree-sitter-languages/c_sharp-tags.scm1.0 KB
  • scripts/queries/tree-sitter-languages/c-tags.scm461 B
  • scripts/queries/tree-sitter-languages/cpp-tags.scm803 B
  • scripts/queries/tree-sitter-languages/dart-tags.scm2.2 KB
  • scripts/queries/tree-sitter-languages/elisp-tags.scm332 B
  • scripts/queries/tree-sitter-languages/elixir-tags.scm1.6 KB
  • scripts/queries/tree-sitter-languages/elm-tags.scm951 B
  • scripts/queries/tree-sitter-languages/go-tags.scm848 B
  • scripts/queries/tree-sitter-languages/hcl-tags.scm2.1 KB
  • scripts/queries/tree-sitter-languages/java-tags.scm627 B
  • scripts/queries/tree-sitter-languages/javascript-tags.scm2.2 KB
  • scripts/queries/tree-sitter-languages/kotlin-tags.scm632 B
  • scripts/queries/tree-sitter-languages/ocaml_interface-tags.scm2.0 KB
  • scripts/queries/tree-sitter-languages/ocaml-tags.scm2.6 KB
  • scripts/queries/tree-sitter-languages/php-tags.scm714 B
  • scripts/queries/tree-sitter-languages/python-tags.scm325 B
  • scripts/queries/tree-sitter-languages/ql-tags.scm707 B
  • scripts/queries/tree-sitter-languages/README.md2.5 KB
  • scripts/queries/tree-sitter-languages/ruby-tags.scm1.3 KB
  • scripts/queries/tree-sitter-languages/rust-tags.scm1.4 KB
  • scripts/queries/tree-sitter-languages/scala-tags.scm1.7 KB
  • scripts/queries/tree-sitter-languages/typescript-tags.scm1.2 KB
  • scripts/repomap_class.py21.3 KB
  • scripts/repomap.py7.5 KB
  • scripts/requirements.txt133 B
  • scripts/scm.py1.9 KB
  • scripts/utils.py1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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:

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

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):

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:

.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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use for AST search and codemods. Triggers: ast-grep, sg, function/call/class/import, empty catch, missing await, YAML rules.

中文简介正在准备中。当前显示原文说明。

lidge-jun/codexclaw482026年10月22日 更新

cxc-dev

免费

Use for coding, PR delivery, scaffolding and QA. Triggers: develop, fix, refactor, test, review, docs, browse, stacked PR, 개발, 수정, 검토, 스택 PR.

中文简介正在准备中。当前显示原文说明。

lidge-jun/codexclaw482026年10月22日 更新

Use for module boundaries and dependencies. Triggers: circular import, coupling, barrel, re-export, validation placement, 모듈 경계, 순환 참조.

中文简介正在准备中。当前显示原文说明。

lidge-jun/codexclaw482026年10月22日 更新

Use for APIs, servers and app databases. Triggers: REST, GraphQL, migration, query optimization, middleware, caching, queues, 백엔드, API 작업, 마이그레이션, 쿼리 최적화.

中文简介正在准备中。当前显示原文说明。

lidge-jun/codexclaw482026年10月22日 更新

Use for code/PR/diff review and refactor audits. Triggers: review this, before merge, antipattern, 리뷰, 코드 리뷰, 머지 전에 확인.

中文简介正在准备中。当前显示原文说明。

lidge-jun/codexclaw482026年10月22日 更新

Use for analytics and data pipelines. Triggers: ETL, ELT, data quality, SQL optimization, schema drift, backfill, 데이터 파이프라인, 데이터 품질, 백필.

中文简介正在准备中。当前显示原文说明。

lidge-jun/codexclaw482026年10月22日 更新

查看 lidge-jun 的全部技能

报告此技能的问题