contextmap

Builds and queries knowledge graphs from source code using Python libraries.

Updated May 9, 2026
One-click install
npx skills add https://github.com/Ioncrade/ContextMap --skill contextmap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contextmap
Source: https://github.com/Ioncrade/ContextMap/tree/main/contextmap
Command: npx skills add https://github.com/Ioncrade/ContextMap --skill contextmap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tree-sitter, networkx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the construction and querying of knowledge graphs for codebases, enabling efficient navigation and analysis of code relationships.

Core Features & Use Cases

  • Graph Construction: Automatically build a knowledge graph from source code, capturing relationships between files, classes, functions, and more.
  • Graph Querying: Query the graph to understand code relationships, find dependencies, and explore codebase structure.
  • Use Case: Imagine you have a large codebase with complex dependencies. Use this Skill to build a knowledge graph and then query it to understand how different components interact and find the dependencies of a specific module.

Quick Start

Use the contextmap skill to build a knowledge graph for the current directory.

Frequently Asked Questions about contextmap

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

FAQPage Schema
How do I build a knowledge graph from source code to visualize dependencies?

Building a knowledge graph for a codebase involves parsing source code to extract relationships between files, classes, and functions, then structuring them into a navigable graph. This Skill automates that construction using tree-sitter and networkx.

What is the best way to navigate complex codebase architecture and find module dependencies?

Navigating complex codebase architecture is best done by querying a knowledge graph that captures structural relationships. This Skill allows you to query the generated graph to find dependencies and understand how different software components interact.

Do I need tree-sitter and networkx to analyze code relationships?

Yes, you need tree-sitter and networkx to analyze code relationships with this approach. Tree-sitter parses the source code to extract syntax relationships, while networkx is required to build and query the resulting dependency graph.

Can I use code analysis graphs for dependency management in large software projects?

Yes, you can use code analysis graphs for dependency management in large software projects. By automatically constructing a graph from your codebase, you can query it to efficiently explore structure and find specific module dependencies.

How does querying a codebase knowledge graph work for software architecture exploration?

Querying a codebase knowledge graph works by applying graph algorithms to the extracted relationships between your source code files and modules. This enables efficient software architecture exploration by revealing hidden dependencies and structural connections.