安裝指南

讓 Graphify 在你用的 AI 助手上跑起來
先記住這件事:PyPI 套件名是 graphifyy(雙 y),CLI 指令是 graphify。PyPI 上其他 graphify* 套件都不是官方的。

Step 1 — 安裝套件

# 推薦(隔離環境;若之後找不到 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 把套件隔離在自己的環境裡,完全避開這個問題。

Step 2 — 註冊 skill

graphify install

預設註冊到 Claude Code。想裝進目前專案(而非使用者設定檔)加 --project

graphify install --project
graphify install --project --platform codex

PowerShell 使用者:用 graphify . 而不是 /graphify .——開頭的斜線在 PowerShell 是路徑分隔符。

Step 3 — 開你的 AI 助手,輸入

/graphify .

就完成了。會在 graphify-out/ 產生三個檔案:graph.html(瀏覽器可開)、GRAPH_REPORT.mdgraph.json

平台一覽(20+ 助手)

平台安裝指令
Claude Code(Linux/Mac)graphify install
Claude Code(Windows)graphify install(自動偵測)或 --platform windows
OpenCodegraphify install --platform opencode
CodeBuddygraphify install --platform codebuddy
Codexgraphify install --platform codex
Kilo Codegraphify install --platform kilo
GitHub Copilot CLIgraphify install --platform copilot
VS Code Copilot Chatgraphify vscode install
Aidergraphify install --platform aider
OpenClawgraphify install --platform claw
Factory Droidgraphify install --platform droid
Trae / Trae CNgraphify install --platform trae / --platform trae-cn
Gemini CLIgraphify install --platform gemini
Hermesgraphify install --platform hermes
Kimi Codegraphify install --platform kimi
Ampgraphify amp install
Agent Skills(跨框架)graphify install --platform agents
Kiro IDE/CLIgraphify kiro install
Pi coding agentgraphify install --platform pi
Cursorgraphify cursor install
Devin CLIgraphify devin install
Google Antigravitygraphify antigravity install

Codex 使用者需在 ~/.codex/config.toml[features]multi_agent = true 才能平行抽取。Codex 用 $graphify 而非 /graphify

延伸套件(只需要裝你要的)

Extra加上什麼安裝
pdfPDF 抽取uv tool install "graphifyy[pdf]"
office.docx / .xlsxuv tool install "graphifyy[office]"
video影音轉錄(faster-whisper + yt-dlp)uv tool install "graphifyy[video]"
mcpMCP stdio serveruv tool install "graphifyy[mcp]"
neo4j / falkordb圖資料庫推播uv tool install "graphifyy[neo4j]"
leidenLeiden 社群偵測(僅 Python < 3.13)uv tool install "graphifyy[leiden]"
ollamaOllama 本機推論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。

讓助手「一直用圖」(always-on)

建完圖後執行一次,你的助手之後回答程式碼問題會優先查圖:

graphify opencode install    # 依你的平台調整

機制分兩種:

要一次移除所有平台:graphify uninstall(加 --purge 會連 graphify-out/ 一起刪)。

常見問題

OpenCode 使用者特別注意:本站的安裝示範就是在 OpenCode 環境實測的——graphify install --platform opencode 會把 skill 註冊到 ~/.config/opencode/,並寫入 AGENTS.md 讓它常駐。安裝後在任何專案輸入 /graphify . 即可。