build-knowledge-graph
Installation
SKILL.md
Build Knowledge Graph
Reverse engineer the architecture of the codebase and build a comprehensive knowledge graph using the gnapsis MCP tools, following a strict derivation order methodology.
If an argument is provided, focus the analysis on that scope or path. Otherwise, analyze the entire codebase.
CRITICAL RULES
- Always use gnapsis MCP tools to register all nodes and relationships in the knowledge graph. The gnapsis graph is the primary output.
- Proceed through phases, summarize at each phase boundary. Complete each phase fully, then summarize what was done before moving to the next.
- Use best judgment for ambiguity: When you encounter ambiguity about business domains, feature boundaries, or architectural decisions, use your best technical judgment and document your reasoning. Add a note in the entity description when a decision was ambiguous.
- ALWAYS run
analyze_documentbefore creating entities for a source file. This gives you the exact LSP symbol names. Never guess symbol names. - Use
ref_type: "code"withlsp_symbolfor source files. Only useref_type: "text"for markdown, docs, and config files. - Be exhaustive, not superficial. Scan every directory, every configuration file, every module entry point. Leave no stone unturned.