数据分析

codemap

试用

Build a compact local SQLite index of every function, class, method, interface and type across your repos, so an agent finds a symbol's file:line and signatu...

它能做什么

Build a compact local SQLite index of every function, class, method, interface and type across your repos, so an agent finds a symbol's file:line and signature in one lookup instead of a tree-wide grep plus whole-file read.

技能文档

codemap

Agents burn tokens re-discovering the same code: grep a name across the trees, then read the file the hit lives in (often the whole thing) to see the signature. codemap collapses that to one short record — file:line plus the signature. Pure Python standard library: no network, no model call, no dependencies.

The executable is {baseDir}/bin/codemap. Build the index once over your roots, then query it instead of grepping.

When to use this

Use it whenever you are about to grep a codebase for where a function/class/type is defined, or need a symbol's signature. Build the index at the start of a session over the repos you will touch, then find instead of grepping. Best on Python and JS/TS/JSX/TSX projects.

How to use it

1. Build (or rebuild) the index over one or more roots

{baseDir}/bin/codemap build   ...

Idempotent — build deletes and re-inserts. Skips node_modules, .next, .git, dist. Rebuild after large edits (there is no file-watcher).

2. Find a symbol

{baseDir}/bin/codemap find scan            # exact match by default
{baseDir}/bin/codemap find scan --like     # substring match
{baseDir}/bin/codemap find Pipeline --kind class
{baseDir}/bin/codemap find scan --json     # machine-readable

find exits non-zero when nothing matches, so it drops into a && chain.

3. Outline a file / see stats

{baseDir}/bin/codemap file src/app/page.tsx
{baseDir}/bin/codemap stats

What it indexes

  • Python: top-level functions, classes, methods (incl. async def).
  • JS / TS / JSX / TSX: function declarations, exported arrow consts, classes, interfaces, type aliases.

Notes for the agent

  • Reference the tool as {baseDir}/bin/codemap — never hardcode a path.
  • Extraction is regex-based, not a full parser: it catches common declaration forms but misses exotic ones (decorated factories, re-exports, dynamically assigned names). It answers "where is X defined", not "who calls X".
  • The index is a snapshot — rebuild after large edits.
  • Built by Workloft (https://workloft.ai/labs).

相关技能

Study unfamiliar codebases and produce evidence-backed knowledge artifacts. Use for repository orientation, architecture mapping, subsystem tracing, onboarding, or codebase documentation.

代码库索引与理解系统。扫描项目目录,提取所有符号定义(类、函数、变量、导入),构建可搜索的 JSON 索引,支持按名称/类型/文件查询。受 Claude Code 的 codebase indexing 启发,100% 原创实现,使用 Python ast + ripgrep。

6 次安装

Route and sequence coding tasks by selecting and orchestrating code exploration, planning, writing, debugging, refactoring, security, safe commands, and Git...

15 次安装

Delegate coding, repository analysis, file edits, test runs, or code review to the local Codex CLI without embedding an OpenAI API key. This skill was created to work with ChatGPT/Codex enterprise accounts that may not have the same level of API access. Invokes codex exec with existing ChatGPT/Codex CLI authentication and returns Codex's final output.

6 次安装1 星标

Generate visual HTML pages for code review (diff + risk tags), code walkthrough (call chains + trust boundaries), and architecture analysis (module dependencies + tech debt). Three modes with shared dark-theme template.

1 次安装

AI coding agent powered by CellCog Co-work. Code generation, debugging, refactoring, codebase exploration, terminal operations — executed directly on your machine. Lightweight with multimedia tools loaded on demand.

24 次安装