win-to-linux-dev

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

🐧 把 Windows 开发迁入 Linux|装 WSL|配工具|接 IDE|自动探测|可回滚

一句话选型结论

按资料字段整理

win-to-linux-dev是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_399b09bb/win-to-linux-dev
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_399b09bb仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791625179
正文体量12.4 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
win-to-linux-dev当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

12.4 KB
模型实际读到的说明书原文,来自技能仓库

Win 转 Linux 开发环境 — Intent Router

What this skill is

This file is a thin wrapper: an intent-recognition and routing layer
that sends the user's request to the correct deterministic pipeline. It
contains ONLY routing and judgment logic.

  • Deterministic operations (probe, install, configure, undo) live in
    scripts/ — execute them, do not reimplement them.
  • Judgment support (decision trees, compatibility matrices,
    troubleshooting playbooks, user-facing templates) lives in
    references/ — load the listed document when the route says so.

The skill's purpose: move the user's development pipeline from
PowerShell into a standard Linux environment — with local WSL as the
default provider — atomically, reversibly, and without fighting the
desktop client's own sandbox.

Two governing principles (read before routing)

Principle 1 — Respect the client's sandbox (execution planes)

Every command runs on exactly one of three planes:

Plane What runs there Rule
S — client sandbox (default) reads, edits, searches, allowlisted commands If it CAN run in the sandbox, it MUST run there
L — standard Linux environment dev pipeline: builds, git, npm/pip, project work Route here ONLY when Linux semantics are genuinely required
H — host system level DISM features, restore points, registry, WSL install ONLY with elevation + explicit user consent; batched into one elevated run

If the client's sandbox blocks a Plane H/L command (e.g. wsl.exe on a
program blacklist): STOP. Never bypass — no alternate shell, no
encoded command, no copying binaries. Surface the block to the user and
offer the manual path. Full rules R1–R6, conflict analysis, and the
hand-off message template: load references/sandbox_coexistence.md.

Principle 2 — WSL is one Linux provider, not the only one

The user's goal is a standard Linux environment. WSL is the default
local provider (zero infrastructure), but an existing SSH remote VM
or dev container is an equally valid target. When detection reports
linuxProviders.hasNonWslProvider=true and WSL is absent, do NOT
install WSL by default — ask the user whether to keep the remote
provider or add local WSL. Provider selection rules P1–P5 and the
per-provider differences: load references/linux_environment_providers.md.

Intent recognition

Identify the intent from the user's message. Signals are examples, not
an exhaustive list — judge by meaning.

Intent Trigger signals (zh / en)
INT-DETECT 检查环境、能不能装 WSL、看看我的系统 / check my system, detect environment, can I run WSL; ALSO the default entry when host state is unknown
INT-INSTALL 安装/搭建 WSL、Windows 上装 Linux / install WSL, set up Linux on Windows
INT-INIT 在 WSL 里装开发工具、初始化 node/python / install dev tools in WSL; also the continuation after install/reboot
INT-EXPLORER 资源管理器打开 WSL 文件、桌面快捷方式、右键菜单 / Explorer shortcuts to WSL, right-click open in WSL
INT-ADAPT 让 IDE/AI 客户端/终端 用 WSL、连接 WSL 工作区、pipeline 迁到 Linux / configure client to use WSL, connect IDE to WSL workspace, move pipeline to Linux
INT-ROLLBACK 卸载、回滚、恢复原样 / rollback, uninstall this setup
INT-REPAIR WSL 坏了、命令被拦截、状态不对 / wsl blocked, something is broken; or any unexpected detection result

Judgment rules:
1. Explicit provider mention beats everything (rule P1): "用我的远程
服务器" → provider = SSH remote; adapt-only pipelines, skip install.
2. State unknown → INT-DETECT first. Detection is read-only and
cheap; never install on a guess.
3. Compound requests run in canonical order:
INT-DETECT → INT-INSTALL → INT-INIT → INT-EXPLORER → INT-ADAPT.
INT-ROLLBACK and INT-REPAIR are always standalone.
4. Ambiguous after detection → present the recommendation summary
and ask the user (Chinese). Never infer consent for Plane H.

