Borrowing it
Nothing to install: this file belongs to plumbkit/plumb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/plumbkit/plumb/main/.claude/skills/add-lsp-adapter/SKILL.mdgit clone --depth 1 https://github.com/plumbkit/plumbWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/plumbkit/plumb/add-lsp-adapter)<a href="https://agentmods.dev/skills/plumbkit/plumb/add-lsp-adapter"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/add-lsp-adapter/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/plumbkit/plumb/add-lsp-adapter"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/add-lsp-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.01176 |
| Opus 5.5 | $0.00023 | $0.00470 |
| Sonnet 5.5 | $0.00012 | $0.00235 |
| Haiku 4.5 | $0.00006 | $0.00118 |
Grade A, and why
add-lsp-adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding an LSP adapter to plumb
An adapter embeds *base.Adapter (internal/lsp/adapters/base), which supplies all 23
lsp.Client methods, and shadows only what its server does differently. rust is the
minimal worked example (46 lines); full guide in docs/adding-an-lsp.md.
The 5 steps
- Create
internal/lsp/adapters/<name>/with adoc.gostating the adapter's validation status (Experimental or Validated — see the promotion rule below). - Write
adapter.go:type Adapter struct{ *base.Adapter },var _ lsp.Client = (*Adapter)(nil),func New(conn jsonrpc.Caller) *Adapter { return &Adapter{Adapter: base.New(conn, "<binary-name>")} }, andDefaultInitParams— the one genuinely per-server function. Do NOT hand-write the 23 methods. - Shadow only the methods your server does differently, calling through with
a.Adapter.X(ctx, params). Escape hatches are package-level FUNCTIONS —base.Call[T],base.CallPtr[T],base.CallRaw,base.Notify,base.Wrap. Never add an exported method tobase.Adapter: Go promotes it into all nine adapters andinternal/cliresolves optional capabilities structurally, so one stray method silently opts every server into a capability it does not have. An adapter-only capability (e.g. pull diagnostics) is declared in the adapter's own package. base.Newinstalls BOTH transport handlers (notification fan-out + server-request handler);dispatchandhandleServerRequestare unexported, so there is nothing to register and nothing to forget. Server-specific work left to you: init options, workspace model, and — for a server that answers only for open documents — abase.OpenTrackerheld as a NAMED field (never embedded) with anEnsurecall in each affected method and aRefreshinDidChangeWatchedFiles. The set of methods needing it differs per server; do not copy another adapter's.- Test: unit tests with
internal/lsp/jsonrpc/mock.gocovering what this adapter adds (not the inherited base);conformance.RunConformancefor the protocol contract; andconformance.RunErrorContractfor the"<server> <label>: <cause>"strings. Lazy-open adapters also callconformance.RunLazyOpenErrorContract.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 76 lines · 58 tokens per session scan A 08bccefd2b42
add-lsp-adapter is a skill published in the GitHub repository plumbkit/plumb (4 stars, last pushed 5d ago), licensed MIT. It adds 58 tokens to every session and 1,176 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
add-lsp-adapter compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-lsp-adapterplumbkit/plumb | Skill | 4 | 5d ago | MIT | A | 58 | Claude Code |
| yamlhome-operations/yayamlls | Skill | 33 | today | AGPL-3.0 | A | 69 | Claude Code |
| use-modern-goJetBrains/go-modern-guidelines | Skill | 3.9k | 22d ago | Apache-2.0 | A | 32 | Claude Code |
| code-guidelines-godimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 124 | Claude Code, Codex |
| go-127dimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 177 | Claude Code, Codex |
| bubbletea-testingdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 139 | Claude Code, Codex |
| design-reviewdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 30 | Claude Code, Codex |