- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill lsp-guide -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill lsp-guide -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill lsp-guide -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill lsp-guide -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/omagents/omagents/tree/HEAD/packages/core/skills/lsp-guideTừ nhà phát hành
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.mdTổng quan
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.
Câu hỏi thường gặp
Tải packages/core/skills/lsp-guide/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/omagents/omagents.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.