LSP Python
PassAudited by ClawScan on May 1, 2026.
Overview
This is a purpose-aligned Python LSP and linting helper; its main things to notice are local tool execution and optional in-place code formatting.
This skill appears safe for its stated purpose. Before installing or using it, set up pylsp and formatter plugins in a trusted Python environment, run checks on specific project paths, and use --auto-fix only when you are comfortable reviewing or reverting source-code changes.
Findings (3)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
If used with auto-fix on a broad directory, many source files may be rewritten.
The batch checker can recurse through a directory and, when auto-fix is selected, run in-place formatting/import-cleanup tools on the discovered Python files.
elif p.is_dir():
py_files.extend([str(f) for f in p.rglob('*.py')])
...
subprocess.run(
['autoflake', '--remove-all-unused-imports', '--in-place', filepath],Run auto-fix only on intended project folders, review diffs afterward, and keep backups or version control.
The installed local pylsp and its plugins will process the files you ask the skill to analyze.
The skill starts the local pylsp executable as part of its normal LSP workflow.
pylsp = subprocess.Popen(
["pylsp"],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,Use a trusted Python environment or virtual environment for pylsp and install only plugins you trust.
Dependency behavior depends on what versions are installed in the user's environment.
The setup instructions rely on external PyPI packages without pinned versions.
- **pylsp**: `pip install python-lsp-server` - **可选插件**: - `pip install python-lsp-server[all]` - `pip install pylsp-mypy` - `pip install pylsp-black`
Install dependencies from trusted sources, preferably in a virtual environment, and pin versions for reproducible use.
