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.
npx agentmods add commands/manderse21/claude-powershell-lsp/doctorgit clone --depth 1 https://github.com/manderse21/claude-powershell-lspWrote 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.
[](https://agentmods.dev/commands/manderse21/claude-powershell-lsp/doctor)<a href="https://agentmods.dev/commands/manderse21/claude-powershell-lsp/doctor"><img src="https://agentmods.dev/badge/commands/manderse21/claude-powershell-lsp/doctor.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00030 | $0.00531 |
| Opus 5 | $0.00015 | $0.00266 |
| Sonnet 5 | $0.00006 | $0.00106 |
| Haiku 4.5 | $0.00003 | $0.00053 |
Grade A, and why
doctor 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 4d 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.
What it actually says
Run the powershell-lsp preflight doctor and report what it found.
The doctor is report-only: it never downloads, repairs, runs the bootstrap, or starts, restarts, or stops anything. Run it exactly as given below and do not "fix" anything on the user's behalf without asking first.
If $ARGUMENTS contains --probe-native-serve, append -ProbeNativeServe to the command. That
adds the opt-in native-serve removability probe, which costs a PSES cold start plus a bounded
init wait -- so only add it when asked.
pwsh -NoLogo -NoProfile -File "$env:CLAUDE_PLUGIN_ROOT/scripts/doctor.ps1"
Then summarize for the user:
- The report opens with a
version:header line above the check table. It is always present, even when every check is UNKNOWN, and it is not a check -- it carries no status and is not in the counts. Include it whenever the user is reporting a problem or asking for support. - Lead with the summary line's counts.
- If any check is FAIL, quote its component, its detail, and its
fix:line. A FAIL is the only thing that sets a non-zero exit code. - If any check is UNKNOWN, say plainly that it could not be determined and why -- an UNKNOWN is never a failure, and the most common cause is running outside an enabled Claude Code session, so the plugin data directory is not visible.
- If everything passes, say so in one line rather than restating all of it.
Two checks are worth calling out when they are not PASS, because they answer questions the others structurally cannot:
- Test diagnostic observed end-to-end -- the only check that proves diagnostics are actually being produced rather than merely installed. A FAIL here means an edit would read as "analyzed, clean" when nothing was analyzed.
- Active ruleset surface -- which rules are really applied here, and which config layer won.
This is what explains "I set
ruleset = baseand still see nothing new" (usually a repo-localPSScriptAnalyzerSettings.psd1legitimately winning).
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.
- 4d ago First seen · 43 lines · 30 tokens per session scan A 8374b1477a68
doctor is a command published in the GitHub repository manderse21/claude-powershell-lsp (7 stars, last pushed 3d ago), licensed Apache-2.0. It adds 30 tokens to every session and 531 once invoked, about $0.0002 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.
Other commands, from other repositories
commands-deprecated-directory
Commands directory is deprecated, migrate to Skills.
setup
Interactive setup for C/C++ LSP development environment.
old-command
This triggers the deprecated commands directory warning.
setup
Interactive setup for Python LSP development environment.
setup
Interactive setup for YAML LSP development environment.
setup
Interactive setup for Scala LSP development environment.