一键导入
graphwiki
LLM knowledge graph with persistent wiki compilation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
LLM knowledge graph with persistent wiki compilation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | graphwiki |
| version | 2.0.0 |
| trigger | /graphwiki |
| description | LLM knowledge graph with persistent wiki compilation |
| platforms | ["claude","codex","auggie","gemini","cursor","openclaw","copilot","windsurf","cody","codewhisperer","opencode","aider","droid","trae","trae-cn","antigravity","hermes"] |
You have access to the GraphWiki knowledge graph for persistent, token-efficient context loading.
When /graphwiki is triggered, follow this sequence:
graphwiki-out/graph.json (or .graphwiki/graph.json).graphwiki build . --update to create one.graphwiki query for semantic questions, graphwiki path for structural relationships (0 LLM tokens).graph exists?
YES → load graphwiki-out/graph.json → query or path → return structured context
NO → warn user → offer: graphwiki build . --update
When loading graph context manually (hook unavailable):
graphwiki-out/graph.json (nodes + edges summary)graphwiki path <nodeA> <nodeB> to find structural relationshipsgraphwiki-out/wiki/| Command | Purpose | Notes |
|---|---|---|
graphwiki build . --update | Incremental rebuild (changed files only) | Preferred over full rebuild |
graphwiki build . | Full graph rebuild from scratch | Use only when graph is stale or missing |
graphwiki build . --watch | Watch mode — auto-rebuild on file changes | For active development sessions |
graphwiki build . --directed | Build directed graph (preserves edge direction) | Use for dependency/flow analysis |
graphwiki build . --mode deep | Deep extraction mode via LLM | More thorough, higher token cost |
graphwiki query "question" | Semantic query against knowledge base | Returns relevant wiki content |
graphwiki ask "question" | LLM-augmented question answering | Uses graph + LLM reasoning |
graphwiki add <url> | Add URL source to the graph | Fetches and indexes remote content |
graphwiki explain <node> | Explain a node's role and connections | Useful for onboarding |
graphwiki path <nodeA> <nodeB> | Find structural path between two nodes | Zero LLM tokens |
graphwiki save-result <file> | Persist a query result to disk | For caching expensive queries |
graphwiki hook install | Install PreToolUse/PostToolUse hooks | Enables automatic context injection |
graphwiki hook uninstall | Remove hooks | |
graphwiki hook status | Check hook registration status | |
graphwiki skill uninstall --all | Remove all platform skill installations | |
graphwiki lint | Validate graph integrity | Run before committing graph changes |
graphwiki status | Show graph stats and token budget usage |
GraphWiki generates extraction prompts for non-code files (PDFs, images, binary assets). Check .graphwiki/pending/ for any .prompt.md files before answering.
Protocol:
.graphwiki/pending/ for *.prompt.md filesgraphwiki build . --update to merge the extracted knowledge into the graphIf .graphwiki/pending/ is empty or does not exist, skip this step.
raw/ and source directories as immutablegraphwiki-out/ — all output is auto-generated; changes will be overwritten--update is almost always sufficient--update for incremental builds — full rebuilds are expensive and rarely neededgraphwiki path over LLM reasoning for structural questions| Agent Role | Recommended GraphWiki Usage |
|---|---|
| codebase-search | graphwiki path <term1> <term2> — 0 tokens |
| requirements | graphwiki query to load relevant wiki pages |
| planning | graphwiki status and graphwiki lint |
| implementation | graphwiki build . --update after file changes |
| verification | graphwiki lint and graphwiki status |
skill-generator.ts parses this file and generates platform-specific skills:
SKILL-claude.md, SKILL-codex.md, SKILL-copilot.md, SKILL-auggie.md, SKILL-gemini.md, SKILL-cursor.md, SKILL-openclaw.md, SKILL-windsurf.md, SKILL-cody.md, SKILL-codewhisperer.md, and others.