跳到正文
Skillpedia
社交媒体18k · #10661

twitter-hand-skill

它能做什么

这个技能提供管理 X 账号的 API 步骤和内容指导,包括发帖、回复、串文以及删除推文。适合希望由 AI 助手处理日常发帖的社交媒体管理者。

适用场景

  • ✓当你希望智能体在你的 X 账号上发布推文时。
  • ✓当你需要回复帖子或发布多条推文组成的串文时。
  • ✓当你希望为 X 制定内容计划和互动习惯时。

技能链接

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/twitter/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/twitter/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请撰写一条关于我们产品发布的简短串文并发布出去,然后回复第一条评论,表示感谢。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能说明用于发帖和回复的 Twitter API v2 调用,并提供关于内容策略、互动和安全的指导。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Twitter/X Management Expert Knowledge

Twitter API v2 Reference

Authentication

Twitter API v2 uses OAuth 2.0 Bearer Token for app-level access and OAuth 1.0a for user-level actions.

Bearer Token (read-only access + tweet creation):

Authorization: Bearer $TWITTER_BEARER_TOKEN

Environment variable: TWITTER_BEARER_TOKEN

Core Endpoints

Get authenticated user info:

curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  "https://api.twitter.com/2/users/me"

Response: {"data": {"id": "123", "name": "User", "username": "user"}}

Post a tweet:

curl -s -X POST "https://api.twitter.com/2/tweets" \
  -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "Hello world!"}'

Response: {"data": {"id": "tweet_id", "text": "Hello world!"}}

Post a reply:

curl -s -X POST "https://api.twitter.com/2/tweets" \
  -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "Great point!", "reply": {"in_reply_to_tweet_id": "PARENT_TWEET_ID"}}'

Post a thread (chain of replies to yourself):

  1. Post first tweet → get tweet_id
  2. Post second tweet with reply.in_reply_to_tweet_id = first tweet_id
  3. Repeat for each tweet in thread

Delete a tweet:

curl -s -X DELETE "https://api.twitter.com/2/tweets/TWEET_ID" \
  -H "Authorization: Bearer $TWITTER_BEARER_TOKEN"

Like a tweet:

curl -s -X POST "https://api.twitter.com/2/users/USER_ID/likes" \
  -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tweet_id": "TARGET_TWEET_ID"}'

Get mentions:

curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  "https://api.twitter.com/2/users/USER_ID/mentions?max_results=10&tweet.fields=public_metrics,created_at,author_id"

Search recent tweets:

curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  "https://api.twitter.com/2/tweets/search/recent?query=QUERY&max_results=10&tweet.fields=public_metrics"

Get tweet metrics:

curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \
  "https://api.twitter.com/2/tweets?ids=ID1,ID2,ID3&tweet.fields=public_metrics"

Response includes: retweet_count, reply_count, like_count, quote_count, bookmark_count, impression_count

Rate Limits

Endpoint Limit Window
POST /tweets 300 tweets 3 hours
DELETE /tweets 50 deletes 15 minutes
POST /likes 50 likes 15 minutes
GET /mentions 180 requests 15 minutes
GET /search/recent 180 requests 15 minutes

Always check response headers:

  • x-rate-limit-limit: Total requests allowed
  • x-rate-limit-remaining: Requests remaining
  • x-rate-limit-reset: Unix timestamp when limit resets

Content Strategy Framework

Content Pillars

Define 3-5 core topics ("pillars") that all content revolves around:

Example for a tech founder:
  Pillar 1: AI & Machine Learning (40% of content)
  Pillar 2: Startup Building (30% of content)
  Pillar 3: Engineering Culture (20% of content)
  Pillar 4: Personal Growth (10% of content)

Content Mix (7 types)

Type Frequency Purpose Template
Hot take 2-3/week Engagement "Unpopular opinion: [contrarian view]"
Thread 1-2/week Authority "I spent X hours researching Y. Here's what I found:"
Tip/How-to 2-3/week Value "How to [solve problem] in [N] steps:"
Question 1-2/week Engagement "[Interesting question]? I'll go first:"
Curated share 1-2/week Curation "This [article/tool/repo] is a game changer for [audience]:"
Story 1/week Connection "3 years ago I [relatable experience]. Here's what happened:"
Data/Stat 1/week Authority "[Surprising statistic]. Here's why it matters:"

Optimal Posting Times (UTC-based, adjust to audience timezone)

Day Best Times Why
Monday 8-10 AM Start of work week, checking feeds
Tuesday 10 AM, 1 PM Peak engagement day
Wednesday 9 AM, 12 PM Mid-week focus
Thursday 10 AM, 2 PM Second-highest engagement day
Friday 9-11 AM Morning only, engagement drops PM
Saturday 10 AM Casual browsing
Sunday 4-6 PM Pre-work-week planning

Tweet Writing Best Practices

The Hook (first line is everythin

常见问题

智能体如何登录 X?

该技能使用环境变量中的 bearer token 进行应用级访问,并在操作用户账号时使用 OAuth。

如何发布串文?

先发布第一条推文,然后回复它发布下一条,让每条回复都接在前一条之后。

它会跟踪结果吗?

会。该技能把效果跟踪作为管理账号工作的一部分。

详情

作者的原始描述

Expert knowledge for AI Twitter/X management — API v2 reference, content strategy, engagement playbook, safety, and performance tracking

repo: RightNow-AI/openfang

热度

GitHub 星标
18k
排名
#10661
许可证
Apache-2.0
更新时间
2026/7/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能