- name
SKILL.md
技能檔案保留在發布者的儲存庫中。
在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill lsp-guide -a cursor -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill lsp-guide -a claude-code -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill lsp-guide -a codex -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill lsp-guide -a grok -y在 Grok Bot 聊天中傳送複製的訊息。Bot 會從 GitHub 取得這個 SKILL.md,並加入你所有 Bot 共用的技能中。
Install this skill: https://github.com/omagents/omagents/tree/HEAD/packages/core/skills/lsp-guide來自發布者
OpenCode has built-in LSP support. This skill helps you choose the right tool for each job.
LSP must be enabled in the project:
// opencode.json
{ "lsp": true }
The lsp tool is experimental. Set this environment variable:
export OPENCODE_EXPERIMENTAL_LSP_TOOL=true
What do you need?
│
├─ Definition / Reference / Hover / Symbol
│ └─ Use OpenCode's built-in `lsp` tool
│ Operations: goToDefinition, findReferences, hover,
│ documentSymbol, workspaceSymbol,
│ goToImplementation, incomingCalls, outgoingCalls
│
├─ Call path / Impact radius / Blast radius
│ └─ Use codegraph MCP: codegraph_codegraph_explore
│ Returns verbatim source + call paths between symbols
│
├─ Precise text search (regex)
│ └─ Use grep tool (ripgrep under the hood)
│
├─ File pattern matching
│ └─ Use glob tool
│
├─ AST pattern matching / structural rewrite
│ └─ Use ast-grep skill (if installed) or fallback to grep
│
└─ Diagnostics (errors/warnings)
└─ Use `lsp` tool with lsp_diagnostics
OR run the project's linter directly via bash
OpenCode auto-detects LSP servers by file extension:
Full list: https://opencode.ai/docs/lsp/
Guide agents to use the right code intelligence tool: OpenCode's native LSP, codegraph MCP, grep, or ast-grep. Trigger when the agent needs code navigation, definition lookup, reference finding, renam
---name: lsp-guidedescription: Guide agents to use the right code intelligence tool: OpenCode's native LSP, codegraph MCP, grep, or ast-grep…---# packages/core/skills/lsp-guide/SKILL.md總覽
Guide agents to use the right code intelligence tool: OpenCode's native LSP, codegraph MCP, grep, or ast-grep. Trigger when the agent needs code navigation, definition lookup, reference finding, renaming, or diagnostics.
常見問題
從發布者下載 packages/core/skills/lsp-guide/SKILL.md,或複製路徑後開啟儲存庫。PlugMCP 只收錄這項技能,不代管檔案。
發布者將它存放在 https://github.com/omagents/omagents。
Claude、Cursor、Codex 和 Grok Build 可以讀取你從發布者儲存庫加入的 SKILL.md。在聊天中傳送技能的 GitHub 資料夾連結,Grok Bot 就會安裝它。