← 返回 Skills 市场
102
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install windows-shell-syntax
功能描述
Use when giving terminal commands on Windows or when comparing Windows vs Linux shell syntax. Detect whether the shell is PowerShell or cmd.exe before sugges...
安全使用建议
This skill appears coherent and low-risk: it only contains guidance text for producing shell commands for cmd, PowerShell, and Bash and asks the agent to confirm the user's shell before producing commands. Because it is instruction-only there is no install or secret access. Things to watch for before using: (1) ensure the agent actually asks which shell/version the user runs (or returns labeled variants) rather than guessing; (2) remember any command output by the agent can have side effects if you copy/paste and run it locally—review commands before executing; and (3) if a future version adds an install step, downloads, or requests credentials, re-evaluate for coherence and risk.
功能分析
Type: OpenClaw Skill
Name: windows-shell-syntax
Version: 1.0.1
The skill bundle provides comprehensive and accurate instructions for an AI agent to distinguish between Windows shells (PowerShell, cmd.exe, and Bash) and provide correct syntax for each. It focuses on improving user experience by preventing shell-specific errors and contains no malicious code, data exfiltration attempts, or harmful prompt-injection instructions.
能力评估
Purpose & Capability
Name and description match the SKILL.md: it provides rules and rewrite patterns for cmd, PowerShell, and Bash on Windows. There are no surprising required binaries, env vars, or config paths.
Instruction Scope
The runtime instructions correctly constrain behavior (ask the user which shell or provide separate cmd/PowerShell variants). As written it tells the agent to 'detect whether the shell is PowerShell or cmd.exe' — this is reasonable only if detection is done by asking the user or by inferring from the conversation; the skill does not instruct the agent to probe the host or read local files, which would be out of scope.
Install Mechanism
Instruction-only skill with no install spec or downloads; nothing is written to disk or fetched during install.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not ask for unrelated secrets or access.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent agent presence or modify other skills or system settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install windows-shell-syntax - 安装完成后,直接呼叫该 Skill 的名称或使用
/windows-shell-syntax触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Release notes
Improved Windows shell compatibility guidance, especially around && / ||
Clarified the difference between cmd.exe, PowerShell 7+, and Windows PowerShell 5.1
Added a compact Bash → Windows rewrite cheat sheet for common command conversions
Added practical guidance for avoiding quoting/escaping traps and tricky redirection patterns in cmd and PowerShell
If you want, I can also give you:
a more concise one-line version
or a slightly more polished ClawHub-style version
v1.0.0
Initial release with clear guidance on handling Windows shell syntax distinctions.
- Requires detection of the user's shell (PowerShell, cmd.exe, or Bash) before suggesting commands.
- Prevents giving Bash-only syntax to Windows users unless they're using an appropriate shell (Git Bash, WSL, etc).
- Includes concise mappings for quoting, escaping, chaining, env vars, and line continuations for cmd, PowerShell, and Bash.
- Outlines safe rewrite patterns and response structure for ambiguous shell contexts.
- Offers minimal explanations to clarify key syntax differences without overexplaining.
元数据
常见问题
windows-shell-syntax 是什么?
Use when giving terminal commands on Windows or when comparing Windows vs Linux shell syntax. Detect whether the shell is PowerShell or cmd.exe before sugges... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。
如何安装 windows-shell-syntax?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install windows-shell-syntax」即可一键安装,无需额外配置。
windows-shell-syntax 是免费的吗?
是的,windows-shell-syntax 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
windows-shell-syntax 支持哪些平台?
windows-shell-syntax 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 windows-shell-syntax?
由 loevery(@loevery)开发并维护,当前版本 v1.0.1。
推荐 Skills