← 返回 Skills 市场
Openclaw Gateway Fd Fix
作者
Jian Zhang
· GitHub ↗
· v1.0.0
626
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-gateway-fd-fix
功能描述
Fix OpenClaw Gateway "spawn EBADF" / "RPC probe failed" / "EMFILE too many open files" errors caused by file descriptor exhaustion from too many files in wor...
安全使用建议
This skill appears to do what it says, but it performs destructive and persistent actions: it may delete .venv/node_modules directories and will edit and reload your LaunchAgent plist. Before running: (1) Inspect fix.sh yourself (it's included). (2) Let the script list candidate directories and only approve deletion if you understand which items will be removed — consider moving rather than deleting. (3) Verify the plist backup ($PLIST.bak.<timestamp>) exists before any change. (4) Be aware the script is macOS-only and assumes the 'openclaw' CLI is installed. (5) Note a minor robustness issue: rm -rf uses unquoted variables which can mishandle paths with spaces/newlines — consider running the script in a safe environment or adapting it to safely handle special characters. If unsure, manually follow the SKILL.md manual steps instead of the one-click script.
功能分析
Type: OpenClaw Skill
Name: openclaw-gateway-fd-fix
Version: 1.0.0
The skill bundle is classified as suspicious due to the use of high-risk system modification commands in `fix.sh`. Specifically, the script uses `sed -i` to modify the `ai.openclaw.gateway.plist` LaunchAgent configuration file, `rm -rf` to delete directories within the user's workspace (even with user confirmation), and `launchctl` to manage system services. While these actions are aligned with the stated purpose of fixing file descriptor exhaustion for the OpenClaw Gateway, they represent powerful capabilities that could be abused, fitting the criteria of 'risky capabilities without clear malicious intent'.
能力评估
Purpose & Capability
The skill claims to detect and repair FD exhaustion for the OpenClaw Gateway on macOS. The included fix.sh finds large dependency directories in ~/.openclaw/workspace, optionally deletes them, updates the user's LaunchAgent plist to raise NumberOfFiles, and restarts the gateway—these actions align with the stated goal.
Instruction Scope
Instructions are narrowly focused on the gateway issue and reference only workspace, the LaunchAgent plist, and gateway commands. They do perform destructive actions (rm -rf of .venv/node_modules) and modify ~/Library/LaunchAgents/ai.openclaw.gateway.plist then restart the service. The script prompts for confirmation before deletion and backs up the plist. Minor safety issues: some variables used with rm -rf are unquoted (possible word-splitting/edge-case deletion problems), and the script assumes the presence of 'openclaw' and macOS tools.
Install Mechanism
No install spec; the skill is instruction-only with an included shell script. Nothing is downloaded or installed automatically.
Credentials
The skill requests no environment variables, credentials, or unrelated config paths. It only touches user-owned files under $HOME, which are relevant to the task.
Persistence & Privilege
The script modifies the user's LaunchAgent plist and uses launchctl to unload/load the agent (user-level service changes). This is expected for changing FD limits, but it is a persistent change to user service configuration and requires user consent; there is no 'always: true' privilege escalation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-gateway-fd-fix - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-gateway-fd-fix触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release: provides one-click detection and repair for OpenClaw Gateway file descriptor exhaustion issues.
- Automatically handles removal of large/dependency directories from workspace (.venv, node_modules).
- Sets LaunchAgent file descriptor limits to prevent "EMFILE" and "spawn EBADF" errors.
- Includes full instructions for manual troubleshooting and verification.
- Addresses the most common OpenClaw Gateway crash related to too many open files in workspace.
元数据
常见问题
Openclaw Gateway Fd Fix 是什么?
Fix OpenClaw Gateway "spawn EBADF" / "RPC probe failed" / "EMFILE too many open files" errors caused by file descriptor exhaustion from too many files in wor... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 626 次。
如何安装 Openclaw Gateway Fd Fix?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-gateway-fd-fix」即可一键安装,无需额外配置。
Openclaw Gateway Fd Fix 是免费的吗?
是的,Openclaw Gateway Fd Fix 完全免费(开源免费),可自由下载、安装和使用。
Openclaw Gateway Fd Fix 支持哪些平台?
Openclaw Gateway Fd Fix 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Gateway Fd Fix?
由 Jian Zhang(@thomaszhang2661)开发并维护,当前版本 v1.0.0。
推荐 Skills