vjdipaola/skill-forge/windows-cli-wsl-repair

Claude Code and agent skill by vjdipaola/skill-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Diagnose and repair Windows developer CLI, npm global package, PATH shim, PowerShell, Codex sandbox, and WSL Ubuntu package or default-user issues. Use when the user asks to figure out what is wrong with a local Windows tool install/update, a broken command on PATH, npm postinstall/native binary behavior, WSL package health, Ubuntu launch/user errors, or misleading sandbox output.

Install

npx vskill@latest install vjdipaola/skill-forge/windows-cli-wsl-repair

SKILL.md

The same SKILL.md was published earlier as vjdipaola/skill-forge/windows-cli-wsl-repair.

Windows CLI And WSL Repair

Use this skill to separate real machine state from Codex sandbox artifacts before changing local tooling. Diagnose first, then make the smallest repair supported by evidence.

Workflow

  1. Identify the active command path.
  • Use Get-Command <name> and where.exe <name>.
  • Inspect wrappers such as .bat, .cmd, .ps1, or tiny .exe stubs before assuming the package itself is broken.
  • Compare the active PATH command to any known native binary under the tool's own install directory.
  1. Separate sandbox behavior from normal-user behavior.
  • If a command fails only in Codex sandbox, run a narrow normal-user probe with escalation when needed.
  • Prefer no-profile PowerShell for diagnostics if profile-loaded shells hang.
  • Do not treat sandbox-only WSL inventory output as truth.
  1. Check package-manager and postinstall state.
  • For npm tools, inspect npm.cmd config get ignore-scripts.
  • If global npm install leaves a tiny native launcher stub, inspect package metadata and optional native dependency folders.
  • If the package has an install script, rerun only that package's postinstall in the package directory after confirming it is the intended repair.
  1. Repair PATH carefully.
  • Prefer the official current shim when it works.
  • Back up stale wrapper files before replacing them.
  • Point legacy wrappers to the known-good native executable only after direct version checks pass.
  1. Repair WSL package state only after inventory is trusted.
  • Use unsandboxed wsl.exe --status and wsl.exe -l -v when sandbox output says no distro exists but other evidence suggests WSL is running.
  • Check /etc/passwd, /etc/wsl.conf, id, whoami, and pwd before reading sensitive files.
  • Use the maintenance sequence: dpkg --configure -a, apt-get -f install -y, apt-get update, apt-get upgrade -y, apt-get autoremove -y, apt-get autoclean, then apt-get check.
  1. Fix WSL default-user drift when proven.
  • If plain wsl.exe -d <distro> falls back to root with getpwuid(1000) failed, compare the Linux user's UID to Windows-side DefaultUid.
  • If the registry DefaultUid is stale, update only that distro value, then run wsl.exe --terminate <distro> and retest.

Guardrails

  • Do not read .env, tokens, private keys, cookies, or /etc/shadow.
  • Do not change registry values until the exact distro GUID and intended UID are proven.
  • Do not disable global security settings like ignore-scripts=true unless the user explicitly asks.
  • Do not run broad reinstall or cleanup commands before proving the narrower failure layer.

Verification

Report the final state with:

  • Active command path and version for the repaired CLI.
  • Any wrapper files backed up or changed.
  • WSL distro/version, launch user, apt-get check, dpkg --audit, and remaining upgradable package count.
  • Settings intentionally left unchanged, especially security-sensitive npm config.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/vjdipaola/skill-forge/windows-cli-wsl-repair/badge)](https://verified-skill.com/skills/vjdipaola/skill-forge/windows-cli-wsl-repair)

Something wrong with this skill or its page? Tell us.