graphify

Convert code, docs, papers, images, and videos into a queryable knowledge graph with community detection.

Updated Sep 20, 2024
One-click install
npx skills add https://github.com/AnasIsmai1/dotfiles --skill graphify-anasismai1
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: graphify
Source: https://github.com/AnasIsmai1/dotfiles/tree/main/claude/.claude/skills/graphify
Command: npx skills add https://github.com/AnasIsmai1/dotfiles --skill graphify-anasismai1

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Understanding a large codebase or mixed corpus of documents requires reading hundreds of files manually. This Skill turns any folder of code, docs, papers, images, or videos into a persistent knowledge graph with community detection, so questions about architecture, file relationships, and project content can be answered by querying the graph instead of re-reading everything. ## Core Features & Use Cases - Knowledge graph construction: Extracts entities and relationships via AST parsing for code and LLM-based semantic extraction for docs, papers, and images, with an honest EXTRACTED/INFERRED/AMBIGUOUS audit trail. - Query, path, and explain tools: Answer natural-language questions with BFS/DFS traversal, find shortest paths between concepts, and get plain-language explanations of any node. - 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. - Incremental updates and automation: Supports --update for changed files only, --watch for auto-rebuilds, a git post-commit hook, and cross-repo graph merging. - Use Case: Point it at a monorepo or a GitHub URL, then ask "How does the auth flow reach the database?" and get an answer traced through the graph with source citations. ## Quick Start Run /graphify on the current directory to build the knowledge graph, then ask any question about the codebase to query it.

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 parsing and document semantics via an LLM, then clusters the graph and outputs graph.json, an HTML visualization, and a GRAPH_REPORT.md summary.

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 specific path, or use graphify path "A" "B" and graphify explain "Node" for targeted lookups. Answers cite source files and confidence levels.

Does graphify require an API key to run?▼

No API key is required. Code is extracted structurally via AST with no LLM at all. Semantic extraction for docs, papers, and images uses Gemini only if GEMINI_API_KEY or GOOGLE_API_KEY is set; otherwise the host agent performs the extraction itself.

Can graphify export to Neo4j or Obsidian?▼

Yes. Use --neo4j to generate a Cypher file or --neo4j-push to load a running Neo4j instance, --falkordb-push for FalkorDB, --obsidian for an Obsidian vault, plus --svg, --graphml, --wiki, and --mcp for other targets.

How do I update the graph after code changes without rebuilding everything?▼

Run /graphify <path> --update to re-extract only new or changed files and merge them into the existing graph. Alternatively, use --watch for automatic rebuilds on code changes or install the post-commit hook with graphify hook install.

What are the limitations of graphify on very large corpora?▼

Corpora over 2,000,000 words or 500 files trigger a warning and prompt you to narrow to a subfolder or skip clustering with --no-cluster. Semantic extraction cost scales with document volume, though caching avoids re-processing unchanged files.