lsp-validation

lsp-validation is a skill for Claude Code, Codex from shahidshabbir-se/my-pi-setup. It costs 25 tokens per session (953 once invoked), scanned A, original, MIT.

A guide for using Language Server Protocol tools, which let code editors understand a program's structure for checking, navigation, and refactoring.

In plain words
What is it for?
Use it to inspect diagnostics, jump to symbol definitions, find references, navigate code, and perform safer refactoring.
Why use it?
It helps find errors and understand how a code change affects definitions and their uses before modifying code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect diagnostics, jump to symbol definitions, find references, navigate code, and perform safer refactoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shahidshabbir-se/my-pi-setup/lsp-validation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shahidshabbir-se/my-pi-setup --skill lsp-validation
Clone the repo
git clone --depth 1 https://github.com/shahidshabbir-se/my-pi-setup

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/lsp-validation/github.svg)](https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/lsp-validation)
Your own site
<a href="https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/lsp-validation"><img src="https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/lsp-validation/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.

agentmods 80×15 button for lsp-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/lsp-validation"><img src="https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/lsp-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 953 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 original No closer match found 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.00025 $0.00953
Opus 5 $0.00013 $0.00477
Sonnet 5 $0.00005 $0.00191
Haiku 4.5 $0.00003 $0.00095

Measured 11d ago against content hash 27859e092c51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

lsp-validation 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 11d 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.

agent/skills/lsp-validation/SKILL.md · 137 lines

How it starts

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

LSP Validation Skill

Use the LSP (Language Server Protocol) tools to validate code quality, find references, navigate definitions, and perform safe refactoring.

Available LSP Tools

1. lsp_diagnostics - Get Errors and Warnings

When to use: After writing or modifying code to check for errors.

lsp_diagnostics(filePath: "/path/to/file.ts", severity: "error")

Severity levels:

  • error - Only errors (compilation failures)
  • warning - Errors and warnings
  • information - Includes informational messages
  • hint - All diagnostics including hints
  • all - Everything

Example output:

Line 42: Cannot find name 'undefined_variable' (error)
Line 58: 'foo' is declared but never used (warning)

2. lsp_goto_definition - Jump to Definition

When to use: To find where a symbol is defined.

lsp_goto_definition(filePath: "/path/to/file.ts", line: 10, character: 15)

Returns the file and location where the symbol at that position is defined.

3. lsp_find_references - Find All Usages

When to use: Before refactoring to understand impact.

lsp_find_references(filePath: "/path/to/file.ts", line: 10, character: 15, includeDeclaration: true)

Returns all locations where the symbol is used across the workspace.

4. lsp_rename - Safe Refactoring

When to use: To rename a symbol across the entire codebase.

lsp_rename(filePath: "/path/to/file.ts", line: 10, character: 15, newName: "betterName")

Applies the rename across all files that reference the symbol.

Validation Workflow

After Writing Code

1. Write/edit code
2. Run lsp_diagnostics with severity: "error"
3. If errors found:
   - Fix the errors
   - Re-run diagnostics
4. Run lsp_diagnostics with severity: "warning"
5. Address warnings if appropriate

Before Committing

1. Run lsp_diagnostics on all modified files
2. Ensure no errors
3. Review warnings
4. Proceed with commit only if clean

Before Refactoring

Read the full file on GitHub · 137 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. 11d ago First seen · 137 lines · 25 tokens per session scan A 27859e092c51

Subscribe to this mod's changes

lsp-validation is a skill published in the GitHub repository shahidshabbir-se/my-pi-setup (2 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 953 once invoked, about $0.0001 per session on Opus 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.

Related

Other skills, from other repositories

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

systemic-issue-triage

Trigger: new issue, bug report, triage, backlog, issue flood, community report, root cause, dead-end, blocked user. Attack issues by root class, never one-by-one; fixes must shrink the system, not grow it.

Gentleman-Programming/gentle-ai · 57 tokens

issue-root-resolution

Trigger: root audit, atacar la raíz, issue roots, backlog roots, mechanism map, deletion-driven fix, resolver issues de raíz, close outdated issues. Audit and resolve issue clusters by verified root cause.

Gentleman-Programming/gentle-ai · 45 tokens

rdd-defect-workflow

Trigger: RDD, receipt-driven development, review authority, receipt/lineage, correction/recovery, delivery gate/kill switch, bounded review defects. Guide work.

Gentleman-Programming/gentle-ai · 41 tokens

autofix

Review and repair current local changes until they converge, or run Qwen Code Autofix issue and review workflows from GitHub Actions.

QwenLM/qwen-code · 30 tokens

manage-skills

A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.

sangrokjung/claude-forge · 54 tokens