graphify

Builds a queryable knowledge graph from code, docs, papers, images, and video with community detection.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/ricardolui/gcp-custom-agent-skills --skill graphify-ricardolui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphify
Source: https://github.com/ricardolui/gcp-custom-agent-skills/tree/main/graphify
Command: npx skills add https://github.com/ricardolui/gcp-custom-agent-skills --skill graphify-ricardolui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires graphifyy, networkx, and includes references (resource) components.

What problem does it solve? Understanding a large codebase or mixed document corpus requires reading hundreds of files manually. graphify turns any folder into a persistent knowledge graph with community detection and an honest audit trail (EXTRACTED/INFERRED/AMBIGUOUS), so questions about architecture, file relationships, and cross-document connections can be answered by graph traversal instead of re-reading source files. ## Core Features & Use Cases - Knowledge graph construction: Extracts entities and relationships from code (AST, no LLM needed), docs, papers, images, and transcribed video, then clusters them into labeled communities with god-node and surprising-connection analysis. - Query, path, and explain tools: Answers natural-language questions via BFS/DFS traversal, finds shortest paths between concepts, and explains individual nodes with source citations. - Multiple outputs and integrations: Generates interactive HTML visualization, GraphRAG-ready JSON, GRAPH_REPORT.md, Obsidian vaults, wikis, and exports to Neo4j, FalkorDB, SVG, GraphML, or an MCP server. - Use Case: Point it at a GitHub repo URL to clone, extract, and merge multiple repositories into one cross-repo graph, then ask "How does the auth module reach the database?" and get a cited traversal answer. ## Quick Start Run /graphify on the current directory to build the knowledge graph, then ask any codebase question and it will be answered via graphify query against the existing graph.

Frequently Asked Questions about graphify

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

FAQPage Schema
How do I build a knowledge graph from a codebase?

Run /graphify on a local path or GitHub URL. It detects files, extracts code structure via AST without an LLM, runs semantic extraction on docs and images, then clusters the merged graph and outputs graph.json, an HTML visualization, and GRAPH_REPORT.md.

How do I query a codebase knowledge graph with natural language?

Once graphify-out/graph.json exists, run graphify query "your question" for BFS traversal, add --dfs to trace a dependency path, or use graphify path "A" "B" for shortest paths and graphify explain "Node" for a single concept. Answers cite source files and confidence tags.

Does graphify require an API key to work?

No API key is required. Code extraction is purely structural via AST, and semantic extraction for docs, papers, and images uses the host agent itself unless GEMINI_API_KEY or GOOGLE_API_KEY is set, in which case Gemini is used.

Can graphify export a graph to Neo4j or FalkorDB?

Yes. Use --neo4j or --falkordb to generate a Cypher file, or --neo4j-push / --falkordb-push with a connection URI to push directly. The exports use MERGE statements, so re-running them does not create duplicates.

How does incremental update work when files change?

Run /graphify <path> --update to re-extract only new or changed files and prune deleted ones. Code-only changes skip semantic extraction entirely, and a --watch mode or post-commit git hook can trigger rebuilds automatically.

What are the limitations of graphify on very large corpora?

Corpora over 2 million words or 500 files trigger a warning and prompt you to narrow to a subdirectory or skip clustering with --no-cluster. Semantic extraction on large doc sets also requires dispatching parallel subagents, which takes roughly 45 seconds per batch.