lsp-docs

lsp-docs is a skill for Claude Code from OKHP3/skillz. It costs 42 tokens per session (1,202 once invoked), scanned A, a copy of lsp-docs, MIT.

A documentation lookup tool for finding information about code symbols such as functions, types, and methods. It checks editor information, installed toolchain documentation, and source definitions when needed.

In plain words
What is it for?
Use it to look up fully qualified symbols in Go, Rust, Python, C++, and other supported codebases, optionally providing a nearby file to improve resolution.
Why use it?
It helps when editor help is missing, incomplete, or cannot find a symbol in a dependency. This is especially useful for code that comes from another package or library.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/you/code/myapp/main.go.

Good fit Use it to look up fully qualified symbols in Go, Rust, Python, C++, and other supported codebases, optionally providing a nearby file to improve resolution.

Compare 6 skills from other repositories ↓
View source ↗ OKHP3/skillz
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote 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.

agentmods badge for lsp-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/okhp3/skillz/lsp-docs.svg)](https://agentmods.dev/skills/okhp3/skillz/lsp-docs)
Your own site
<a href="https://agentmods.dev/skills/okhp3/skillz/lsp-docs"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/lsp-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,202 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01202
Opus 5 $0.00021 $0.00601
Sonnet 5 $0.00008 $0.00240
Haiku 4.5 $0.00004 $0.00120

Measured 3d ago against content hash 1fb7a515922f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

lsp-docs 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 3d 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.

Origin

This is a copy

100% identical to lsp-docs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

community/lsp-docs/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Requires the agent-lsp MCP server.

lsp-docs

Three-tier documentation lookup for any symbol. Works when the language server is unavailable, when hover returns empty results, or when the symbol lives in a transitive dependency that gopls or pyright does not index.

Read-only — does not modify any files.

Invocation: User provides symbol_name in fully-qualified form (e.g. "fmt.Println", "std::vec::Vec::new", "os.path.join"). Optionally provide file_path for any file in the same module, which improves Go package resolution.


Decision table

Situation Recommended tier
Symbol in current workspace Tier 1 (hover)
Symbol in direct dependency Tier 2 (toolchain doc)
Symbol in transitive dep (not indexed by LSP) Tier 2
No LSP server available Tier 2 → Tier 3
No toolchain installed (e.g., Rust without cargo) Tier 3

Tier 1 — LSP hover (fast, live, position-based)

Call inspect_symbol with the file path and cursor position (1-based).

mcp__lsp__inspect_symbol({
  "file_path": "/abs/path/to/file.go",
  "line": 42,
  "column": 8
})

If the result contains a non-empty contents field with useful type and doc information, stop here and return it. Hover is the fastest path and should always be tried first.

If hover returns empty contents, or the language server is not initialized, proceed to Tier 2.


Tier 2 — Offline toolchain documentation (authoritative, name-based)

Call get_symbol_documentation with the fully-qualified symbol name and language_id. This fetches documentation from the local toolchain (go doc, pydoc, cargo doc) without requiring an LSP session. Works for transitive dependencies that the language server does not index.

mcp__lsp__get_symbol_documentation({
  "symbol": "fmt.Println",
  "language_id": "go",
  "file_path": "/abs/path/to/any/file/in/the/module.go",  // optional, improves Go pkg resolution
  "format": "markdown"   // optional: wraps signature in code fence
})

Read the full file on GitHub · 153 lines

Changes

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.

  1. 3d ago First seen · 153 lines · 42 tokens per session scan A 1fb7a515922f

Subscribe to this mod's changes

lsp-docs is a skill published in the GitHub repository OKHP3/skillz (3 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,202 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to lsp-docs, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

baoyu-comic

A tool for creating original educational comics that explain knowledge or ideas through multiple illustrated panels. It supports different art styles and tones and can create several comics in one batch.

JimLiu/baoyu-skills · 61 tokens

pm-career-coach

PM Career Coach — guides product managers through career transitions, skill development, and growth planning Use when: Planning your PM career path, preparing for promotion, navigating role transitions, or seeking career advice.

konglong87/superPM · 46 tokens

pm-interview-prep

PM Interview Preparation — practice product sense, execution, behavioral, and strategy questions Use when: Preparing for PM job interviews, practicing case studies, or refining interview responses.

konglong87/superPM · 40 tokens

kelly-homework-coach

A child-friendly homework coaching desk for elementary students. It explains photographed or pasted questions, studies wrong answers, keeps a mistake notebook, and prepares practice papers for review.

mr-kelly/skills · 110 tokens

kelly-lesson

A lesson-planning and compliance desk for schools or training programs. It drafts plans from curriculum materials and a required template, checks them against set standards, and routes them for review.

mr-kelly/skills · 110 tokens

kelly-education-intel

A daily research workspace for the education industry, including training centres, tutoring, exams, study abroad, visas, and admissions. It collects source-backed signals, explains their relevance, and prepares possible actions and draft messages for review.

mr-kelly/skills · 98 tokens