lsp-docs

Solid

Three-tier documentation lookup for any symbol — hover → offline toolchain doc → source definition. Use when hover text is absent, insufficient, or the symbol is in an unindexed dependency.

AI & Automation 56 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

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

Details

Author
blackwell-systems
Repository
blackwell-systems/agent-lsp
Created
2 months ago
Last Updated
today
Language
Go
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category