Post tweets to Twitter/X via the official API v2 (OAuth 1.0a). Use when the user asks to tweet, post to Twitter/X, send a thread, reply to a tweet, or quote...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install twitter-post或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install twitter-post⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/twitter-post/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: twitter-post description: Post tweets to Twitter/X via the official API v2 (OAuth 1.0a). Use when the user asks to tweet, post to Twitter/X, send a thread, reply to a tweet, or quote tweet. Supports single tweets, threads, replies, and quote tweets with automatic character weight validation. ---
Post tweets via the official Twitter/X API v2 using OAuth 1.0a authentication.
Four environment variables must be set. Obtain them from developer.x.com:
TWITTER_CONSUMER_KEY=<API Key>
TWITTER_CONSUMER_SECRET=<API Key Secret>
TWITTER_ACCESS_TOKEN=<Access Token>
TWITTER_ACCESS_TOKEN_SECRET=<Access Token Secret>
Optional:
HTTPS_PROXY — HTTP proxy URL (e.g. http://127.0.0.1:7897) for regions that need itTWITTER_DRY_RUN=1 — validate and print without postingStore credentials as env vars. Recommended: add to the OpenClaw instance config or export in shell profile. Never hardcode keys in SKILL.md or scripts.
If the user hasn't set up OAuth yet, guide them:
- Call POST /oauth/request_token with oauth_callback=oob - User opens https://api.twitter.com/oauth/authorize?oauth_token= - User provides the PIN code - Call POST /oauth/access_token with the PIN as oauth_verifier
All commands via exec. Script path: scripts/tweet.js (relative to this skill directory).
node scripts/tweet.js "Your tweet content here"
node scripts/tweet.js --reply-to 1234567890 "Reply text"
node scripts/tweet.js --quote 1234567890 "Your commentary"
node scripts/tweet.js --thread "First tweet" "Second tweet" "Third tweet"
JSON to stdout:
{"ok":true,"id":"123456789","url":"https://x.com/i/status/123456789","remaining":"99","limit":"100"}
On error: {"ok":false,"error":"..."}
remaining field in output to monitor quotatweet.jsexec with env vars set, parse JSON output to confirm success--thread with --reply-to to attach a thread under an existing tweet安装 Twitter Post 后,可以对 AI 说这些话来触发它
Help me get started with Twitter Post
Explains what Twitter Post does, walks through the setup, and runs a quick demo based on your current project
Use Twitter Post to post tweets to Twitter/X via the official API v2 (OAuth 1
Invokes Twitter Post with the right parameters and returns the result directly in the conversation
What can I do with Twitter Post in my marketing & growth workflow?
Lists the top use cases for Twitter Post, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/twitter-post/ 目录(个人级,所有项目可用),或 .claude/skills/twitter-post/(项目级)。重启 AI 客户端后,用 /twitter-post 主动调用,或让 AI 根据上下文自动发现并使用。
Twitter Post 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Twitter Post 可免费安装使用。请查阅仓库了解许可证信息。
Post tweets to Twitter/X via the official API v2 (OAuth 1.0a). Use when the user asks to tweet, post to Twitter/X, send a thread, reply to a tweet, or quote...
Twitter Post 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Twitter Post
Identifies repetitive steps in your workflow and sets up Twitter Post to handle them automatically