Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
abhigyanpatwari avatar

Gitnexus Guide

  • 648 installs
  • 45.1k repo stars
  • Updated August 4, 2026
  • abhigyanpatwari/gitnexus

gitnexus-guide is a GitNexus agent skill that onboards developers and coding agents to GitNexus MCP tools, knowledge-graph schema, resources, and workflow references instead of ad-hoc explanations.

About

gitnexus-guide is the canonical onboarding skill for GitNexus, the codebase knowledge-graph MCP server. The guide tells agents to start by reading gitnexus://repo/{name}/context for a repository overview and index freshness, then match tasks to specialized GitNexus skills and follow each skill's checklist. Developers and agents reach for gitnexus-guide when asking what GitNexus tools exist, how to query the graph, which MCP resources are available, or how to run impact analysis, debugging, and refactoring workflows. It centralizes tool names, graph schema notes, and workflow references so agents do not invent incorrect GitNexus usage. Outputs are accurate tool invocation paths, resource URIs, and step-by-step workflows for code understanding tasks across the GitNexus skill family.

  • Explains GitNexus architecture and terms
  • Documents CLI usage patterns and flags
  • Onboards agents to correct command sequences
  • Reduces trial-and-error with git graph tools
  • Companion to gitnexus-cli skill

Gitnexus Guide by the numbers

  • 648 all-time installs (skills.sh)
  • Ranked #341 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/abhigyanpatwari/gitnexus --skill gitnexus-guide

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs648
repo stars45.1k
Last updatedAugust 4, 2026
Repositoryabhigyanpatwari/gitnexus

How do you use GitNexus MCP tools and graph schema?

Onboard contributors and agents to GitNexus concepts, commands, and workflows using the canonical guide instead of ad-hoc explanations.

Who is it for?

Developers and coding agents new to GitNexus who need the official MCP tool, resource, and knowledge-graph workflow reference.

Skip if: Skip gitnexus-guide when you already know GitNexus APIs and need deep refactoring execution—load a task-specific GitNexus skill instead.

When should I use this skill?

Trigger when the user asks what GitNexus tools are available, how to use GitNexus, graph schema, MCP resources, or workflow reference questions.

What you get

GitNexus tool reference, knowledge-graph schema notes, resource URIs, and workflow checklists for code tasks.

  • tool reference map
  • workflow checklist
  • resource URI guide

Files

SKILL.mdMarkdownGitHub ↗

GitNexus Guide

Quick reference for all GitNexus MCP tools, resources, and the knowledge graph schema.

Always Start Here

For any task involving code understanding, debugging, impact analysis, or refactoring:

1. Read `gitnexus://repo/{name}/context` — codebase overview + check index freshness 2. Match your task to a skill below and read that skill file 3. Follow the skill's workflow and checklist

If step 1 warns the index is stale, run node .gitnexus/run.cjs analyze in the terminal first.

Skills

TaskSkill to read
Understand architecture / "How does X work?"gitnexus-exploring
Blast radius / "What breaks if I change X?"gitnexus-impact-analysis
Trace bugs / "Why is X failing?"gitnexus-debugging
Rename / extract / split / refactorgitnexus-refactoring
Tools, resources, schema referencegitnexus-guide (this file)
Index, status, clean, wiki CLI commandsgitnexus-cli

Tools Reference

