ai-lsp-query

Query Python and Go codebases for symbols, references, and diagnostics via JSON-RPC.

Updated May 28, 2026
One-click install
npx skills add https://github.com/susamn/skills --skill ai-lsp-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-lsp-query
Source: https://github.com/susamn/skills/tree/main/ai-lsp-query
Command: npx skills add https://github.com/susamn/skills --skill ai-lsp-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, bash, python-lsp-server, pyright, gopls, jdtls, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the tedious, error-prone work of manually searching through codebases with basic text tools to find symbol definitions, references, type information, and call hierarchies, which is slow and often misses the context that IDE-level semantic search provides.

Core Features & Use Cases

  • Semantic code queries: Retrieve references, definitions, type info, call hierarchies, and diagnostics for Python, Go, and (planned) Java codebases using the same AST-backed data that IDEs use.
  • Composable for AI workflows: Outputs machine-readable JSON that other AI skills can consume to validate generated code, plan refactors, or check for errors after automated edits.
  • Use case example: Before refactoring a payment processing function, use this Skill to find all callers across the project to avoid breaking dependent code.

Quick Start

Use the ai-lsp-query skill to find all references to the process_order function in the src/orders/service.py file.

Frequently Asked Questions about ai-lsp-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find all references to a function across a Python codebase without basic text search?

Semantic code search via LSP servers finds accurate, context-aware references and definitions for Python codebases, eliminating the tedious and error-prone work of manually searching text.

Can I automate type checking and diagnostics for Go projects using LSP?

Yes, LSP server capabilities integrate type verification and diagnostic checks into Go development workflows, retrieving AST-backed data and outputting machine-readable JSON for automated validation.

What is the best way to get semantic code intelligence for AI workflows?

Using a standardized JSON-RPC interface to query LSP servers provides machine-readable semantic code intelligence, allowing AI workflows to validate generated code, plan refactors, and check errors.

Does this code intelligence tool support Java codebases for reference tracking?

Semantic code queries retrieve references, definitions, and call hierarchies for Python and Go codebases, with Java support also planned for tracking symbols across project files.

Why use LSP servers for codebase analysis instead of standard grep tools?

LSP servers provide IDE-level semantic search using AST-backed data to find symbol definitions and call hierarchies accurately, avoiding the context misses common with basic text tools.

Do I need to install specific language servers to perform semantic code search?

Yes, performing semantic code queries requires installing language servers like python-lsp-server, pyright, gopls, and jdtls to enable AST-backed symbol lookups and type information retrieval.