cross-platform-safety

v2026.09.24

Ensure commands and paths are safe across Windows + WSL + Docker (PowerShell vs bash, path translation, permissions). Use when instructions touch shell, filesystem, Docker, or OS-specific behavior.

GitHub
安装命令
npx skhub add janjaszczak/cross-platform-safety
Markdown
SKILL.md

cross-platform-safety

Activation gate (anti-noise)

Activate if any of:

  • The user mentions Windows/WSL/PowerShell/Docker explicitly.
  • You must provide shell commands that could differ by OS.
  • Paths/permissions/volumes/networking are involved.

Procedure

  1. Determine execution context:
    • Where the command will run (Windows host? WSL? container?).
  2. Provide OS-specific variants ONLY if needed:
    • Prefer a single canonical path + “Windows note” if small delta.
  3. Guardrails:
    • Avoid reserved PowerShell variables and quoting pitfalls.
    • Avoid whitespace path breakage; use explicit quoting.
  4. Validate critical commands with “dry read” steps (e.g., pwd, whoami, ls).

Output

  • “Run in: <context>” + exact command(s) + 1–2 quick verification commands.
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

skills/cross-platform-safety

默认分支

main

最新提交

cb70ff7

Tree SHA

dc4c45a