Pipelines (routing table)

Each pipeline lists: steps → verification. Script details and decision
trees: references/agent_execution_guide.md.

P-DETECT (INT-DETECT)

  1. Run scripts/detect_env.ps1 (no admin) → parse the single JSON stdout.
  2. Interpret with references/detection_guide.md; honor
    recommendation.wslQueryBlocked and providerHint.
  3. Report to the user in Chinese (template: references/onboarding_flow.md).

Verify: valid JSON, schemaVersion present, recommendation fields populated.

P-INSTALL (INT-INSTALL) — Plane H, elevated

  1. Fresh detection (reuse if < 15 min old). Apply Principle 2 first:
    if providerHint is set, ASK before installing.
  2. scripts/install_wsl.ps1 -DryRun → review the plan JSON.
  3. scripts/install_wsl.ps1 (elevated). If needsReboot=true: tell the
    user in Chinese; steps auto-resume at next logon (or -Resume).
  4. Re-run detection to confirm the state transition.

Verify: final JSON success=true; state.jsonl contains
distro-install succeeded; detection shows the distro.

P-INIT (INT-INIT) — Plane L

  1. Confirm the distro exists (detection or wsl -l -q).
  2. Get-Content -Raw scripts/init_wsl_env.sh | wsl -d &lt;distro&gt; -- bash -s
  3. Spot-check: wsl -d &lt;distro&gt; -- bash -lc &quot;node -v; python3 --version; git --version&quot;.

Verify: stdout JSON success=true; ~/.win-to-linux-dev/manifest.json exists.

P-EXPLORER (INT-EXPLORER)

  1. scripts/create_explorer_shortcuts.ps1 -Distro &lt;distro&gt;.
  2. Optionally open Explorer at the resolved wslHome for visual proof.

Verify: JSON shortcutsCreated &gt; 0; wslHome non-empty.

P-ADAPT (INT-ADAPT)

  1. Choose provider (Principle 2, rule P1). WSL is the default; for an
    explicit remote choice use -Provider ssh-remote -SshHost &lt;host&gt; or
    -Provider devcontainer — the adapter then installs the matching
    remote extension and skips all WSL-specific config.
  2. scripts/setup_ai_client.ps1 -Provider &lt;provider&gt; -Distro &lt;distro&gt;
    (no admin). For the WSL provider this also generates a filled
    WSL-Dev-&lt;distro&gt;.code-workspace on the Desktop — hand it to the user
    as the one-click IDE-to-WSL entry point (Chinese template:
    references/onboarding_flow.md). The workspace-file template is
    inlined in the adapter (no .code-workspace asset is bundled, since
    some platforms filter non-standard file types). Adapter internals:
    references/ai_client_adapter.md.

Verify: stdout JSON provider matches the choice; adapter.json
records provider (rule P5); for WSL: IDE settings.json contains the
WSL terminal profile AND workspaceFile is non-null; CLI wrappers exist
for detected CLI clients.

P-ROLLBACK (INT-ROLLBACK) — Plane H where flagged

  1. scripts/rollback.ps1 -DryRun → show the plan JSON to the user.
  2. On consent: scripts/rollback.ps1 -SkipConfirmation
    (-RemoveDistro / -RemoveWSLFeatures ONLY if the user explicitly
    approved those destructive scopes).

Verify: JSON executed list; failed empty; re-run detection if a
distro was removed.

P-REPAIR (INT-REPAIR)

  1. Run detection; read wsl.queryBlocked, blockedActionHint,
    providerHint, plus state.jsonl for the last failed step.
  2. Match the symptom in references/troubleshooting.md; apply the fix
    or hand off per Principle 1.
  3. Re-run detection to confirm recovery.

Verify: symptom's acceptance check in the troubleshooting playbook.

Result verification contract

