安全扫描
OpenClaw
可疑
high confidence该技能的文档声称支持符号模式和递归/引用行为,但所包含的代码仅接受八进制模式和单个路径——功能声明与实现不符。
评估建议
The 技能.md and examples promise features (symbolic modes like '+x', recursive -R, reference-file) that the included Python script does not implement — it only accepts an octal mode and a single path. This looks like sloppy or incorrect packaging rather than overtly malicious code, but you should not rely on the documented behavior. If you need symbolic/recursive behavior, use the 系统 chmod or fix/replace the script. Before 安装ing or allowing the 代理 to 运行 this 技能: (1) review or test scripts/chmod.py...详细分析 ▾
⚠ 用途与能力
名称/描述称支持“符号或数字模式”、递归与参考文件;打包脚本仅接受两个位置参数(模式与文件),并将模式解析为八进制整数——未实现符号模式(如“+x”)、“-R”及参考文件功能。
⚠ 指令范围
技能.md shows examples using symbolic modes and recursive usage that will not work with scripts/chmod.py. Following the documented examples will produce errors or unexpected behavior; the instructions therefore mislead the 代理 about what commands to 运行 and what effects to expect.
✓ 安装机制
No 安装 spec; this is instruction+small script only, so nothing is being 下载ed or written to disk at 安装 time beyond the included files.
✓ 凭证需求
No 环境 variables, 凭证s, or config paths are 请求ed — 应用ropriate for a simple chmod 实用工具.
✓ 持久化与权限
always is false and the 技能 does not 请求 elevated persistence. Note that the 技能 can be invoked autonomously by default (disable-模型-invocation is false), which is normal for 技能s.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install chmod-tool
镜像加速npx clawhub@latest install chmod-tool --registry https://cn.longxiaskill.com镜像同步中
技能文档
Chmod Tool - 文件权限 用符号或八进制模式修改文件读/写/执行权限。
快速开始 chmod-tool +x script.sh
功能 符号模式(u+x, g-w) 八进制模式(755, 644) 递归(-R) 参考文件
示例 chmod-tool +x script.sh chmod-tool 755 myfile chmod-tool -R 644 docs/
另见 相关文档:man chmod(如有)