Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

code-crawler

БесплатноБез исполняемых скриптовНе проверен

Answer questions about code relationships in an indexed repository - callers, callees, impact, entry points, routes, DI wiring, dead code, cycles - using the…

nithin554от nithin554871 установка в других каталогах

Об этом скилле

Code Crawler

A SQLite property graph of a codebase, exposed as 29 MCP tools. The graph is built once by a crawl, then queried cheaply many times.

Getting the tools

Check first. If no code-crawler tools appear in your tool list, the server is not registered and nothing else in this skill will run. Say so instead of falling back to grep.

Registering the server writes a stdio entry into a client config file such as .cursor/mcp.json or .mcp.json. That file is the user's machine state, not yours: show the exact file and the entry it will gain, and wait for explicit approval before anything writes it.

Installing the skill does not install the server: npx [email protected] add nithin554/code-crawler delivers these instructions, and npx [email protected] @nithin554/[email protected] — or the config below — registers the server that delivers the tools. Both are needed, and they are independent. The versions are pinned deliberately: an unpinned npx runs whatever the registry serves at that moment, so move a pin only to a release you have reviewed.

If this skill arrived inside the code-crawler plugin, the server is registered for you. The plugin starts the server from the plugin directory, but resolves a project for each call — crawl_project, the client's workspace roots, or the project this session already selected — and keeps that repository's graph in <project>/.code-crawler/index.db. One plugin install serves every repository you open, each with its own database. Set CODECRAWLER_DB to pin a single file instead.

The server is the npm package @nithin554/code-crawler and needs Node.js ≥ 22.12. Every stdio MCP client takes the same command/args/env triple:

{
  "mcpServers": {
    "code-crawler": {
      "command": "npx",
      "args": ["-y", "@nithin554/[email protected]", "serve"],
      "env": { "CODECRAWLER_DB": "/absolute/path/to/index.db" }
    }
  }
}

npx -y @nithin554/[email protected] needs no prior install. If the package is already installed globally, use "command": "codecrawler" with "args": ["serve"]. From a source checkout, point "command": "node" at dist/index.js, keeping "args": ["serve"]. serve is the default subcommand, so args may omit it.

Writing that JSON by hand is the slow way. add-mcp fills it in for whichever client you name. Run it from inside the repository you want indexed:

npx [email protected] @nithin554/[email protected] --args serve -a cursor

add-mcp writes client configuration, so run it only after the user approves the file and the server entry it will create.

It derives the server name code-crawler from the package, so no --name is needed. -a accepts claude-code, cursor, vscode, claude-desktop, codex, opencode, zed and about twenty more — npx [email protected] list-agents prints the list. Without -g the entry lives in the project (.mcp.json, .cursor/mcp.json, .vscode/mcp.json); -g writes user-level config. Repeat --args and --env once per value.

--env CODECRAWLER_DB is optional: the server indexes into <project>/.code-crawler/index.db by default. Pin it — --env CODECRAWLER_DB=/absolute/path/index.db — when you want the file elsewhere, or when the client's working directory is not the project.

Three things decide whether the graph is usable:

  • CODECRAWLER_DB is the SQLite file holding the graph. The default needs no configuration: the server walks up from its working directory to the nearest project root (.git, package.json, pom.xml, build.gradle, pyproject.toml, setup.py, requirements.txt, go.mod, Cargo.toml) and uses <project>/.code-crawler/index.db, so each repository gets its own file. With no enclosing project it falls back to ~/.code-crawler/index.db. That home file is the fallback and nothing more, never an enclosing project, so an unmarked folder under ~ gets its own file rather than sharing it. A database still holds exactly one project — crawling a different path into one is refused before anything is written; give that project its own database (its own registration), or run clear_index to replace the existing index.
  • One server per project. A process opens one database at startup and a database holds one project, so register the server once per repository (project-scoped config, above) rather than once globally for all of them. crawl resolves the same way, so crawling a subdirectory such as repo/src shares repo's file instead of growing a second one.
  • Never share one CODECRAWLER_DB across repositories. Do that and the second project's crawl hits the one-project error above.
  • Use absolute paths. Clients launch servers from an unpredictable working directory, so a relative CODECRAWLER_DB or a relative project root lands somewhere unexpected — and the default resolution follows the cwd you may not have chosen.
  • Config is all environment variables, id
Полный SKILL.md на ClawHub

Установить code-crawler в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл code-crawler?

Answer questions about code relationships in an indexed repository - callers, callees, impact, entry points, routes, DI wiring, dead code, cycles - using the code-crawler MCP server's SQLite property graph. Also covers the one-time setup that registers that server in an MCP client such as Cursor, Claude Code, VS Code, Codex, or Zed. Use when the question is about how symbols connect (who calls this, what breaks if I change it, where does a request enter, is this reachable) rather than about text you can find by searching. Do not crawl a repository just to answer a question about a single file you already have open.

Как установить скилл code-crawler?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-crawler запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить code-crawler с