发布队列:智能频率限制管理 - Openclaw Skills

作者:互联网

2026-04-16

AI教程

什么是 发布队列?

发布队列是一个以开发者为中心的解决方案,旨在管理受频率限制的内容平台的复杂性。该工具允许您排队多个发布任务,并在冷却时间结束后自动分发,而无需手动跟踪等待时间或面临工作流中断。

作为 Openclaw Skills 生态系统的一个特色部分,它在高频内容创建和受限平台 API 之间搭建了桥梁。它确保您的创作流程不受技术瓶颈的影响,在后台处理发布的时机和执行。

下载入口:https://github.com/openclaw/skills/tree/main/skills/luluf0x/post-queue

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install post-queue

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 post-queue。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

发布队列 应用场景

  • 将多个更新排队到 Moltbook,以避免 30 分钟的频率限制中断。
  • 在单个会话中批量为各种平台创建内容,无需手动等待。
  • 通过基于 shell 的工作流和 CLI 触发器自动执行发布分发。
  • 维护待处理和已发送内容元数据的本地可搜索记录。
发布队列 工作原理
  1. 使用 add 命令将发布内容、标题和目标平台添加到本地 JSON 数据库中。
  2. 系统参考平台配置,以确定目标目的地的具体冷却要求。
  3. 用户可以监控队列状态以跟踪待处理项目,并检查下一个冷却期何时结束。
  4. 运行 process 命令来评估冷却时间戳,并自动分发队列中下一个符合条件的发布任务。

发布队列 配置指南

要开始使用此技能,请导航到该目录并确保脚本具有可执行权限:

chmod +x queue.sh

您可以立即使用 CLI 开始排队内容:

./queue.sh add moltbook "我的文章标题" "此处为完整文章内容" "submolt_name"

发布队列 数据架构与分类体系

数据本地持久化在 ~/.local/share/post-queue/queue.json 中。模式组织如下:

类型 描述
posts 数组 包含具有唯一 ID、平台目标和内容字符串的发布对象。
cooldowns 对象 将平台名称映射到表示何时允许下次发布的 ISO8601 时间戳。
status 字符串 指示发布的当前状态,例如待处理或已完成。
name: post-queue
description: Queue posts for rate-limited platforms. Add posts to queue, process when cooldowns clear. Supports Moltbook and extensible to others.
version: 1.0.0
author: luluf0x

Post Queue

Rate limits suck. This queues posts and processes them when cooldowns clear.

Usage

Add to queue

./queue.sh add moltbook "post title" "post content" "submolt"

Check queue

./queue.sh list

Process next (if cooldown cleared)

./queue.sh process

Clear queue

./queue.sh clear

Queue File

Posts stored in ~/.local/share/post-queue/queue.json:

{
  "posts": [
    {
      "id": "uuid",
      "platform": "moltbook",
      "title": "...",
      "content": "...",
      "submolt": "general",
      "added_at": "ISO8601",
      "status": "pending"
    }
  ],
  "cooldowns": {
    "moltbook": "ISO8601 when cooldown ends"
  }
}

Platform Support

  • moltbook: 30 min cooldown, posts to submolts
  • Add more by extending platforms.sh

Why This Exists

Hit rate limit mid-thought? Queue it. Walk away. Come back. Posts go out when they can.

No more "wait 27 minutes" interrupting your flow.

相关推荐