ToolWhat it gives you
queryProcess-grouped code intelligence — execution flows related to a concept
context360-degree symbol view — categorized refs, processes it participates in
impactSymbol blast radius — what breaks at depth 1/2/3 with confidence
traceShortest path between two symbols — "how does A reach B?" in one call
detect_changesGit-diff impact — what do your current changes affect
renameMulti-file coordinated rename with confidence-tagged edits
cypherRaw graph queries (read gitnexus://repo/{name}/schema first)
explainPersisted taint findings — source→sink data flows (needs analyze --pdg)
pdg_queryControl/data dependence — what gates X (CDG) / where Y flows (REACHING_DEF); needs analyze --pdg
checkCheck graph invariants such as circular imports
list_reposDiscover indexed repos (paginated — limit/offset)

Paginating list_repos

list_repos is paginated so a large registry is not truncated by MCP/LLM token limits. It takes optional limit (default 50, max 200) and offset, and returns:

{
  "repositories": [
    { "name": "...", "path": "...", "indexedAt": "...", "lastCommit": "...", "stats": { } }
  ],
  "pagination": {
    "total": 437,
    "limit": 50,
    "offset": 0,
    "returned": 50,
    "hasMore": true,
    "nextOffset": 50
  }
}

To enumerate every repository, keep calling with offset set to pagination.nextOffset until hasMore is false:

list_repos {}               → repos 1–50,    nextOffset 50,  hasMore true
list_repos { offset: 50 }   → repos 51–100,  nextOffset 100, hasMore true
…
list_repos { offset: 400 }  → repos 401–437,                 hasMore false   (done)

Notes: offsettotal returns an empty page (with total still reported). Out-of-range or malformed limit/offset (non-integer, limit outside [1, 200], offset < 0) are rejected with a clear error — limit above the max is rejected, not silently capped. The order is deterministic (lower-cased name, then path), so paging never skips or duplicates an entry while the registry is unchanged.

Taint findings (explain)

explain returns intra-procedural taint findings (TAINTED edges) recorded by gitnexus analyze --pdg — each with a sink category (command-injection, code-injection, path-traversal, sql-injection, xss), source/sink lines, and the ordered hop path with the variable carried on each hop.

  • explain {} — enumerate all findings for the repo (bounded by limit, deterministic order)
  • explain { target: "src/vuln.ts" } — findings in a file (suffix path match accepted)
  • explain { target: "runUserCommand" } — findings in a function (resolved like context; ambiguous names return ranked candidates)

A repo indexed without --pdg returns a clear "no taint layer" note. Caveats: findings are intra-procedural only — cross-function, closure/callback, property/field, and implicit flows are not modeled, so the absence of a finding is not proof of safety. SANITIZES (sanitizer-kill) edges are queryable via cypher.

Control & data dependence (pdg_query)

pdg_query reads the control/data-dependence layers gitnexus analyze --pdg records (CDG + REACHING_DEF, basic-block granular) — the control/data analog of explain. It is always anchored (a target file path or symbol, resolved like context) and has two modes:

  • pdg_query { mode: "controls", target: "..." } — CDG: "under what condition does X run?". Each edge is a controlling predicate block → dependent block with the branch sense ('T'/'F') in reason; an edge into an early return/throw is flagged guard: true (guard-clause discovery — the sense depends on the predicate, so don't filter guards by a fixed label).
  • pdg_query { mode: "flows", target: "...", variable?: "..." } — REACHING_DEF def→use edges within the function; pass variable to trace one binding.

A repo indexed without --pdg returns a "no PDG layer" note (or "status unknown" when the layer can't be confirmed). Intra-procedural only — cross-function flow is taint's domain (explain). The raw CDG/REACHING_DEF edges are also queryable via cypher. See the gitnexus-pdg-query skill for the full query surface.

Shortest path between two symbols (trace)

trace answers "how does A reach B?" in one call — the shortest directed path over CALLS (plus HAS_METHOD, so a class-rooted trace descends into its methods) instead of chaining 3–8 context/impact hops by hand.

  • trace { from: "validateUser", to: "executeQuery" } — shortest path between two symbols.
  • Disambiguate common names with from_uid/to_uid (zero-ambiguity) or from_file/to_file; an ambiguous name returns ranked candidates.
  • maxDepth (default 10, max 30) bounds the search; includeTests (default false) lets the traversal pass through test-file symbols.

Returns ordered hops (each { name, filePath, startLine }) and an aligned edges[] of { relType, confidence }, so call hops and containment (HAS_METHOD) hops stay distinguishable. When no path exists it reports the furthest reachable node (where the chain breaks) and sets truncated: true if a traversal cap was hit first. Every result carries a status: ok / no_path / ambiguous / not_found / error.

Resources Reference

Lightweight reads (~100-500 tokens) for navigation:

ResourceContent
gitnexus://repo/{name}/contextStats, staleness check
gitnexus://repo/{name}/clustersAll functional areas with cohesion scores
gitnexus://repo/{name}/cluster/{clusterName}Area members
gitnexus://repo/{name}/processesAll execution flows
gitnexus://repo/{name}/process/{processName}Step-by-step trace
gitnexus://repo/{name}/schemaGraph schema for Cypher

Graph Schema

Nodes: File, Function, Class, Interface, Method, Community, Process Edges (via CodeRelation.type): CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS

MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})
RETURN caller.name, caller.filePath

Related skills

How it compares

Use gitnexus-guide for GitNexus onboarding; switch to task-specific GitNexus skills once the correct workflow is identified.

FAQ

Where should agents start with gitnexus-guide?

gitnexus-guide instructs agents to read gitnexus://repo/{name}/context first for a codebase overview and index freshness check before matching the task to a specialized GitNexus skill file.

What questions does gitnexus-guide answer?

gitnexus-guide answers GitNexus onboarding questions: available MCP tools, how to query the knowledge graph, resource URIs, graph schema details, and workflow references for debugging or refactoring.

When should developers load gitnexus-guide?

Developers should load gitnexus-guide whenever they or an agent need canonical GitNexus documentation instead of guessing tool names, graph fields, or workflow order during code understanding tasks.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.