graphifyy(雙 y),CLI 指令是 graphify。PyPI 上其他 graphify* 套件都不是官方的。# 推薦(隔離環境;若之後找不到 graphify 指令,跑 uv tool update-shell)
uv tool install graphifyy
# 替代方案
pipx install graphifyy
pip install graphifyy # 可能需要設定 PATH
為什麼推薦 uv/pipx 而不是 pip? skill 會在執行期從 graphify-out/.graphify_python 解析 Python 執行環境;如果那指向的環境跟你 pip 安裝套件的環境不同,會報 ModuleNotFoundError: No module named 'graphify'。uv/pipx 把套件隔離在自己的環境裡,完全避開這個問題。
graphify install
預設註冊到 Claude Code。想裝進目前專案(而非使用者設定檔)加 --project:
graphify install --project
graphify install --project --platform codex
PowerShell 使用者:用 graphify . 而不是 /graphify .——開頭的斜線在 PowerShell 是路徑分隔符。
/graphify .
就完成了。會在 graphify-out/ 產生三個檔案:graph.html(瀏覽器可開)、GRAPH_REPORT.md、graph.json。
| 平台 | 安裝指令 |
|---|---|
| Claude Code(Linux/Mac) | graphify install |
| Claude Code(Windows) | graphify install(自動偵測)或 --platform windows |
| OpenCode | graphify install --platform opencode |
| CodeBuddy | graphify install --platform codebuddy |
| Codex | graphify install --platform codex |
| Kilo Code | graphify install --platform kilo |
| GitHub Copilot CLI | graphify install --platform copilot |
| VS Code Copilot Chat | graphify vscode install |
| Aider | graphify install --platform aider |
| OpenClaw | graphify install --platform claw |
| Factory Droid | graphify install --platform droid |
| Trae / Trae CN | graphify install --platform trae / --platform trae-cn |
| Gemini CLI | graphify install --platform gemini |
| Hermes | graphify install --platform hermes |
| Kimi Code | graphify install --platform kimi |
| Amp | graphify amp install |
| Agent Skills(跨框架) | graphify install --platform agents |
| Kiro IDE/CLI | graphify kiro install |
| Pi coding agent | graphify install --platform pi |
| Cursor | graphify cursor install |
| Devin CLI | graphify devin install |
| Google Antigravity | graphify antigravity install |
Codex 使用者需在 ~/.codex/config.toml 的 [features] 加 multi_agent = true 才能平行抽取。Codex 用 $graphify 而非 /graphify。
| Extra | 加上什麼 | 安裝 |
|---|---|---|
pdf | PDF 抽取 | uv tool install "graphifyy[pdf]" |
office | .docx / .xlsx | uv tool install "graphifyy[office]" |
video | 影音轉錄(faster-whisper + yt-dlp) | uv tool install "graphifyy[video]" |
mcp | MCP stdio server | uv tool install "graphifyy[mcp]" |
neo4j / falkordb | 圖資料庫推播 | uv tool install "graphifyy[neo4j]" |
leiden | Leiden 社群偵測(僅 Python < 3.13) | uv tool install "graphifyy[leiden]" |
ollama | Ollama 本機推論 | uv tool install "graphifyy[ollama]" |
chinese | 中文 query 分詞(jieba) | uv tool install "graphifyy[chinese]" |
all | 上面全部 | uv tool install "graphifyy[all]" |
還有 google / gemini / anthropic / openai / azure / bedrock / sql / postgres / terraform / pascal / dm / svg 等,完整清單見 文件教學 與上游 README。
建完圖後執行一次,你的助手之後回答程式碼問題會優先查圖:
graphify opencode install # 依你的平台調整
機制分兩種:
AGENTS.md、.cursor/rules/ 等常駐指令檔,提供同樣的「先查圖」指引。要一次移除所有平台:graphify uninstall(加 --purge 會連 graphify-out/ 一起刪)。
graphify: command not found → uv/pipx 的 bin 目錄(~/.local/bin)不在 PATH。跑 uv tool update-shell 或 pipx ensurepath 後開新終端。uvx graphify … 解析失敗 → 套件叫 graphifyy:用 uvx --from graphifyy graphify install。graphify .(去斜線)。graphify extract ./docs --backend claude(依你用的後端)。uv tool upgrade graphifyy 再 graphify install。graphify install --platform opencode 會把 skill 註冊到 ~/.config/opencode/,並寫入 AGENTS.md 讓它常駐。安裝後在任何專案輸入 /graphify . 即可。