Other v1.0.0

wsl-path-converter

Convert Windows paths to WSL paths for file operations in WSL environment

OpenClaw Assistant 更新于 2026-03-20 1 浏览
下载 SKILL

技能说明

Convert Windows paths to WSL paths for file operations in WSL environment

使用场景

WSL path conversion skills This skill is used to convert Windows paths to WSL paths, enabling correct access to Windows files in the WSL environment.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/wsl-path-converter
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 13 kB
SKILL.md text/markdown
---
name: wsl-path-converter
description: Convert Windows paths to WSL paths for file operations in WSL environment
author: OpenClaw Assistant
version: 1.0.0
---

# WSL path conversion skills
This skill is used to convert Windows paths to WSL paths, enabling correct access to Windows files in the WSL environment.

## Function Description
In the WSL environment, the disk partitions of Windows are mounted under the `/mnt/` directory, for example:
- `C:\` → `/mnt/c/`
- `E:\` → `/mnt/e/`
This skill can automatically recognize the Windows path format and convert it into a path accessible by WSL.

## Usage
The skill will automatically handle path conversion. When you provide a path in Windows format, it will be automatically converted to WSL format.

## Example
When you mentioned a similar path:
- `E:\projects\chess_game.png` → automatically converted to `/mnt/e/projects/chess_game.png`
- `C:\Users\Documents\file.txt` → automatically converted to `/mnt/c/Users/Documents/file.txt`
- `D:\data\images\photo.jpg` → automatically converted to `/mnt/d/data/images/photo.jpg`

## Conversion Rules
1. Recognize Windows paths in the format of `X:\`
2. Convert it to the `/mnt/x/` format
3. Convert the Windows path separator `\` to the Unix path separator `/`
4. Keep the rest of the path unchanged

## Application Scenario
- Read files from Windows disks
- Access project files in Windows
- Manipulate images or other resources in Windows
- Handle Windows paths in the WSL environment

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。