From platform-engineering
Wire `.lsp.json` for a Claude Code plugin so the agent gets symbol navigation, hover info, and diagnostics from a real Language Server Protocol server (typescript-language-server, pyright, gopls, rust-analyzer, …). Use when adding a new language to a plugin, when Claude is missing definition/refs/hover for a project, or when debugging an LSP that fails to start. References the Claude Code plugin spec's LSP section and the canonical LSP-servers taxonomy.
How this skill is triggered — by the user, by Claude, or both
Slash command
/platform-engineering:code-intelligence-lsp-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Adding LSP support to a plugin for a new language
.lsp.json.lsp.jsonPer vendor/anthropics/code.claude.com/docs/en/plugins-reference.md
(LSP §), a plugin's .lsp.json lives at the plugin root next to
.claude-plugin/plugin.json. It maps language IDs to LSP server
specs:
{
"servers": {
"typescript": {
"command": "typescript-language-server",
"args": ["--stdio"],
"rootMarkers": ["package.json", "tsconfig.json"],
"fileTypes": ["typescript", "typescriptreact", "javascript"]
},
"python": {
"command": "pyright-langserver",
"args": ["--stdio"],
"rootMarkers": ["pyproject.toml", "setup.py"],
"fileTypes": ["python"]
}
}
}
The canonical list lives at
https://github.com/microsoft/language-server-protocol/blob/main/_implementors/servers.md.
Operator's prior probe surfaced these high-quality choices:
| Language | Server | Install hint |
|---|---|---|
| TypeScript/JS | typescript-language-server | npm i -g typescript-language-server |
| Python | pyright-langserver | npm i -g pyright |
| Go | gopls | go install golang.org/x/tools/gopls@latest |
| Rust | rust-analyzer | rustup component |
| Bash | bash-language-server | npm i -g bash-language-server |
which <command> before adding to .lsp.json.rootMarkers: the LSP starts but reports "no project" — confirm the marker file exists at the workspace root.fileTypes mismatch: editor language ID and the spec's fileTypes must match exactly. typescript ≠ tsx.vendor/anthropics/code.claude.com/docs/en/plugins-reference.md (LSP §)vendor/agentskills/agentskills.io/specification.md (SKILL shape)npx claudepluginhub subagentceo/knowledge-engineering --plugin platform-engineeringProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.