Imported from siewka181/opencode-workspace (
.config/opencode/skills/lsp-setup/AGENTS.md). Install upstream withnpx skills add siewka181/opencode-workspace --skill lsp-setup. Copyright stays with the author.
LSP SETUP SKILL
OVERVIEW
Configure a Language Server (LSP) for a specific language so editor/agent tooling works: diagnostics, go-to-definition, find-references, rename.
STRUCTURE
lsp-setup/
|- SKILL.md # Full execution protocol
|- references/ # Per-language guides
|- scripts/ # detect-lsp.ts, verify-lsp.ts
WHERE TO LOOK
| Task | Location | Notes |
|---|---|---|
| LSP config | SKILL.md |
Per-language |
| Install commands | references/<lang>/README.md |
Per-OS |
| Config snippets | SKILL.md |
.codex/lsp-client.json, .opencode/lsp.json |
| Scripts | scripts/ |
detect-lsp.ts, verify-lsp.ts |
CONVENTIONS
- Routes by file extension
- Covers: TypeScript, Python, Go, Rust, C/C++, Java, Kotlin, C#, Swift, Ruby, PHP, Dart, Elixir, Zig, Lua, Bash, YAML, Terraform, Haskell, Julia
ANTI-PATTERNS
- Do not assume LSP is installed
- Do not skip verification roundtrip