gitnexus
БесплатноБез исполняемых скриптовНе проверенGitNexus indexes a codebase into a local knowledge graph of symbols, calls, imports, clusters and execution flows, and serves it to AI coding agents through…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
GitNexus
Overview
GitNexus parses a repository with Tree-sitter, resolves imports and calls across files, groups symbols into clusters, traces execution flows from entry points, and stores the result in an embedded graph database inside the repo (.gitnexus/). Agents query that graph through an MCP server (gitnexus mcp); people query it with the same commands on the CLI. Indexing and queries run locally. A browser UI at gitnexus.vercel.app can explore small repos in WebAssembly or connect to a local gitnexus serve. This skill follows GitNexus 1.6.12.
Instructions
Install and index a repository
npm install -g gitnexus # or run each command as: npx gitnexus@latest ...
cd ~/code/checkout-service
gitnexus analyze # index the repo that contains the current directory
gitnexus list # all indexed repos (registry in ~/.gitnexus/registry.json)
gitnexus status # freshness of this repo's index (needs a Git repository)
analyze writes more than the index. By default it also creates or updates a GitNexus section in AGENTS.md and CLAUDE.md and installs six skills under .claude/skills/gitnexus-*. Control that with flags:
gitnexus analyze --index-only # index only: no AGENTS.md, CLAUDE.md or skills
gitnexus analyze --skip-agents-md # keep your own AGENTS.md / CLAUDE.md untouched
gitnexus analyze --skip-skills # do not install the standard skills
gitnexus analyze --force # full rebuild instead of an incremental update
gitnexus analyze --embeddings # add semantic vectors (off by default, slower)
gitnexus analyze --skip-git # index a folder that is not a Git repository
gitnexus analyze --watch # keep the index current while you edit (Git repos only)
Recurring options can live in a committed .gitnexusrc JSON file at the repo root, for example { "skipSkills": true, "defaultBranch": "develop" }; CLI flags override it. Files are skipped according to .gitignore and .gitnexusignore, and anything over 512 KB is skipped unless --max-file-size raises the limit.
Connect an agent over MCP
gitnexus setup # detect installed editors; write their MCP config, skills and hooks
gitnexus setup -c cursor,codex # only the listed agents
# Or register the server by hand
claude mcp add gitnexus -- npx -y gitnexus@latest mcp
codex mcp add gitnexus -- npx -y gitnexus@latest mcp
For Cursor, add the same server to ~/.cursor/mcp.json:
{
"mcpServers": {
"gitnexus": { "command": "npx", "args": ["-y", "gitnexus@latest", "mcp"] }
}
}
One server process serves every indexed repo. The tools an agent gets in 1.6.12:
| Tool | Purpose |
|---|---|
list_repos |
Indexed repositories |
query |
Hybrid search that returns execution flows related to a concept |
context |
One symbol with its callers, callees and the flows it takes part in |
impact |
Blast radius of changing a symbol, grouped by depth, with a risk level |
trace |
Shortest call path between two symbols |
detect_changes |
Maps the current Git diff to changed symbols and affected flows |
rename |
Coordinated multi-file rename; call it with dry_run: true first |
cypher |
Raw Cypher against the graph |
check |
Structural checks such as circular imports |
route_map, tool_map, shape_check, api_impact |
API routes, their consumers and response shapes |
explain, pdg_query |
Taint findings and statement-level dependence (index built with --pdg) |
group_list, group_sync |
Cross-repository groups |
Set GITNEXUS_MCP_READ_ONLY=1 in the server's environment to hide cypher, rename and the group tools.
Query from the terminal
The CLI mirrors the MCP tools and prints JSON:
gitnexus query "checkout total" # flows related to a concept
gitnexus context OrderService # callers, callees, methods, flows
gitnexus impact calculateTotal # who breaks if this changes (upstream)
gitnexus impact calculateTotal --direction downstream # what it depends on
gitnexus impact subtotal --file src/pricing.ts # disambiguate a common name
gitnexus trace handleCheckout applyDiscount # shortest call path
gitnexus detect-changes --scope all # staged + unstaged diff -> affected flows
gitnexus detect-changes --scope compare --base-ref main # branch vs main
gitnexus check --cycles # non-zero exit on circular imports
gitnexus cypher "MATCH (f:Function) RETURN f.name, f.filePath LIMIT 5"
Add -r checkout-service (name or path) when more than one repository is indexed.
Web UI and wiki
gitnexus serve # HTTP API on http://127.0.0.1:4747 for the web UI
gitnexus wiki --provider openai --model gpt-4o # LLM-written docs; reads OPENAI_A
Установить gitnexus в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gitnexus?
GitNexus indexes a codebase into a local knowledge graph of symbols, calls, imports, clusters and execution flows, and serves it to AI coding agents through an MCP server and a CLI. Use when a user asks to index a repo with GitNexus, set up the GitNexus MCP server for Claude Code, Cursor or Codex, check what breaks before changing a function (impact, blast radius), see how a feature flows through the code, review the impact of uncommitted changes, run Cypher queries on a code graph, or explore a repository in the GitNexus web UI.
Как установить скилл gitnexus?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gitnexus запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic