← 返回 Skills 市场
nissan

Twitter Thread Scheduler

作者 Nissan Dookeran · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
23
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install twitter-thread-scheduler
功能描述
Post native X/Twitter threads by chaining reply-to calls via Twitter API v2. Buffer cannot post threads — use this for any multi-tweet X content from the con...
使用说明 (SKILL.md)

Twitter Thread Scheduler

Why This Exists

Buffer's GraphQL API has no thread field — it only supports single posts. To post a proper X thread (tweet 1 → reply → reply → ...), you need direct Twitter API v2 access.

This script uses the redditech OAuth2 credentials from ~/.xurl to:

  1. Post tweet [1/N] — get back the tweet ID
  2. Post tweet [2/N] as reply: { in_reply_to_tweet_id: \x3Cid> } — get tweet 2's ID
  3. Continue through the queue until all N tweets are posted
  4. Log all tweet IDs + URLs to memory/thread-log.jsonl

This is the ONLY way to schedule real X threads. Always use this script over Buffer for multi-tweet content.


Script

scripts/tweet_thread_scheduler.py

Auth: ~/.xurlapps.redditech.users.redditech.access_token (auto-refreshes on 401)


Commands

Preview (parse + char check, no posting)

python3 scripts/tweet_thread_scheduler.py preview \
  --file projects/social-growth/thread-\x3Cslug>.md

Run this first. Confirms tweet count and flags any over 280 chars.

Post immediately

python3 scripts/tweet_thread_scheduler.py post \
  --file projects/social-growth/thread-\x3Cslug>.md \
  --slug \x3Cslug>
# Prompts for confirmation before posting

Dry run

python3 scripts/tweet_thread_scheduler.py post \
  --file projects/social-growth/thread-\x3Cslug>.md \
  --slug \x3Cslug> \
  --dry-run

Schedule for later (ISO8601 datetime)

python3 scripts/tweet_thread_scheduler.py schedule \
  --file projects/social-growth/thread-\x3Cslug>.md \
  --slug \x3Cslug> \
  --at "2026-04-05T08:00:00+11:00"
# Writes queue file + creates `at` job

Fire a queued thread (called automatically by at)

python3 scripts/tweet_thread_scheduler.py fire \
  --queue memory/thread-queue/\x3Cslug>.json

Thread File Format

The script parses the blog-to-social output format automatically:

## Thread (9 tweets)

[1/9] First tweet text here.

[2/9] Second tweet text here.

...

[9/9] Final tweet with blog URL. #Hashtag1 #Hashtag2

Also supports ## Tweet N headers and --- dividers.

Always run preview before scheduling to confirm parsing is correct.


Rate Limits

  • 3 second delay between tweets in a thread
  • Auto-retry with exponential backoff on HTTP 429
  • Twitter free tier: 300 write operations per 15 minutes
  • A 9-tweet thread uses 9 write ops — well within limits

Queue & Logs

Path Purpose
memory/thread-queue/\x3Cslug>.json Queued thread data (tweets + schedule time)
memory/thread-log.jsonl Posted threads — all tweet IDs + URLs

Integration with Content Pipeline

In the blog-to-social and blog-publish playbooks:

  • Sara produces projects/social-growth/thread-\x3Cslug>.md
  • Run preview to verify parsing
  • Replace [BLOG_URL] placeholder before scheduling
  • Use schedule --at \x3CpublishAt + 15min> to align with blog embargo timing
  • LinkedIn single posts → still use scripts/buffer-post.mjs

Rule: Buffer for LinkedIn. This script for X threads.


Lessons Learned

2026-04-03 — First use (portkey-patterns + ollama-embeddings):

  • Buffer createPost with thread field returns GRAPHQL_VALIDATION_FAILED — field doesn't exist
  • Workaround: built this script using Twitter API v2 reply field
  • at scheduling works cleanly — jobs survive across sessions
  • 3s inter-tweet delay is sufficient for free tier rate limits
  • Both threads (9 tweets + 8 tweets) parse cleanly from [1/N] format

Buffer delete API (corrected 2026-04-03):

  • Input field: id (NOT postId)
  • Response union: DeletePostSuccess { id } | VoidMutationError { message } (NOT PostActionSuccess)
  • This is different from createPost which uses PostActionSuccess
能力标签
posts-externally
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install twitter-thread-scheduler
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /twitter-thread-scheduler 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish from workspace skill sync.
元数据
Slug twitter-thread-scheduler
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Twitter Thread Scheduler 是什么?

Post native X/Twitter threads by chaining reply-to calls via Twitter API v2. Buffer cannot post threads — use this for any multi-tweet X content from the con... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 23 次。

如何安装 Twitter Thread Scheduler?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install twitter-thread-scheduler」即可一键安装,无需额外配置。

Twitter Thread Scheduler 是免费的吗?

是的,Twitter Thread Scheduler 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Twitter Thread Scheduler 支持哪些平台?

Twitter Thread Scheduler 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Twitter Thread Scheduler?

由 Nissan Dookeran(@nissan)开发并维护,当前版本 v1.0.0。

💬 留言讨论