Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By manderse21v1.35.0Apache-2.0In 1 marketplace
Runs PSScriptAnalyzer on every PowerShell edit Claude makes and feeds the findings back in the same turn. Needs pwsh 7+, and internet on first use to download PSES and PSScriptAnalyzer unless an offline source is configured.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
lsp, psscriptanalyzer, linting, diagnostics, sarif, code-scanning, pses, editor-services ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Configuration profile (preset for every other knob)profile
Preset: Compatibility ('safe', default) keeps today's defaults; Recommended ('recommended') broadens; Comprehensive ('strict') enforces. Explicit knobs win. See docs/configuration.md#profile.
stringdefault safe
PowerShell host executableps_host
Executable used to host PowerShell Editor Services. Recommended: 'pwsh' (PowerShell 7+, the default, tested) or 'powershell' (Windows PowerShell 5.1). See docs/configuration.md#ps_host.
stringdefault pwsh
Live diagnostics rulesetruleset
Rule set on the live edit path when no repo settings resolve. Values: 'pses-default' (default), 'base' (broader shipped set). See docs/configuration.md#ruleset.
stringdefault pses-default
Log files kept per familykeepLastN
SessionStart sweeps each rolling log family down to this many newest files. Default 10. See docs/configuration.md#keeplastn.
stringdefault 10
Org policy settings path (central ExcludeRules)orgPolicy
Absolute path to an org-wide PSScriptAnalyzerSettings.psd1 whose ExcludeRules win over local config and cannot be re-enabled locally. Empty (default) = off. See docs/configuration.md#orgpolicy.
stringdefault
Client hard cap (ms)timeoutMs
Total milliseconds the PostToolUse client waits before degrading to log-only. Default 5000. See docs/configuration.md#timeoutms.
stringdefault 5000
Debounce window (ms)debounceMs
Edits landing within this many milliseconds fold into one analysis pass. Default 150. See docs/configuration.md#debouncems.
stringdefault 150
Daemon idle TTL (minutes)idleTtlMin
The daemon self-terminates after this many minutes with no diagnostics request. Default 30. See docs/configuration.md#idlettlmin.
stringdefault 30
Max diagnostics per fileperFileCap
Max diagnostics reported per file; the rest collapse into an 'and N more' line. '0' = no cap. Default 20. See docs/configuration.md#perfilecap.
stringdefault 20
Enable telemetry/statsenableStats
Append one JSONL timing line per analyzed edit to logs/stats.jsonl; observe-only, never changes diagnostics. Values: 'false' (default), 'true'. See docs/configuration.md#enablestats.
stringdefault false
Native LSP serve (hover / go-to-definition / find-references)nativeServe
Native nav (hover, go-to-definition, find-references) via a stdio shim around upstream #1359; 'off' is a byte-exact relay. Values: 'off' (default), 'shim'. See docs/configuration.md#nativeserve.
stringdefault off
Exclude rules (comma-separated)ruleExclude
Comma-separated PSScriptAnalyzer rule codes to suppress (e.g. 'PSAvoidUsingWriteHost'); empty (default) = none. See docs/configuration.md#ruleexclude.
stringdefault
Include rules (comma-separated)ruleInclude
If set, report ONLY these comma-separated PSScriptAnalyzer rule codes (e.g. 'PSUseApprovedVerbs,PSAvoidUsingCmdletAliases'); empty (default) = all. See docs/configuration.md#ruleinclude.
stringdefault
Scope diagnostics to the edited linesscopeToEdit
Filter surfaced diagnostics to the lines the edit touched; fails open to whole-file when the range is unknown. Values: 'true' (default), 'false'. See docs/configuration.md#scopetoedit.
stringdefault true
Format-on-edit suggestionformatOnEdit
Invoke-Formatter after edits: 'suggest' surfaces a diff only; 'apply' performs a guarded write-back. Values: 'off' (default), 'suggest', 'apply'. See docs/configuration.md#formatonedit.
stringdefault off
PSScriptAnalyzerSettings.psd1 path (override)settingsPath
Absolute path to a PSScriptAnalyzerSettings.psd1 to honor, overriding auto-discovery; a relative value is ignored. Empty (default) = auto-discover. See docs/configuration.md#settingspath.
stringdefault
Module awareness (uninstalled-module hint)moduleAwareness
Hints when the edited file calls a command from a known module that is not installed on this machine. Values: 'off' (default), 'suggest'. See docs/configuration.md#moduleawareness.
stringdefault off
Edit-scope context lineseditContextLines
Extra context lines kept above and below the touched range when scopeToEdit is on; raise to widen the window. Default 0. See docs/configuration.md#editcontextlines.
stringdefault 0
Severity thresholdseverityThreshold
Least-severe level to report; more-severe levels are always included. Values: 'Error', 'Warning', 'Information', 'Hint' (default). See docs/configuration.md#severitythreshold.
stringdefault Hint
Reference surfacing (workspace reference counts)referenceSurfacing
Surfaces bare per-function facts (referenced-by-N, exported, defined-in) from a session workspace index. Values: 'off' (default), 'counts'. See docs/configuration.md#referencesurfacing.
stringdefault off
What those attestation badges do NOT cover. The SBOM, provenance, and Sigstore badges attest build integrity over the source archive -- they are not Windows Authenticode, assert no verified-publisher identity, and are not a third-party security audit. The exact boundary is stated in What this does and does not prove below and in TRUST.md, "Honest limits".
An AI coding agent can produce PowerShell that looks right, is objectively wrong, and gets built upon before anyone notices it. Nothing catches that until the script runs -- often much later, on someone else's machine.
This plugin runs Microsoft's own PowerShell analysis after every edit Claude makes and sends the findings straight back into Claude's context -- real PowerShell Editor Services (PSES) + PSScriptAnalyzer, not a re-implementation, so a mistake gets caught and corrected in the same turn instead of shipping.
Why not another PowerShell LSP plugin? It proves the analysis actually ran instead of reading silence as success, it manages the PowerShell toolchain itself, and it works the same way in CI and air-gapped as it does live in an edit.
It is language tooling, not project tooling: no recurring prompt injection, context is added only when a PowerShell edit produces diagnostics or enabled guidance, and one warm language-server process per session means each edit pays a fast pipe round-trip instead of a cold start.

