graphify

Converts code, docs, papers, and media into a queryable knowledge graph with community detection.

Updated Oct 7, 2022
One-click install
npx skills add https://github.com/tamagusko/linux-cfg --skill graphify-tamagusko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphify
Source: https://github.com/tamagusko/linux-cfg/tree/main/dotfiles/claude/skills/graphify
Command: npx skills add https://github.com/tamagusko/linux-cfg --skill graphify-tamagusko

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, papers, and media requires reading everything manually; graphify turns any folder into a persistent, queryable knowledge graph so questions about architecture, file relationships, and concepts are answered by graph traversal instead of re-reading files. ## Core Features & Use Cases - Knowledge graph construction: Extracts entities and relationships from code (AST-based, no LLM needed) and from docs, papers, images, and transcribed video (semantic extraction via subagents or Gemini), with an honest EXTRACTED/INFERRED/AMBIGUOUS audit trail. - Analysis and outputs: Runs community detection, god-node and surprising-connection analysis, and produces an interactive HTML visualization, GraphRAG-ready JSON, and a plain-language GRAPH_REPORT.md. - Query and maintenance: Answers natural-language questions via BFS/DFS traversal, finds shortest paths between concepts, explains nodes, supports incremental --update re-extraction, watch mode, git commit hooks, and exports to Neo4j, FalkorDB, GraphML, SVG, Obsidian, wiki, and MCP server. - Use Case: Point it at a research repository or a GitHub URL, then ask "How does the training pipeline connect to data loading?" and get a graph-grounded answer 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. Code files are extracted structurally via AST with no LLM or API key, while docs, papers, and images go through semantic extraction, and the result is clustered into communities with an HTML visualization and JSON export.

Does graphify require an API key to work?

No API key is required. Code extraction is fully structural via AST, and semantic extraction falls back to the host agent itself. Setting GEMINI_API_KEY or GOOGLE_API_KEY optionally routes semantic extraction through Gemini.

How do I query an existing graphify knowledge graph?

Once graphify-out/graph.json exists, run graphify query with your question for BFS traversal, add --dfs to trace a specific path, or use graphify path and graphify explain for shortest paths and node explanations. Queries expand against the graph's actual vocabulary first.

Can graphify handle video and audio files?

Yes, video and audio files are transcribed to text with Whisper before extraction, using a domain hint derived from the corpus as the transcription prompt. The transcripts are then treated as documents in semantic extraction.

How do I update the graph after changing files?

Run /graphify --update for incremental re-extraction of only new or changed files, with deleted files pruned from the graph. Code-only changes skip LLM extraction entirely, and a post-commit git hook or --watch mode can automate rebuilds.

What graph databases and export formats does graphify support?

graphify exports to Neo4j and FalkorDB via generated Cypher or direct push, plus GraphML for Gephi, SVG for embedding, Obsidian vaults, an agent-crawlable wiki, and an MCP stdio server for live agent access.