返回顶部
c

clawhub-rate-limited-publisherClawHub限速发布

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
210
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

clawhub-rate-limited-publisher

技能名称: clawhub-rate-limited-publisher

详细描述:

ClawHub 速率限制发布器

当用户希望将一个或多个本地技能发布到 ClawHub 且不超过平台发布上限时,使用此技能。

此技能的功能

此技能不会神奇地授予 shell 权限。它围绕用户自己的 clawhub CLI 提供了一个安全的本地队列 + 调度器工作流。

请遵循以下步骤:

  1. 1. 验证技能文件夹存在且包含 SKILL.md。
  2. 构建或更新队列 JSON 文件。
  3. 请求主机运行来自 {baseDir}/scripts/clawhubratelimited_uploader.py 的辅助脚本。
  4. 优先使用主机调度器(如 cron 或 systemd 定时器),以便每 12 分钟自动执行上传。
  5. 在任何滚动 3600 秒窗口内,发布尝试次数不得超过 5 次
  6. 记录每次尝试的 stdout/stderr,并将队列项标记为 published 或 failed。

必需的运行时条件

  • - clawhub 必须已在主机上安装并完成身份验证。
  • 主机必须允许命令执行。在 OpenClaw 中,这通常意味着启用 bash/exec 等运行时工具,或直接在聊天外部运行 Python 脚本。
  • 在更改技能/配置状态后,可能需要新会话,因为符合条件的技能是按会话快照的。

推荐的调用模式

一次性手动运行

运行:

python3 {baseDir}/scripts/clawhubratelimited_uploader.py --queue /absolute/path/to/queue.json --execute

试运行

运行:

python3 {baseDir}/scripts/clawhubratelimited_uploader.py --queue /absolute/path/to/queue.json --dry-run

Cron 调度

使用 {baseDir}/resources/cron.example 中的示例,每 12 分钟运行一次。

队列文件格式

请参见 {baseDir}/examples/queue.sample.json。

每个项可能包含:

  • - path:一个技能目录的绝对路径
  • command:可选命令模板,默认为 clawhub publish {path}

安全规则

  • - 使用绝对路径。
  • 不要使用 curl|bash、base64 管道或隐藏的远程安装程序。
  • 将 command 限制为本地 clawhub publish {path} 模式,除非用户明确审核并接受自定义命令。
  • 将失败次数计入每小时上限,以避免在身份验证或验证失败时频繁请求 ClawHub。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawhub-rate-limited-publisher-fixed-1776100750 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawhub-rate-limited-publisher-fixed-1776100750 技能

通过命令行安装

skillhub install clawhub-rate-limited-publisher-fixed-1776100750

下载

⬇ 下载 clawhub-rate-limited-publisher v1.0.0(免费)

文件大小: 8.66 KB | 发布时间: 2026-4-15 12:08

v1.0.0 最新 2026-4-15 12:08
- Initial release of clawhub-rate-limited-publisher.
- Queue and publish local skills to ClawHub with a strict limit of 5 publishes per hour.
- Integrates with the local clawhub CLI and host scheduler (e.g., cron or systemd).
- Provides a safe queue/runner and logs all publish attempts, marking them as published or failed.
- Enforces safety rules for command execution and counts failed attempts toward the hourly limit.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部