safe-shell
安全命令行执行器 - 仅允许读取类和查询类命令,阻断所有危险操作。安装命令:npx clawhub@latest install safe-shell
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chengyusheng188/safe-shellWhat This Skill Does
The safe-shell skill for OpenClaw is a highly restricted, read-only terminal environment designed to empower AI agents to gather system information without the risk of accidental modification. It provides a secure bridge between your environment and the AI, enforcing a strict allow-list policy that permits only non-destructive commands across macOS, Linux, and Windows. By neutralizing hazardous commands like rm, chmod, or sudo, it ensures that your system remains untouched while allowing the AI to troubleshoot performance, inspect network configurations, and verify system state.
Installation
To install this skill, run the following command in your terminal:
npx clawhub@latest install safe-shell
Use Cases
- Remote Troubleshooting: Let the AI diagnose network latency by running ping, traceroute, or netstat commands independently.
- Performance Monitoring: Allow the agent to check active processes with ps or tasklist to identify resource-heavy applications without granting permissions to kill them.
- System Auditing: Use the agent to retrieve current user info, hardware device lists, or environment variables for diagnostic reports.
- File Exploration: Grant the AI permission to inspect configuration files using cat or type, facilitating context-aware analysis without risking file deletion.
Example Prompts
- "Check the current disk space availability on my machine and tell me if any partition is nearing capacity."
- "Show me the current network configuration and provide a list of all active TCP connections."
- "Who is currently logged in, and can you list the top 5 CPU-consuming processes right now?"
Tips & Limitations
This skill is built for read-only safety. If your workflow requires the AI to perform installation or file updates, you will need to complement this with a separate, high-privilege execution skill. Ensure that you monitor the output logs for any unrecognized command attempts, as the safety wrapper will block them by default. This tool is ideal for developers who want to expose system telemetry to an agent while maintaining a zero-trust policy regarding system state changes.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chengyusheng188-safe-shell": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read