← 返回 Skills 市场
Skill Publish Tool
作者
shinelp100
· GitHub ↗
· v1.0.4
· MIT-0
120
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install skill-publish-tool
功能描述
自动更新 GitHub 仓库并发布 Skill 到 ClawHub。当用户需要发布 skill 更新时使用此技能。支持自动版本号递增、更新日志管理、Git 提交推送、ClawHub 发布。
安全使用建议
This tool appears to implement the advertised publish workflow, but review and caution are advised before use:
- Review the script before running. It uses shell=True and composes shell commands with user-supplied inputs (slug, changelog, commit message). Malicious or accidental special characters can change commands or inject arbitrary shell commands. If you don't trust inputs, do not run it.
- Test in a throwaway repository first. Run with --skip-git and --skip-clawhub to verify file updates, then run with --skip-clawhub to validate Git behavior before publishing.
- Sanitize inputs you pass (avoid quotes, backticks, semicolons, &&, |, etc.) or modify the script to use subprocess.run([...], shell=False) and properly escape/quote arguments.
- Be cautious with the USAGE suggestions about force-push; force-pushing can irreversibly overwrite remote history.
- Consider installing/pinning clawhub instead of using npx @latest (npx downloads code at runtime). If you must use npx, prefer pinning a known-safe version rather than @latest.
- Ensure Git credentials and npm/ClawHub authentication are configured in a secure way (SSH keys or credential helpers), and avoid running the publish as root or in environments with broad access.
If you want a higher-confidence assessment, provide any CI usage examples, the expected format of ClawHub authentication (token vs interactive login), or allow me to suggest a minimal patch to remove shell=True and safely pass arguments to external commands.
功能分析
Type: OpenClaw Skill
Name: skill-publish-tool
Version: 1.0.4
The skill provides legitimate automation for publishing OpenClaw skills to GitHub and ClawHub, but it contains a critical shell injection vulnerability. The script `scripts/publish_skill.py` uses `subprocess.run(shell=True)` with unsanitized f-strings to execute commands, specifically incorporating the `--changelog` and `--slug` arguments directly into shell strings. While there is no evidence of intentional malice or data exfiltration, this implementation flaw allows for arbitrary command execution if malicious input is provided to the tool's parameters.
能力评估
Purpose & Capability
Name/description match the code: the script updates package.json/_meta.json and README, commits/pushes via Git, and runs npx clawhub publish. However the registry metadata omitted required runtime dependencies (SKILL.md and the script require Git and Node/npm/npx), so the declared requirements are incomplete.
Instruction Scope
The runtime instructions and included script perform the advertised actions, but the script builds shell command strings from user inputs (slug, changelog, commit message, paths) and executes them via subprocess.run(..., shell=True). This introduces command injection and quoting issues (e.g., unescaped double quotes or shell metacharacters in --changelog or --slug). The USAGE/FAQ also suggests potentially dangerous operations like force-push, which can overwrite remote history if followed blindly.
Install Mechanism
There is no install spec in the registry, but the script invokes 'npx clawhub@latest', which will dynamically download/run code from the npm registry. Dynamic npx usage is convenient but means code is fetched at runtime from an external package registry (not bundled), which is a moderate-risk behavior and should be noted to users.
Credentials
The skill declares no required environment variables or credentials, which aligns with most of its behavior. It does, however, rely on local Git credentials (credential helper or SSH keys) and possibly npm auth if ClawHub publishing requires authentication; these implicit requirements are not declared in metadata and should be documented.
Persistence & Privilege
The skill does not request permanent always:true inclusion, does not modify other skills, and only acts when invoked. It writes to files within the provided skill directory and may init a Git repo there — this is expected for a publisher.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skill-publish-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/skill-publish-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
使用可靠的文件编辑方法,彻底解决 edit 失败问题
v1.0.3
支持集合仓库(monorepo)发布模式,新增--collection-root 参数
v1.0.2
更新常见问题,添加 Git 远程仓库配置说明
v1.0.1
添加 USAGE.md 使用指南
v1.0.0
初始版本:支持自动版本号递增、Git 提交推送、ClawHub 发布、更新日志管理
元数据
常见问题
Skill Publish Tool 是什么?
自动更新 GitHub 仓库并发布 Skill 到 ClawHub。当用户需要发布 skill 更新时使用此技能。支持自动版本号递增、更新日志管理、Git 提交推送、ClawHub 发布。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 120 次。
如何安装 Skill Publish Tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill-publish-tool」即可一键安装,无需额外配置。
Skill Publish Tool 是免费的吗?
是的,Skill Publish Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Skill Publish Tool 支持哪些平台?
Skill Publish Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Skill Publish Tool?
由 shinelp100(@shinelp100)开发并维护,当前版本 v1.0.4。
推荐 Skills