← ClaudeAtlas

wiki_graph_indexlisted

Extract Obsidian-style relationships (wikilinks, tags, aliases) into a structured AI-friendly SQLite graph database.
Misaka16384/Wikify · ★ 2 · Data & Documents · score 68
Install: claude install-skill Misaka16384/Wikify
# LLM Wiki — Graph Index Skill (wiki_graph_index) > **Resolving script paths (read first):** Commands below invoke scripts as `<BIN>/X.py` (and a few as `<SKILLS>/...`). Resolve these to **absolute paths once** before running anything: > > - `<SKILL_DIR>` = the directory this `SKILL.md` lives in. > - `<SKILLS>` = the `skills/` folder containing this skill = `<SKILL_DIR>/..` > - `<BIN>` = the `bin/` folder beside it = `<SKILL_DIR>/../../bin` > > Do **not** hardcode a fixed prefix like `.agents/bin` or `../bin`: shell relative paths resolve against the current working directory (usually the topic root), not this skill's location. Once resolved, `<BIN>` is typically `.agents/bin` when invoked from the hub root, or `.claude/bin` from inside a topic directory. This skill extracts the Markdown-based knowledge graph (comprised of `[[wikilinks]]`, tags, and aliases) into a structured SQLite database (`output/graph.db`) that an AI agent can easily query using standard SQL. ## Usage When the user asks to extract, index, or query the knowledge graph of their wiki: ### 1. Build the Graph Database Run the deterministic python script to extract the graph from the markdown files: ```bash python <BIN>/llm-wiki.py graph <TOPIC_DIR> ``` *This will parse all markdown files under `wiki/` (ignoring `_index.md`), extract frontmatter (tags, aliases) and body links, and rebuild the SQLite database located at `output/graph.db`.* ### 2. Query the Graph Database Once built, you (the AI) can query