wsl-vscode-doctor

wsl-vscode-doctor is a skill for Claude Code from atman-33/workhub. It costs 52 tokens per session (1,069 once invoked), scanned A, original, MIT.

A troubleshooting and configuration skill for making the `code .` command open a project in a Windows-connected VS Code window from WSL. WSL is a way to run Linux tools inside Windows, and VS Code is a code editor.

In plain words
What is it for?
Use it to check the VS Code launcher, detect WSL settings, locate the Windows installation, and update shell startup configuration when needed.
Why use it?
It fixes cases where the command fails or opens a disconnected editor that cannot work with the WSL environment correctly.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the agent-ops plugin — 8 skills shipped together

Good fit Use it to check the VS Code launcher, detect WSL settings, locate the Windows installation, and update shell startup configuration when needed.

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

Made for: Claude Code.

Or install agent-ops, the plugin that ships this one along with the rest of its 8 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/atman-33/workhub/wsl-vscode-doctor"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/wsl-vscode-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 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.00052 $0.01069
Opus 5 $0.00026 $0.00535
Sonnet 5 $0.00010 $0.00214
Haiku 4.5 $0.00005 $0.00107

Measured 8d ago against content hash d586d70b3b36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wsl-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 8d 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.

plugins/agent-ops/skills/wsl-vscode-doctor/SKILL.md · 106 lines

How it starts

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

Task

Diagnose why code . doesn't work (or opens the wrong window) in this WSL shell, and patch ~/.zshrc so it works going forward.

Steps

  1. Check current state. Run:

    command -v code
    echo "WSL_DISTRO_NAME=$WSL_DISTRO_NAME"
    echo "$PATH" | tr ':' '\n' | grep -i "Microsoft VS Code"
    

    Why check both? The code launcher script shipped by the Windows VS Code install detects "am I in WSL" via $WSL_DISTRO_NAME. Without it, code . still runs, but it skips routing through the Remote-WSL extension and opens a disconnected Windows-side window instead.

    Completion criterion: code resolves on PATH AND WSL_DISTRO_NAME is set. If both are true, report "already configured" and stop — no further steps needed.

  2. Locate the VS Code Windows install (don't hardcode a username):

    VSCODE_BIN=$(ls -d /mnt/c/Users/*/AppData/Local/Programs/"Microsoft VS Code"/bin 2>/dev/null | head -1)
    

    Completion criterion: $VSCODE_BIN is a directory containing a code file. If nothing is found, report that VS Code isn't installed on the Windows side and stop.

  3. Find a known-good WSL_DISTRO_NAME value. This session's own environment is the broken one, so borrow the value from another process on the same machine that already has it set correctly:

    for p in /proc/[0-9]*/environ; do
      v=$(tr '\0' '\n' < "$p" 2>/dev/null | grep '^WSL_DISTRO_NAME=')
      [ -n "$v" ] && echo "$v" && break
    done
    

    Completion criterion: got a WSL_DISTRO_NAME=<value> from a sibling process, or — if none is found — read NAME= from /etc/os-release as a fallback and note in the final report that it's a best-effort guess the user should verify.

  4. Patch ~/.zshrc, idempotently. Grep for the marker # --- wsl-vscode-doctor:begin --- first. If it's already there, skip this step (don't duplicate). Otherwise append:

    # --- wsl-vscode-doctor:begin ---
    export PATH="$PATH:<VSCODE_BIN from step 2>"
    export WSL_DISTRO_NAME="${WSL_DISTRO_NAME:-<value from step 3>}"
    # --- wsl-vscode-doctor:end ---
    

Read the full file on GitHub · 106 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. 8d ago First seen · 106 lines · 52 tokens per session scan A d586d70b3b36

Subscribe to this mod's changes

wsl-vscode-doctor is a skill published in the GitHub repository atman-33/workhub (2 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,069 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

gonavi-cli

Operate databases through the GoNavi headless CLI — the gonavi executable shipped in verified GitHub Release archives. Covers listing/adding/importing saved connections, running SQL queries against saved connections or ad-hoc connection files, exporting result sets to csv/json/md/html/xlsx, batch-executing SQL files…

Syngnat/GoNavi · 144 tokens

root-cause

Find the mechanism behind a failure instead of patching its symptom - reproduce first, one variable per experiment with the prediction written before the run, exit by naming the mechanism and pinning it with a failing test. Use for a bug, an unexplained red test, or a failure that will not reproduce.

jjanczur/tyran · 61 tokens

stress-test

Use when a design, plan, or decision needs adversarial scrutiny before proceeding. Interrogates every branch of the decision tree, providing recommended answers and forcing explicit agreement or pushback. Triggers on "grill me", "stress test this", "poke holes", "challenge this design", or when…

DollarDill/beads-superpowers · 72 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

DollarDill/beads-superpowers · 21 tokens

x-bug2rag

A knowledge-capture tool that turns reusable bug explanations into a local RAG collection, meaning a searchable store of text that an agent can retrieve later. It records the trigger, incorrect implementation, correct implementation, and observable difference.

KtKID/x-dev-pipeline · 255 tokens

rubber-ducky

Use when you've planned a non-trivial change and are about to implement it, finished a complex or multi-file piece of work, just wrote tests, or are stuck on repeated failures — and any time the user says "rubber duck this", "rubber ducky", "get a second opinion", "sanity-check my plan", "poke holes in this", "what am…

harnessprotocol/harness-kit · 186 tokens