wsl-env

wsl-env is a skill for Claude Code from Marcel-Bich/marcel-bich-claude-marketplace. It costs 146 tokens per session (1,640 once invoked), scanned A, original, MIT.

A guide for connecting from Windows Subsystem for Linux, a Linux environment running inside Windows, to Windows-side services and processes.

In plain words
What is it for?
Reaching Windows services, inspecting processes and logs, using PowerShell launchers, and performing supported machine actions from WSL.
Why use it?
It helps distinguish a real service failure from a connection problem between WSL and Windows.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the credo plugin — 26 skills, 15 commands, 6 hooks shipped together

Good fit Reaching Windows services, inspecting processes and logs, using PowerShell launchers, and performing supported machine actions from WSL.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Marcel-Bich/marcel-bich-claude-marketplace
Claude Code
/plugin install credo

Made for: Claude Code.

Or install credo, the plugin that ships this one along with the rest of its 26 skills, 15 commands, 6 hooks.

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-env

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcel-bich/marcel-bich-claude-marketplace/wsl-env/github.svg)](https://agentmods.dev/skills/marcel-bich/marcel-bich-claude-marketplace/wsl-env)
Your own site
<a href="https://agentmods.dev/skills/marcel-bich/marcel-bich-claude-marketplace/wsl-env"><img src="https://agentmods.dev/badge/skills/marcel-bich/marcel-bich-claude-marketplace/wsl-env/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-env

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcel-bich/marcel-bich-claude-marketplace/wsl-env"><img src="https://agentmods.dev/badge/skills/marcel-bich/marcel-bich-claude-marketplace/wsl-env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00146 $0.01640
Opus 5 $0.00073 $0.00820
Sonnet 5 $0.00029 $0.00328
Haiku 4.5 $0.00015 $0.00164

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

Security

Grade A, and why

wsl-env scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

runs inside WSL. Use whenever a service seems unreachable from WSL (a localhost curl
plugins/credo/skills/wsl-env/SKILL.md · 131 lines

How it starts

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

wsl-env - WSL to Windows-side helper

When the agent runs inside WSL, the thing it needs to reach or drive often lives on the Windows side. WSL frequently cannot reach Windows localhost ports directly, so a naive curl localhost:PORT failing is NOT evidence that a service is down. This skill defines how to detect that situation and how to act across the WSL/Windows boundary correctly.

Self-detect first (no-op when irrelevant)

Before doing anything WSL-specific, check whether it applies:

  • Is this actually WSL? Check for the WSL kernel signature, e.g. grep -qi microsoft /proc/version (or check /proc/sys/kernel/osrelease). If not WSL, this skill is a no-op - use normal local access.
  • Is the target Windows-side? A service bound by a Windows process, a Windows .ps1 launcher, a Windows path, or a machine-level action (hibernate). If the target is a native Linux service inside the WSL distro, this skill is a no-op - reach it the normal Linux way.

Only when both are true do the rules below apply.

Reaching a service: try BOTH methods before giving up

A service reachability failure from WSL has two distinct fixes depending on how the service is bound. Never conclude "unreachable" without trying both.

  1. Service bound to 0.0.0.0 (all interfaces): reachable from WSL via the Windows LAN-IP, NOT via localhost/127.0.0.1. Point the request at the host's real LAN address plus the port.

  2. True localhost-only service (bound to 127.0.0.1 on Windows): not reachable from WSL by IP at all. Reach it by running the request on the Windows side through powershell.exe, for example:

    powershell.exe -NoProfile -Command "(Invoke-WebRequest -UseBasicParsing -TimeoutSec 5 http://localhost:PORT/path).Content"
    

Rule: if the LAN-IP method fails, try the powershell.exe method (and vice versa) before reporting the service as down.

Getting the values: config first, then discover

The LAN-IP is environment-specific and DYNAMIC - the host's real LAN address. Resolve it at runtime, never hardcode it; the config only caches it:

Read the full file on GitHub · 131 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. 12d ago First seen · 131 lines · 146 tokens per session scan A 25e1ad8b7481

Subscribe to this mod's changes

wsl-env is a skill published in the GitHub repository Marcel-Bich/marcel-bich-claude-marketplace (13 stars, last pushed today), licensed MIT. It adds 146 tokens to every session and 1,640 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.