knowledge-graph

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

Updated Jul 11, 2026
One-click install
npx skills add https://github.com/danielsuguimoto/skills --skill knowledge-graph-danielsuguimoto
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: knowledge-graph
Source: https://github.com/danielsuguimoto/skills/tree/main/skills/knowledge-graph
Command: npx skills add https://github.com/danielsuguimoto/skills --skill knowledge-graph-danielsuguimoto

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Understanding a large codebase or mixed document corpus requires reading every file manually. This Skill turns any folder into a navigable knowledge graph with community detection, an audit trail, and query tools, so you can answer architecture and content questions without re-reading the source. ## Core Features & Use Cases - Multi-format extraction: Parses code structurally via AST (no LLM needed) and extracts semantic entities from docs, papers, images, and transcribed video/audio. - Graph outputs: Produces interactive HTML, GraphRAG-ready JSON, a plain-language GRAPH_REPORT.md, plus optional Obsidian vault, wiki, Neo4j, SVG, and GraphML exports. - Query tools: Supports query, path, and explain subcommands, incremental --update re-extraction, --watch auto-rebuild, and an MCP server for live graph access. - Use Case: Point it at a monorepo to get a clustered graph of modules and concepts, then ask "how does the auth flow reach the database layer?" and trace the answer through actual graph paths. ## Quick Start Ask the agent to build a knowledge graph of the current project folder and show the god nodes, surprising connections, and suggested questions from the report.

Frequently Asked Questions about knowledge-graph

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 the graphify pipeline on the target folder: it detects files, extracts code structure via AST without an LLM, extracts semantic entities from docs and images, then clusters the merged graph. Outputs include graph.html, graph.json, and GRAPH_REPORT.md.

What file types can be turned into a knowledge graph?▼

Supported inputs include code files (.py, .ts, .go, and others), documents (.md, .txt), papers (.pdf), images, and video/audio files. Video and audio are transcribed with Whisper and treated as documents during extraction.

Does knowledge graph extraction require an external API key?▼

No external API key is required. Code is extracted structurally via AST with no LLM, and semantic extraction for docs, papers, and images uses the agent's own model. A code-only corpus skips semantic extraction entirely.

How do I update a knowledge graph after files change?▼

Use the --update flag for incremental re-extraction of only new or changed files, or --watch to auto-rebuild on changes. A git post-commit hook can also rebuild the graph automatically after every commit.

Can I export the graph to Neo4j or Obsidian?▼

Yes. The --neo4j flag generates a Cypher file and --neo4j-push writes directly to a running Neo4j instance using MERGE. The --obsidian flag generates an Obsidian vault with one note per node plus a canvas layout.

Why did graph building fail with an empty graph error?▼

An empty graph error means extraction produced no nodes, typically because all files were skipped, the corpus contained only unsupported binaries, or extraction failed. Check the detect step output for skipped or unsupported files and re-run on a valid path.