Applies to every pipeline — use these before declaring success:
1. stdout JSON: every script emits exactly ONE JSON document; check
success and any error code. Nothing else is on stdout.
2. Event stream: state.jsonl (Windows: %USERPROFILE%\.win-to-linux-dev\;
WSL: ~/.win-to-linux-dev/) — one JSON event per line
{ts, step, status, level, detail}; the last event for each step
must be succeeded or an explained skipped.
3. State re-probe: for state-changing pipelines, re-run
detect_env.ps1 and diff the relevant fields.
4. Language: report outcomes to the user in Chinese; keep all
machine-facing artifacts (JSON, logs, manifests) in English.

Troubleshooting (route first, details in references)

Symptom Route
wslQueryBlocked=true / "blocked for security" / "Program Blacklist" Principle 1 rule R4: NEVER bypass; show blockedActionHint; hand off → references/sandbox_coexistence.md
error=admin_required Re-run elevated; if the sandbox blocks elevation, hand off to the user
needsReboot=true Tell user to reboot (Chinese template); auto-resume at logon or -Resume
error=sudo_password_required User runs sudo -v inside WSL once, then re-run (idempotent)
exit code 97 (wsl_runner) cwd unreachable in WSL → -TranslatePaths or a Linux path
error=confirmation_required Show -DryRun plan, get consent, re-run with -SkipConfirmation
unparseable IDE settings.json Original preserved at .bak-&lt;timestamp&gt;; review, then re-run adapter
providerHint non-null Existing remote Linux provider — ask before installing WSL (Principle 2)
anything else references/troubleshooting.md error-code table + recovery procedures

Resource map

scripts/ — deterministic operations (execute, never reimplement)

Script Plane Admin One-liner
scripts/detect_env.ps1 S No Read-only host probe → single JSON (schema 2.1), includes linuxProviders
scripts/install_wsl.ps1 H Yes Atomic/reversible/resumable WSL+distro install; -DryRun, -Resume
scripts/init_wsl_env.sh L No Idempotent dev-tool install inside WSL; PEP 668 aware; sudo -n preflight
scripts/create_explorer_shortcuts.ps1 H(HKCU) No Desktop/Quick-Access/context-menu entries; resolves the real WSL home
scripts/setup_ai_client.ps1 S/H(HKCU) No Provider-aware adapter: IDE settings/extensions, CLI wrappers, Terminal profile, workspace file; -Provider, -Remove reverses
scripts/wsl_runner.ps1 L No Pipeline transfer: stdin-delivered bash execution, exit-code propagation
scripts/rollback.ps1 H Yes* Full reversal; -DryRun then -SkipConfirmation (*only for feature disable)

references/ — judgment support (load per route)

Document Load when
references/sandbox_coexistence.md ANY sandbox signal (blocks, blacklists, approval prompts); before ANY Plane H escalation
references/linux_environment_providers.md Provider choice unclear; providerHint set; user mentions remote VM/container/IDE remote
references/agent_execution_guide.md Executing P-INSTALL/P-INIT — full decision trees and per-step detail
references/detection_guide.md Interpreting detection JSON (field meanings, decision tree, schema changelog)
references/compatibility_matrix.md Any version-specific question — Win10/11 capabilities, PowerShell 5.1/7.x strategy, logging contract
references/ai_client_adapter.md P-ADAPT — per-client config mechanics, auth passthrough, IDE workspace/profile connection
references/onboarding_flow.md Talking to the user — Chinese templates for before/during/after, file locations, reboot messaging
references/troubleshooting.md P-REPAIR — full error-code table and recovery procedures
references/wsl_architecture.md User asks WHY WSL 1 vs 2 (architecture, performance, interop)

assets/ — templates handed to the user (never loaded into context)

Asset Use
assets/wsl_bashrc_extras.sh Optional shell extras inside WSL (aliases, interop helpers)
assets/windows_terminal_profile.json Windows Terminal profile template

The IDE-to-WSL workspace-file template is inlined inside
setup_ai_client.ps1 (no .code-workspace asset is bundled, since some
platforms filter non-standard file types).

常见问题

5 问
答案由本站依据条目字段整理
win-to-linux-dev怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_399b09bb/win-to-linux-dev。安装方式为未标注。装完刷新技能列表或重开客户端。

win-to-linux-dev支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

win-to-linux-dev权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

win-to-linux-dev收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

win-to-linux-dev用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。