Install and verify in about five minutes -- install to a real caught diagnostic, including the
first-session bootstrap you cannot skip. Requires pwsh (PowerShell 7+) on your PATH
(winget install Microsoft.PowerShell if it is missing); then:
# 1. In Claude Code -- add the marketplace, install, then enable the plugin:
/plugin marketplace add manderse21/claude-powershell-lsp
/plugin install powershell-lsp@claude-powershell-lsp
/plugin enable powershell-lsp
# 2. Start a new session (or /reload-plugins) so the hooks load and the first
# SessionStart bootstraps PSES + the warm daemon.
# 3. Confirm it is healthy BEFORE you rely on it -- run the preflight DOCTOR from
# inside the enabled session (so it can see the plugin data dir):
/powershell-lsp:doctor
# All PASS (benign UNKNOWNs are fine) -> ready. A FAIL names the exact fix.
See it catch something. Ask Claude to write:
function Frobnicate-Thing { Get-Process }
and the PostToolUse hook returns, right in Claude's context:
The cmdlet 'Frobnicate-Thing' uses an unapproved verb. (PSUseApprovedVerbs)
Claude sees its own mistake and corrects it without you switching tools. Full prerequisites and the step-by-step walkthrough are in Quick start.
A hand-wired PSES + PSScriptAnalyzer language-server config can give you diagnostics too. Three things it will not give you are what this plugin is actually for:
| A generic LSP setup | This plugin | |
|---|---|---|
| When the toolchain silently fails to start | Reads as "no findings" -- indistinguishable from clean code | /powershell-lsp:doctor proves what actually ran, with a named fix for anything that did not (see Diagnostics status) |
| Installing PSES + PSScriptAnalyzer | Your job -- match versions, keep them current | Downloaded, version-pinned, and SHA-256-verified on first use; nothing to install by hand (see What it downloads) |
| CI and air-gapped hosts | Usually editor-only | The same engine runs headless via scripts/lsp-scan.ps1 (SARIF for code scanning) and offline from a verified, attested bundle (see Repository and CI validation, Offline install) |
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub manderse21/claude-powershell-lsp --plugin powershell-lspPlugins from other owners that cover similar ground