/wsl-windows-onboarding:wsl-windows-onboardingfrom wsl-windows-onboarding
Onboards Windows machines to WSL2: enables WSL, installs rtk, migrates dev projects off C:\ into the Linux filesystem using rsync while preserving .git and .env. Knows real migration traps like rtk PATH issues, /mnt/c slowness, and CRLF filemode problems.
Ships in wsl-windows-onboarding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill takes a Windows developer from "I have a Windows box (probably with Docker)" to "my projects run fast inside WSL2 and rtk is installed." It bakes in the traps that cost the most time on a first migration.
It covers four phases that usually run in sequence, but each is independently useful:
references/wsl-setup.md + scripts/wsl-diagnose.shreferences/rtk-install.mdreferences/project-migration.md + scripts/migrate-repos.shreferences/shell-setup.mdUse it whenever the user wants any of these, even if they don't name "WSL":
Each one, skipped, fails silently or irreversibly:
references/project-migration.md..git. It carries history and any uncommitted work. Excluding it to "save space" silently destroys the repo's value..env is why you rsync, not re-clone. .env/secrets are gitignored, so a fresh git clone does NOT bring them. rsync the working tree (keeping .env) instead of re-cloning. This is the single most important reason the migration uses rsync.Run scripts/wsl-diagnose.sh (read-only — it mutates nothing) or the manual checks in references/wsl-setup.md. The goal is to learn, before doing anything: is WSL2 installed, which distro is the real working distro, is there enough disk, are git/curl/rsync present.
Key things to get right (full detail in references/wsl-setup.md):
wsl -l -v and wsl --version before installing anything.docker-desktop distro is Docker's backend, not your workspace. Work inside the real distro (e.g. Ubuntu). Picking docker-desktop is a classic mistake.wsl --install Ubuntu — use a name exactly as wsl --list --online prints it; a versioned name that isn't listed (e.g. Ubuntu-24.04 on builds that only list the generic Ubuntu) fails with WSL_E_DISTRO_NOT_FOUND. The first-run user prompt (OOBE) needs a real terminal; when scripting, register non-interactively and create a non-root user with sudo, set as default via /etc/wsl.conf [user] default. Full recipe in references/wsl-setup.md./mnt/c/..., but working there is slow (cross-filesystem). The payoff of this whole skill is moving projects onto the Linux filesystem (~).Optional / skippable. If the user only wants the migration or only asked about WSL access, skip straight to Phase 3 — don't install rtk unprompted. Do this phase when the user actually wants rtk.
Full recipe in references/rtk-install.md. The essentials:
~/.local/bin, which is usually not on PATH — you must add it to ~/.bashrc, or rtk will be "not found" even though it installed fine.docker command output.curl -fsSL https://claude.ai/install.sh | bash, also lands in ~/.local/bin, so the same PATH fix covers both) first, then rtk init -g --auto-patch (use --auto-patch — plain rtk init -g prompts to patch an existing ~/.claude/settings.json and defaults to N in a non-interactive shell). See references/rtk-install.md.Use scripts/migrate-repos.sh (it rsyncs with the right excludes and then validates; it deliberately never deletes anything) and follow references/project-migration.md for the copy → validate → delete sequence and the post-migration cleanup.
The migration, in short:
C:\...\repos → ~/repos with rsync, keeping .git and .env, excluding only rebuildable dirs (node_modules, .venv/venv, build outputs, caches). Run it in the background — over /mnt/c it is slow..git repo count matches, every real .env is present. Mind the false positive: .env files inside node_modules (e.g. the psl npm package) will appear "missing" — that's correct and harmless.Remove-Item (faster than rm over /mnt/c). If it fails with Cannot remove item …\nul: Incorrect function, the repo has a reserved-name file (nul/con/aux/…) a Linux checkout can create — delete via the \\?\ extended-length path prefix. See references/project-migration.md./mnt/c, and reinstall dependencies per stack (npm install, pip install -r, dotnet restore, mix deps.get).Tight disk? When C: is nearly full (the WSL ext4.vhdx lives on C: and grows as you copy, so you transiently need room for both copies), don't copy the whole tree first. Migrate one repo at a time — copy → validate that single repo with a rsync -an dry-run (0 file transfers = synced) → delete its Windows source to free space → next. This caps the peak to a single repo and resumes a half-finished migration cleanly. Full loop in references/project-migration.md.
After migration, git status inside a migrated repo may show every file as modified with zero untracked files. This is almost never real edits — it's a CRLF/LF mismatch: the working tree was checked out on Windows (core.autocrlf=true → CRLF on disk) while the committed blobs are LF, and the Linux git (autocrlf=false) flags the whole tree. Confirm with:
git diff --ignore-cr-at-eol --stat # empty output ⇒ pure line-ending artifact, no real changes
If it's empty, the fix is a line-ending normalization (.gitattributes with * text=auto eol=lf + git add --renormalize .), not a panic. references/project-migration.md has the full diagnosis and fix, including how to scope a commit cleanly while the tree is in this state.
Optional. Only when the user wants it. Full, source-validated recipe in references/shell-setup.md (install zsh + oh-my-zsh, set the default shell with chsh, passwordless sudo trade-off, the Docker completion warning, and JetBrains Mono Nerd Font + ligatures on Windows Terminal).
The one trap that bites everyone:
~/.bashrc config does NOT carry to zsh. zsh reads ~/.zshrc, never ~/.bashrc. So the rtk PATH (~/.local/bin) and any aliases you added during onboarding are invisible in zsh until you re-add them to ~/.zshrc — and on Ubuntu the system profile won't add ~/.local/bin for you (its /etc/zsh/zprofile is empty), so the explicit export is required, not redundant. See the cross-reference in references/rtk-install.md.font.features.settings.json); set an explicit "icon" (copy the package PNG to a stable path) and the top-level "defaultProfile" to open Ubuntu by default — which is separate from wsl --set-default. Don't hand-guess the profile GUID on WT Preview (it uses the Store-app source). See references/shell-setup.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wsl2, windows-development, project-migration, rtk-install, rsync
npx claudepluginhub j0ruge/skills --plugin wsl-windows-onboardingOther plugins' skills for the same job