← 返回 Skills 市场
gexsta

Skills Backup Claw Shell

作者 Gexsta · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
788
总下载
0
收藏
7
当前安装
1
版本数
在 OpenClaw 中安装
/install skills-backup-claw-shell
功能描述
Executes shell commands inside a dedicated tmux session named claw, capturing and returning the command output safely.
安全使用建议
This skill runs arbitrary shell commands inside a tmux session named 'claw'. Before installing or using it: (1) confirm the host has tmux and ask the author to list tmux as a required binary; (2) understand that the skill executes whatever you pass to it — do not use it on systems with sensitive data or where untrusted users can provide commands; (3) the dangerous-command check is simple and can be bypassed, and the code returns an error instead of prompting as the README suggests — treat it as not enforcing confirmation by itself; (4) if you need safer behavior, request the author add robust parsing, explicit interactive confirmation, and/or a command allowlist and declare required binaries. If you lack confidence in those fixes, consider not installing or running the skill on production/privileged machines.
功能分析
Type: OpenClaw Skill Name: skills-backup-claw-shell Version: 1.0.0 This skill is classified as suspicious due to its core functionality allowing arbitrary shell command execution via `execSync` in `handler.js`. A critical shell injection vulnerability exists in the `sendCommand` function, as `tmux send-keys` will transmit shell metacharacters (e.g., `;`, `|`, `$(...)`) from the `command` input directly to the shell within the tmux pane, allowing an attacker to execute arbitrary commands beyond the intended single command. While `SKILL.md` and `handler.js` include keyword-based safety checks, these are easily bypassable and do not mitigate the underlying vulnerability, making the skill a high-risk primitive.
能力评估
Purpose & Capability
The skill's code and SKILL.md both focus on running shell commands inside a tmux session named 'claw', which is coherent with the stated purpose. However the package does not declare that the tmux binary is required (required binaries list is empty) even though handler.js calls tmux repeatedly — that is an inconsistency the author should fix.
Instruction Scope
SKILL.md instructs the agent to ask the user for confirmation before running dangerous commands, but the implementation (claw_shell_run) returns an error when it detects a 'dangerous' command instead of prompting. The dangerous-command detection is also naive (simple substring matches like ' rm ' or 'sudo') and can be bypassed or produce false positives. The skill executes arbitrary user-supplied shell commands inside the tmux session, so any weaknesses in detection/confirmation behavior materially affect safety.
Install Mechanism
This is an instruction-only skill with no install spec, so nothing is downloaded or written during install. That minimizes install-time risk. Runtime does, however, depend on the system having tmux available (not declared).
Credentials
The skill requests no environment variables or credentials, which is proportionate to its stated purpose. There is no evidence it attempts to access unrelated secrets or config paths.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and does not attempt to persist credentials. It runs on demand and so its privilege/presence level is reasonable.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skills-backup-claw-shell
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skills-backup-claw-shell 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of claw-shell skill. - Runs shell commands exclusively in a tmux session named "claw" - Ensures no other tmux sessions are affected - Captures and returns command output to the agent - Confirms with user before running potentially dangerous commands (e.g., sudo, rm, reboot, shutdown) - Provides example safe and dangerous commands for reference
元数据
Slug skills-backup-claw-shell
版本 1.0.0
许可证
累计安装 8
当前安装数 7
历史版本数 1
常见问题

Skills Backup Claw Shell 是什么?

Executes shell commands inside a dedicated tmux session named claw, capturing and returning the command output safely. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 788 次。

如何安装 Skills Backup Claw Shell?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skills-backup-claw-shell」即可一键安装,无需额外配置。

Skills Backup Claw Shell 是免费的吗?

是的,Skills Backup Claw Shell 完全免费(开源免费),可自由下载、安装和使用。

Skills Backup Claw Shell 支持哪些平台?

Skills Backup Claw Shell 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skills Backup Claw Shell?

由 Gexsta(@gexsta)开发并维护,当前版本 v1.0.0。

💬 留言讨论