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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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):
- Post first tweet → get
tweet_id - Post second tweet with
reply.in_reply_to_tweet_id= first tweet_id - 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 allowedx-rate-limit-remaining: Requests remainingx-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にどうログインしますか?
アプリレベルのアクセスには環境変数のベアラートークンを使い、ユーザーのアカウントでの操作には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
コメント
- …
このリポジトリの他のスキル
browser-automation
18kエージェントが、Playwrightを使ってWebブラウザーを操作するよう教えます。CSSセレクターでボタン、フォーム、リンクを見つけます。
clip-hand-skill
18kエージェントが、動画のクリップを作るのを助けます。動画をダウンロードし、音声を文字起こしし、字幕ファイルを作り、ffmpegでクリップを切り出します。
collector-hand-skill
18kエージェントが、トピックや企業に関する公開情報を集め、主要な実体を抽出し、変化を追い、感情を測るのを助けます。
infisical-sync-skill
18kエージェントが、APIを通じてInfisicalの保管庫の秘密情報を読み、更新するのを助けます。ログインの手順と明確なエラー処理を含みます。
似ているスキル
xurl
394k認証済みのxurlツールを使い、Xに投稿、返信、検索、閲覧し、ダイレクトメッセージを送り、メディアをアップロードするようエージェントを支援します。
connections-optimizer
280kソーシャルネットワークのつながりを改善します。フォローやフォロー解除の候補を提案し、パーソナライズされたメッセージの作成を支援して、ネットワークを広げます。
content-engine
280kさまざまなプラットフォーム向けのコンテンツを作成します。X、LinkedIn、YouTubeなどのネットワークで効果的な投稿、台本、コンテンツカレンダーの作成を支援します。