python-lsp

python-lsp is a skill for Claude Code from MSApps-Mobile/claude-plugins. It costs 121 tokens per session (1,176 once invoked), scanned A, original, MIT.

A Python code analysis tool that understands types, imports, definitions, and references across a project. It uses Pyright, a Python type checker, through a standard editor integration.

In plain words
What is it for?
Use it to inspect Python type and import errors, jump to definitions, find references, view inferred types, and search project symbols.
Why use it?
It answers questions that text search cannot, such as whether a value has the right type, where a symbol is defined, and which code calls it.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the python-lsp plugin — 1 skill shipped together

Good fit Use it to inspect Python type and import errors, jump to definitions, find references, view inferred types, and search project symbols.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msapps-mobile/claude-plugins/python-lsp
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 MSApps-Mobile/claude-plugins --skill python-lsp
Clone the repo
git clone --depth 1 https://github.com/MSApps-Mobile/claude-plugins

Made for: Claude Code.

Or install python-lsp, the plugin that ships this one along with the rest of its 1 skill.

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 python-lsp

README.md
[![agentmods](https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/python-lsp/github.svg)](https://agentmods.dev/skills/msapps-mobile/claude-plugins/python-lsp)
Your own site
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/python-lsp"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/python-lsp/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 python-lsp

Your own site · 80×15
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/python-lsp"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/python-lsp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,176 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.00121 $0.01176
Opus 5.5 $0.00048 $0.00470
Sonnet 5.5 $0.00024 $0.00235
Haiku 4.5 $0.00012 $0.00118

Measured today against content hash 0087a04b1126, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-lsp 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 today.

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.

plugins/python-lsp/skills/python-lsp/SKILL.md · 110 lines

How it starts

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

python-lsp — Python code intelligence via Pyright

Part of the LSP plugin series. Wraps Pyright (pyright-langserver) as a read-only, SOSA Level 1 intelligence source.

Workflow Process

Plan

  1. Confirm the user's question actually needs semantic info (type diagnostics, references, definitions, hover) vs a plain grep/glob.
  2. Verify pyright-langserver --version works. If missing, run npm install -g pyright or pip install pyright.
  3. Confirm the repo has a recognizable Python root: pyrightconfig.json, pyproject.toml, setup.py, setup.cfg, or a .git directory.

Act

  1. Resolve the file path the user is asking about.
  2. Use LSP via the plugin's .lsp.json wiring:
    • textDocument/publishDiagnostics → type/import errors
    • textDocument/definition → jump to definition
    • textDocument/references → all call sites
    • textDocument/hover → inferred type / docstring
    • workspace/symbol → fuzzy symbol search
  3. For cross-file impact (e.g. reviewing a change), iterate find-references over every public symbol in the touched file.
  4. Treat Pyright answers as authoritative over heuristic search. If Pyright returns empty references, say so — don't invent them.

Verify

  1. Cross-check one reported reference by opening the referenced file. If the symbol isn't really there, the Pyright index may be stale — report that.
  2. If diagnostics include reportMissingImports for installed packages, the virtual environment isn't configured — check pyrightconfig.json venvPath/venv settings before trusting import counts.

Pyright startup notes

  • Incremental cache: Pyright writes .pyright/ to the workspace root. Safe to delete to force a full reindex. Subsequent runs are fast.
  • Virtual environments: Set venvPath + venv in pyrightconfig.json (or pythonPath for a specific interpreter) so Pyright resolves installed packages correctly.
  • Type checking modes: off → basic → standard → strict. The plugin sends basic via settings.python.analysis (a project pyrightconfig.json overrides it); upgrade to standard or strict for well-typed codebases where you want exhaustive checking.

Read the full file on GitHub · 110 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. today First seen · 110 lines · 121 tokens per session scan A 0087a04b1126

Subscribe to this mod's changes

python-lsp is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (10 stars, last pushed today), licensed MIT. It adds 121 tokens to every session and 1,176 once invoked, about $0.0005 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-10-18.

Related

Other skills, from other repositories

python-code-quality

Code quality checks, linting, formatting, and type checking commands for the Agent Framework Python codebase. Use this when running checks, fixing lint errors, or troubleshooting CI failures.

microsoft/agent-framework · 40 tokens

plugin-architecture-patterns

Design, implement, or diagnose Xberg plugin traits, typed registries, priority collisions, lifecycle, native extractors, and Alef-generated Python plugin bridges. Load for plugin-system work, not ordinary extractor parsing.

xberg-io/xberg · 43 tokens

test-corpus

The testdocuments submodule is a bucket-fetched fixture corpus that is not committed. This skill covers readtestfixture, missing fixtures, valid A/B controls, and submodule push order. Load before running Rust tests on a fresh clone, setting up an A/B control, adding a fixture-backed test, or diagnosing…

xberg-io/xberg · 68 tokens

stack-trace-python-probe

Internal helper for meta-stack-trace-investigator. Use when a Python traceback needs Python-specific root-cause checks, pytest reproducer guidance, and defensive patch targets.

opensquilla/opensquilla · 40 tokens

memory-optimization

Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory…

benchflow-ai/skillsbench · 60 tokens

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens