Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

gitnexus-pdg-query — Claude Code skill: what it does, how to install

Helps inspect control dependencies and data flow within functions via the GitNexus pdg_query tool. Useful for tracing variable definitions and discovering guard clauses.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add abhigyanpatwari/GitNexus --skill gitnexus-pdg-query -a claude-code
Open on GitHub

What gitnexus-pdg-query does

The skill guides coding agents through inspecting intra-procedural control and data dependencies using the GitNexus pdg_query tool. It operates over basic block edges stored in the graph database. The controls mode reveals which predicates guard specific statements and highlights early returns. The flows mode tracks variable definitions to their downstream usages within the function body.

Running queries requires indexing the repository with the --pdg flag beforehand; without it, the tool returns an empty result set with an explanatory note. Queries remain strictly intra-procedural and cannot track data across function boundaries. Every query also demands an explicit target parameter pointing to a symbol or file path, because the underlying database lacks relationship property indexing for unbounded scans.

What it helps with

  • inspect predicate conditions that guard statement execution in a function
  • locate early-return and throw guard clauses
  • trace variable definitions to downstream reads within a function
  • diagnose empty responses from the pdg_query tool
  • construct Cypher queries for control dependence edges without full table scans

Example prompts for the agent

  • Check which predicates guard this return statement in the handleRequest function using pdg_query
  • Trace where the config variable flows inside parseOptions using the flows mode
  • Explain why pdg_query returns an empty result for the auth handler

How to install gitnexus-pdg-query

1Skills CLI (Vercel)

npx skills add abhigyanpatwari/GitNexus --skill gitnexus-pdg-query -a claude-code

2Manually: put the files in place

~/.claude/skills/gitnexus-pdg-query/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gitnexus-pdg-query/

From the same set6

The whole set →

Similar

architecture-patterns sickn33 Guides backend system design using Clean Architecture, Hexagonal Architecture, and DDD, and assists with monolith decomposition. Claude Code CX Codex Cursor +1 903installs svelte-code-writer sveltejs Fetches Svelte 5 documentation and analyzes components using autofixer. Useful when authoring or debugging .svelte and .svelte.ts files. Claude Code CX Codex Cursor +1 12,800installs react18-legacy-context official github This skill migrates React legacy context to createContext and coordinates the provider with every consumer. Use it for class component context migrations. GitHub Copilot 745installs react18-lifecycle-patterns official github Migrates unsafe class component lifecycle methods to React 18.3.1 patterns. Helps prepare legacy code for React 19 before breaking changes arrive. GitHub Copilot 743installs react18-string-refs official github Guides the move from string refs to React.createRef() in class components. Use it when preparing a project for React 18.3.1 or React 19. GitHub Copilot 741installs react18-enzyme-to-rtl official github Provides Enzyme to React Testing Library migration patterns for React 18 upgrades. Useful when rewriting shallow renders, mount calls, and state assertions into user behavior checks. GitHub Copilot 739installs improve-codebase-architecture Matt Pocock This skill scans a codebase for architectural friction, then builds a visual HTML report with refactoring candidates. Use it before a deeper architecture review. Claude Code 1,163,035installs tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. Claude Code 1,141,062installs

Questions about gitnexus-pdg-query

How to install gitnexus-pdg-query in Claude Code?

Run the command npx skills add abhigyanpatwari/GitNexus --skill gitnexus-pdg-query -a claude-code in your terminal.

What does gitnexus-pdg-query do?

It equips the coding agent with domain knowledge to query control and data dependencies via GitNexus. The agent can inspect guarding predicates, early return clauses, and intra-function variable flows through the pdg_query tool.

Why does pdg_query return empty results?

An empty result usually occurs when the repository was indexed without the --pdg flag. Without this flag, dependency graph layers are omitted, so the tool returns an empty list accompanied by an explanatory note rather than throwing an error.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor