gitnexus-codebase-intelligence

gitnexus-codebase-intelligence is a skill for Claude Code, Codex from mahmoud20138/Tradecraft. It costs 61 tokens per session (8,854 once invoked), scanned A, original, MIT.

A local codebase-intelligence tool that maps a repository's code into a searchable graph of its relationships. It helps AI agents find symbols, callers, dependencies, and the likely impact of changes.

In plain words
What is it for?
Use it to search for symbols, inspect their surrounding context, analyze change impact, map the effects of a Git diff, and coordinate renames across multiple files.
Why use it?
It makes it easier to understand a large codebase before editing and to see which files may be affected by a change. This reduces the chance of missing dependent code during refactoring.

Skill for Claude CodeCodex

Part of the tradecraft plugin — 58 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mahmoud20138/tradecraft/gitnexus-codebase-intelligence
Any agent
npx skills add mahmoud20138/Tradecraft --skill gitnexus-codebase-intelligence
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code, Codex.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitnexus-codebase-intelligence

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/gitnexus-codebase-intelligence.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/gitnexus-codebase-intelligence)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/gitnexus-codebase-intelligence"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/gitnexus-codebase-intelligence.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.08854
Opus 5 $0.00030 $0.04427
Sonnet 5 $0.00012 $0.01771
Haiku 4.5 $0.00006 $0.00885

Measured 4d ago against content hash ec38359f0cf2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gitnexus-codebase-intelligence scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

len($(curl -L https://xon.sh))
plugins/tradecraft/skills/gitnexus-codebase-intelligence/SKILL.md · 1,035 lines

How it starts

The opening of the file, as written. The whole thing — 1,035 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gitnexus-codebase-intelligence

USE FOR:

  • "understand codebase impact before editing"
  • "find all callers / dependents of a symbol"
  • "safe multi-file renaming"
  • "git diff impact analysis"
  • "MCP tool for codebase architecture understanding"
  • "knowledge graph of code structure"
  • "AI agent codebase context" tags: [MCP, codebase, knowledge-graph, Tree-sitter, symbol-search, impact-analysis, Claude-Code, Cursor, Cypher] kind: tool category: pro-code-architecture

What Is GitNexus?

Codebase intelligence platform — transforms repos into knowledge graphs for AI agents.

  • Repo: https://github.com/abhigyanpatwari/GitNexus
  • Web: gitnexus.vercel.app (no install)
  • Integrations: Claude Code, Cursor, Windsurf, any MCP-compatible editor
  • Privacy: 100% local — code never leaves your machine

"Building a nervous system for agent context"


Core Problem Solved

Traditional AI assistants don't know when edits break downstream dependencies. GitNexus precomputes architectural intelligence at index time → fast, accurate impact analysis at query time.


7 MCP Tools

Tool What It Does
symbol_search BM25 + semantic hybrid search across codebase
symbol_context 360° view: incoming + outgoing relationships for any symbol
impact_radius All code that depends on a given symbol
git_diff_impact Map git diff → which symbols are affected + their dependents
multi_file_rename Coordinated safe rename across all references
graph_query Raw Cypher queries on the knowledge graph
discover_symbols List all symbols by type (functions, classes, methods)

Indexing Pipeline (6 Phases)

1. Structural mapping   → directory tree, file relationships
2. AST parsing          → Tree-sitter extracts symbols per language
3. Import/call resolve  → link usages to definitions
4. Community cluster    → group related modules
5. Execution flow trace → call chains, data flow paths
6. Hybrid search index  → BM25 + vector embeddings

Read the full file on GitHub · 1,035 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 1,035 lines · 0 tokens per session scan A ec38359f0cf2

Subscribe to this mod's changes

gitnexus-codebase-intelligence is a skill published in the GitHub repository mahmoud20138/Tradecraft (14 stars, last pushed 4mo ago), licensed MIT. It adds 61 tokens to every session and 8,854 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

claude-md-improver

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project…

anthropics/claude-plugins-official · 82 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.

questflowai/investorskills · 44 tokens

comet-github

将 Comet GitHub 维护请求路由到基于证据的 PR 审阅、Issue 分诊、本地想法收集、CI 诊断或 Issue 实施流程。用户提到 Comet GitHub Issue/PR 但未指定流程,或询问下一步如何处理时使用。.

rpamis/comet · 72 tokens

atlas-obscura

Search Atlas Obscura for weird, wonderful, and hidden gem places near any destination. Find the interesting stuff, not boring plaques. Search by coordinates, get full details with descriptions and images.

borski/travel-hacking-toolkit · 44 tokens