- name
SKILL.md
Le fichier du skill reste dans le dépôt de l'éditeur.
Collez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add omagents/omagents --skill lsp-guide -a cursor -yCollez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add omagents/omagents --skill lsp-guide -a claude-code -yCollez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add omagents/omagents --skill lsp-guide -a codex -yCollez la commande copiée dans un terminal. Elle installe ce SKILL.md dans cet agent.
npx skills add omagents/omagents --skill lsp-guide -a grok -yEnvoyez le message copié dans un chat Grok Bot. Le Bot récupère ce SKILL.md sur GitHub et l'ajoute aux skills que partagent tous vos Bots.
Install this skill: https://github.com/omagents/omagents/tree/HEAD/packages/core/skills/lsp-guideDe l'éditeur
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.mdVue d'ensemble
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.
FAQ
Téléchargez packages/core/skills/lsp-guide/SKILL.md auprès de l'éditeur, ou copiez le chemin et ouvrez le dépôt. PlugMCP répertorie le skill et n'héberge pas le fichier.
L'éditeur le maintient sur https://github.com/omagents/omagents.
Claude, Cursor, Codex et Grok Build peuvent lire un SKILL.md que vous ajoutez depuis le dépôt de l'éditeur. Grok Bot l'installe lorsque vous envoyez dans un chat le lien du dossier GitHub du skill.