vscode-doctor

vscode-doctor is a skill for Claude Code from majiayu000/spellbook. It costs 75 tokens per session (4,511 once invoked), scanned A, original, MIT.

A diagnostic workflow for finding why VS Code-compatible editors become slow, unresponsive, or consume too many resources. It gathers current evidence from the editor and workspace instead of assuming a standard cause.

In plain words
What is it for?
Use it to investigate typing delays, freezes, extension-host stalls, file-watcher activity, or high editor CPU and memory use in a large project.
Why use it?
It helps separate editor-specific problems from general computer load and avoids sending sensitive local details into reports. It also prevents guesses based on fixed paths, extensions, or generated folders.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to investigate typing delays, freezes, extension-host stalls, file-watcher activity, or high editor CPU and memory use in a large project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/vscode-doctor
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 majiayu000/spellbook --skill vscode-doctor
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code.

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 vscode-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/vscode-doctor/github.svg)](https://agentmods.dev/skills/majiayu000/spellbook/vscode-doctor)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/vscode-doctor"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/vscode-doctor/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 vscode-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/vscode-doctor"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/vscode-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,511 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 141
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00075 $0.04511
Opus 5 $0.00037 $0.02256
Sonnet 5 $0.00015 $0.00902
Haiku 4.5 $0.00007 $0.00451

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

Security

Grade A, and why

vscode-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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/collect_vscode_diagnostics.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/vscode-doctor/SKILL.md · 332 lines

How it starts

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

VS Code Doctor

Diagnose editor performance from the current machine state. Do not import old observations, fixed paths, fixed extension names, fixed OS bugs, or fixed generated-directory lists into the diagnosis.

Non-Negotiables

  • No hardcoded local paths. Use the user's stated workspace, discovered editor status, or explicit placeholders.
  • No fixed root cause order. Rank only by fresh evidence from this run.
  • No fixed extension blocklist. Treat extension names as evidence only when they appear in live output or user-provided screenshots.
  • No fixed generated-directory list. Discover ignored/generated paths from the workspace, editor settings, repository metadata, or user-provided patterns.
  • No fixed benefit percentages. If there is no before/after baseline, say the impact cannot be reliably quantified.
  • Do not treat whole-machine load as the editor diagnosis. Record it as context, but keep conclusions and actions focused on editor evidence.
  • Treat collector output as sensitive. It can expose local paths, project names, process command lines, workspace names, log paths, and extension identifiers. Redact sensitive details before sharing externally.
  • No write operations by default. Do not edit settings, disable extensions, delete caches, run system defaults, change environment variables, or kill processes without explicit confirmation.

Default Simple Mode

Default to a non-technical user experience unless the user asks for details.

  • Treat this skill as invisible to the user: they cannot see the collector, logs, or settings changes unless you explain them.
  • Start with one plain-language sentence: 现在看起来是:<正常 / 忙 / 可疑 / 还不确定> and immediately say what you checked or will check.
  • Ask at most one question before collecting evidence. Prefer discovering the editor/workspace automatically.
  • Avoid leading with terms like RSS, extension host, FSEvents, renderer, or language server. Put those under Technical details.
  • Translate technical causes into user-facing labels:
    • file watcher or rescans -> "background file scanning"
    • extension host -> "plugin background process"
    • renderer/UI process -> "editor window rendering"
    • language server or linter -> "code intelligence"
    • workspace surface -> "the folder range the editor is watching"
  • Never present a long table as the main answer for a non-technical user.
  • Do not use process names such as systemstatusd, WindowServer, or coreaudiod as the headline. Translate them first, for example: "主要压力来自系统后台/窗口渲染/音频服务,不是编辑器本体".
  • Present two or three choices as actions, each with:
    • what it changes
    • whether it is reversible
    • what the user might notice
    • how to verify it helped
  • Keep "do nothing and observe" as a valid option when evidence is weak.
  • If you ran commands or changed files, the final answer must begin with a plain-language action log, not only a diagnosis.
  • Never claim the optimization helped unless there is a fresh after-snapshot or user-visible verification. If there is no clean before/after, say the expected effect is a hypothesis and give the next verification step.

Read the full file on GitHub · 332 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 332 lines · 75 tokens per session scan A 715750a18d1f

Subscribe to this mod's changes

vscode-doctor is a skill published in the GitHub repository majiayu000/spellbook (278 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 4,511 once invoked, about $0.0004 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-09-03.