query

Query Python codemaps for module imports, symbols, and function call graphs.

24|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/Borda/AI-Rig --skill query-borda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query
Source: https://github.com/Borda/AI-Rig/tree/main/plugins/codemap/skills/query
Command: npx skills add https://github.com/Borda/AI-Rig --skill query-borda

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

An efficient, centralized way to query a Python codebase's codemap: module imports, symbol definitions, and function call graphs to accelerate code exploration and refactoring.

Core Features & Use Cases

  • Module-level queries: central, coupled, deps, rdeps, path to understand import relationships across modules.
  • Symbol-level queries: symbol, symbols, find-symbol to locate definitions and navigate code without opening every file.
  • Function-level queries: fn-deps, fn-rdeps, fn-central, fn-blast to analyze call graphs and identify hot paths for debugging and optimization.
  • Use Case: quickly surface the most interconnected modules or the most frequently called functions in a Python project to guide refactoring decisions.

Quick Start

Ask the AI to query the codemap index and surface module, symbol, and function graphs for a Python project.

Frequently Asked Questions about query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a Python import graph to find the most central modules?

To analyze a Python import graph, you can query the codemap index using the central command to surface interconnected modules, which helps guide refactoring decisions by identifying dependency-heavy areas in the codebase.

How do I trace function call graphs in a large Python codebase?

Tracing function call graphs in a large Python codebase is done by querying the codemap index with function-level commands like fn-deps, fn-rdeps, and fn-blast to identify hot paths and dependencies for debugging.

What is the best way to locate symbol definitions across Python modules without opening files?

The best way to locate symbol definitions across Python modules is to use symbol-level queries like symbol, symbols, or find-symbol on the codemap index to navigate code directly without opening every file.

Can I query function-level dependencies and reverse dependencies for Python projects?

Yes, you can query function-level dependencies and reverse dependencies for Python projects by executing fn-deps and fn-rdeps commands against the codemap index to map out caller and callee relationships.

How do I find the import path between two specific Python modules?

You can find the import path between two specific Python modules by running the path command on the codemap index, which extracts the module import graph to map the connection route.

How does a codemap query identify heavily coupled Python modules for refactoring?

A codemap query identifies heavily coupled Python modules by analyzing the project's import graph via the coupled command, extracting dependency relationships to surface modules that require refactoring.