Wsl bridge

From taracodlabs/aiden · View interactive version

Wsl bridge is an AI agent skill from the GitHub repository taracodlabs/aiden. Run Linux in WSL from Windows; share files between hosts

How to use this skill

Skill file

WSL Bridge

Invoke Linux commands from Windows, pass data between WSL and Windows filesystems, and manage WSL distributions — without switching terminals.

When to Use

How to Use

Run a Linux command from PowerShell

wsl -- ls -la /home/
wsl -- df -h
wsl -- uname -a

Run a bash script in WSL

wsl bash -c "cd /home/user/project && npm install && npm run build"

Pass Windows file to WSL command

# Convert Windows path to WSL path
$winPath = "C:\Users\<you>\data.csv"
$wslPath = wsl wslpath -u $winPath
wsl -- cat $wslPath | wsl -- grep "ERROR"

Access Windows drive from WSL

# Windows C: drive is mounted at /mnt/c inside WSL
wsl -- ls /mnt/c/Users/<you>/Documents

List installed WSL distributions

wsl --list --verbose

Check WSL version and status

wsl --status
wsl --version

Shutdown WSL (frees memory)

wsl --shutdown

Set default WSL distribution

wsl --set-default Ubuntu-22.04

Run a specific distro

wsl -d Ubuntu-22.04 -- python3 --version

Forward a port from WSL to Windows

# Get WSL IP
$wslIp = (wsl -- hostname -I).Trim()
Write-Host "WSL IP: $wslIp"
# Use netsh to forward (requires elevated session)
# netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=$wslIp

Examples

"Run grep on a log file using WSL"

→ wsl -- grep -i "error" /mnt/c/logs/app.log | wsl -- tail -n 50

"What WSL distros do I have installed?"

→ wsl --list --verbose — shows name, state, and WSL version for each distro.

"Use awk to sum a column in a CSV"

→ wsl -- awk -F',' '{sum += $3} END {print sum}' /mnt/c/Users/<you>/data.csv

Cautions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.