| name | ak:graphify |
| description | Build queryable knowledge graphs from code, docs, papers, and images. Use for codebase understanding, architecture analysis, cross-file relationship discovery, token-efficient navigation. |
| user-invocable | true |
| when_to_use | Invoke to turn code or docs into a queryable graph. |
| category | dev-tools |
| keywords | ["knowledge-graph","code-analysis","tree-sitter","codebase-understanding","ast"] |
| argument-hint | [path] [--mcp|--report|--watch] |
| related | ["ak:repomix","ak:scout","ak:gkg"] |
| maturity | beta |
| metadata | {"author":"safishamsi","attribution":"https://github.com/safishamsi/graphify"} |
Graphify — Knowledge Graph Builder
Turn any folder of code, docs, papers, or images into a queryable knowledge graph. Uses tree-sitter AST for code (20 languages), Whisper for audio/video, and LLM subagents for documents.
When to Use
- Understanding unfamiliar codebase architecture before planning
- Discovering cross-file relationships and dependency chains
- Finding "god nodes" (most-connected concepts) in large projects
- Navigating by structure instead of grepping every file
- Preparing context-efficient codebase representation (71.5x fewer tokens vs raw files)
Installation
Note: The PyPI package is graphifyy (double-y). Other graphify* packages on PyPI are unaffiliated.
AgentKit already bundles this skill in the installed plugin. Do not run
graphify install for AgentKit setup: upstream uses that command to install a
standalone Claude skill.
pip install graphifyy
pip install 'graphifyy[mcp]'
pip install 'graphifyy[all]'
Requirements: Python 3.10+
Quick Start
graphify .
graphify /path/to/project
graphify . --watch
Output Artifacts
| File | Purpose |
|---|
graphify-out/graph.html | Interactive visualization with search + community filtering |
graphify-out/GRAPH_REPORT.md | God nodes, surprising connections, suggested questions |
graphify-out/graph.json | Persistent graph for queries across sessions |
graphify-out/cache/ | SHA256-based incremental updates (only reprocesses changed files) |
MCP Server Mode
Expose the graph as an MCP server for Claude to query directly: