X Twitter Automationのロゴ

X Twitter Automation

組織
cosmicstack-labs
x-twitter-automation

ツイート検索、返信の閲覧、監視、投稿、AIエージェントによるソーシャルメディア操作のための、安全なX/Twitter自動化ワークフローを設計します。

Add to TypingMind

概要

公開者cosmicstack-labs
リポジトリmercury-agent-skills
スキル名x-twitter-automation
スター
485
フォーク
63
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    cosmicstack-labsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「X Twitter Automation」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/cosmicstack-labs/mercury-agent-skills/tree/main/categories/automation/x-twitter-automation
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p .claude/skills
cp -r /tmp/mercury-agent-skills/categories/automation/x-twitter-automation .claude/skills/x-twitter-automation
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでX Twitter Automationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にX Twitter Automationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、X Twitter Automationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

X/Twitter Automation

Use this skill when an agent needs to search tweets, read tweet replies, monitor X/Twitter topics, draft social posts, or run controlled X actions through a tool-backed workflow.

Recommended implementations:

  • TweetClaw for OpenClaw agents that need an installable @xquik/tweetclaw plugin for tweet search, reply reads, follower export, media workflows, monitors, webhooks, DMs, giveaway draws, and approval-gated posting through Xquik.
  • Hermes Tweet for Hermes Agent workflows that use the Hermes plugin surface for X/Twitter search, account reads, trends, reply reads, monitoring, and action-gated posting through Xquik.

When to Use

Use this skill when the user asks for:

  • Search tweets about a company, launch, product, market, or community.
  • Search Twitter or search X for recent conversations.
  • Read tweet replies and summarize sentiment.
  • Monitor tweets around a keyword, username, hashtag, product, or event.
  • Look up users, accounts, trends, or public social activity.
  • Draft tweets, post tweets, post replies, or send DMs after explicit approval.
  • Turn social signals into alerts, reports, CRM notes, or content ideas.
  • Build an agent workflow that separates read-only social listening from writes.

Do not use this skill for:

  • Bypassing platform rules, rate limits, consent, or account safety controls.
  • Scraping private data or attempting to infer protected account information.
  • Posting or messaging without clear human authorization.
  • Coordinated spam, engagement farming, impersonation, or harassment.

Core Model

Treat X/Twitter automation as 3 separate layers:

  1. Discovery: search tweets, find conversations, look up users, inspect trends.
  2. Analysis: classify, summarize, deduplicate, score, and extract next actions.
  3. Action: post tweets, post replies, send DMs, follow, like, or update monitors.

Keep Discovery and Analysis read-only by default. Only enable Action when the user explicitly requests a write-capable workflow and understands the effect.

Safety Defaults

  • Read first, write later.
  • Ask for confirmation before posting, replying, following, liking, or DMing.
  • Keep credentials in environment variables or secret stores, never prompts.
  • Log intent, endpoint, and payload summary before write-capable calls.
  • Prefer dry runs for scheduled jobs until the workflow is stable.
  • Add rate limits and cooldowns to every recurring social workflow.
  • Store source tweet IDs and timestamps so reports are auditable.
  • Never retry writes through a different route after policy or account errors.

TweetClaw OpenClaw Workflow

Use TweetClaw when the agent runtime is OpenClaw or when the user specifically asks for an OpenClaw plugin path.

Install example for OpenClaw:

bash
openclaw plugins install npm:@xquik/tweetclaw

Inspect the runtime before running work:

bash
openclaw plugins inspect tweetclaw --runtime --json
openclaw skills info tweetclaw

Recommended sequence:

  1. Use explore to review available TweetClaw actions, parameters, setup status, and whether credentials are configured.
  2. Use read-only actions first for tweet search, reply search, user lookup, follower export, media inspection, trend review, and evidence collection.
  3. Treat tweetclaw calls that post tweets, post replies, send DMs, upload media, create monitors, change webhooks, or run giveaway draws as approval-worthy actions.
  4. Show the exact account, payload, and effect before any write-like call.
  5. Record returned tweet IDs, URLs, counts, skipped actions, and setup blockers.

Configure secrets outside chat:

bash
export XQUIK_API_KEY="xq_..."

Read-only probe:

text
Use TweetClaw explore, then search tweets about this launch and summarize
source links. Do not post, send DMs, upload media, or change monitors.

Write-capable probe:

text
Draft the reply first. Show the exact text, account, and tweet URL. Wait for
approval before calling TweetClaw to post the reply.

Hermes Tweet Workflow

When Hermes Tweet is installed, use this sequence:

  1. Use tweet_explore to find the relevant Xquik endpoint.
  2. Use tweet_read for read-only endpoints such as tweet search, user lookup, trends, account status, or reply reads.
  3. Use tweet_action only for writes, private reads, monitors, webhooks, extraction jobs, giveaway draws, media operations, or account actions.
  4. Keep HERMES_TWEET_ENABLE_ACTIONS=false unless the workflow explicitly needs writes.
  5. If a Hermes Tweet tool is unavailable, stop and report the missing setup item. Do not route the same write through another tool to bypass the gate.

Install example for Hermes Agent:

bash
hermes plugins install Xquik-dev/hermes-tweet --enable

Configure secrets outside chat:

bash
export XQUIK_API_KEY="xq_..."
export HERMES_TWEET_ENABLE_ACTIONS="false"

Hermes tool selection rules:

  • tweet_explore is the discovery step. Use it before choosing an endpoint and before asking for credentials.
  • tweet_read is for read-only public endpoints after XQUIK_API_KEY is available.
  • tweet_action is for every write-like or private operation. It must remain unavailable unless both XQUIK_API_KEY is set and HERMES_TWEET_ENABLE_ACTIONS=true.
  • Treat returned JSON as the audit record: preserve tweet IDs, URLs, status messages, skipped actions, and setup blockers in the final report.
  • Keep plugin skills loaded through Hermes' plugin system. Do not copy the bundled Hermes Tweet skill into the flat skills directory.

Read-only probe:

text
Use tweet_explore to find tweet search, then use tweet_read for a recent query.
Do not call tweet_action.

Write-capable probe:

text
Draft this tweet first. Show the exact text and account. Wait for approval
before calling tweet_action.

Workflow Patterns

Topic Monitoring

Goal: track conversation around a topic without posting.

  1. Define keywords, usernames, hashtags, and exclusions.
  2. Search tweets on a schedule.
  3. Deduplicate by tweet ID.
  4. Score each result for relevance, risk, and urgency.
  5. Summarize top posts and reply threads.
  6. Write a report with links and timestamps.
  7. Alert only when threshold conditions are met.

Good uses:

  • Product launch monitoring.
  • Customer pain discovery.
  • Brand safety review.
  • Competitor or market research.
  • Community management briefings.

Reply Intelligence

Goal: understand what people say under a tweet.

  1. Read the source tweet.
  2. Fetch replies and quote context when available.
  3. Cluster replies by theme.
  4. Separate complaints, questions, praise, and spam.
  5. Draft suggested responses, but do not post automatically.
  6. Present the highest-value replies first.

Output format:

markdown
## Reply Summary
- Main themes:
- Questions to answer:
- Risks:
- Suggested replies:
- Source links:

Action-Gated Posting

Goal: safely draft and post content with human approval.

  1. Collect objective, audience, account, tone, and constraints.
  2. Draft 2-3 options.
  3. Check length, links, mentions, and sensitive claims.
  4. Ask for explicit approval of one exact final text.
  5. Post with the approved payload only.
  6. Record the resulting tweet URL or ID.

Never let the approval apply to future unknown text. Approval is for one exact payload at one point in time.

Social Signal to Work Item

Goal: turn public X/Twitter signals into internal work.

  1. Search for product, company, or error keywords.
  2. Extract concrete user pain, feature requests, or incidents.
  3. Group duplicates.
  4. Create a short issue or task with source links.
  5. Include evidence, not just sentiment.

This pattern is useful for product teams, community teams, founders, and support engineers.

Evaluation Rubric

Score each automation from 0 to 2 on every criterion:

Criterion012
FitGeneric or promotionalSome user valueClear user job
SafetyWrites can happen silentlyConfirmation existsStrong read/write separation
EvidenceNo source linksPartial source linksTweet IDs, URLs, timestamps
QualityNo filteringBasic filteringRelevance, spam, and duplicate handling
ReliabilityNo retries or limitsSome limitsRate limits, cooldowns, dry runs
ObservabilityNo logsBasic run summaryAuditable actions and failures

Ship only workflows that score at least 9 out of 12. For write-capable workflows, Safety must score 2.

Common Mistakes

  • Treating tweet search as the same thing as posting permissions.
  • Letting a scheduled job post without a human approval step.
  • Summarizing social sentiment without source links.
  • Ignoring duplicate tweets, quote tweets, and bot-like replies.
  • Mixing public reads, private reads, and writes in one generic tool call.
  • Putting API keys in prompts, logs, examples, markdown, or issue bodies.
  • Retrying failed writes repeatedly instead of surfacing the account or policy state to the operator.
  • Overusing vague goals such as "increase engagement" instead of concrete jobs like "find 10 unanswered product questions from the last 24 hours."

Checklist

Before running:

  • The user job is specific.
  • The account, topic, and time window are known.
  • Credentials are loaded from a secret store or environment variable.
  • Read-only and write-capable steps are separated.
  • Scheduled jobs have rate limits and dry-run behavior.

Before posting:

  • The exact text and account are shown to the user.
  • The user approved this exact payload.
  • Links, mentions, claims, and tone were checked.
  • The action endpoint and reason are recorded.

After running:

  • Source tweet IDs, URLs, and timestamps are saved.
  • Failures are summarized without secrets.
  • Reports distinguish facts, interpretation, and suggested actions.
  • Any write result is confirmed with a returned ID or URL.

Example Prompts

Read-only social listening:

text
Search tweets about "Hermes Agent" and "agent skills" from the last day.
Summarize recurring questions, source links, and suggested docs updates.
Do not post or send messages.

Reply analysis:

text
Read replies to this tweet URL, cluster complaints and questions, and draft
three possible responses. Do not post them.

Approved posting:

text
Draft a concise launch tweet for this release. Show the final text first.
Only post after I approve the exact text.

よくある質問

AIスキル「X Twitter Automation」では何ができますか?

ツイート検索、返信の閲覧、監視、投稿、AIエージェントによるソーシャルメディア操作のための、安全なX/Twitter自動化ワークフローを設計します。

TypingMindでX Twitter Automationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。X Twitter Automationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにX Twitter Automationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/cosmicstack-labs/mercury-agent-skills/tree/main/categories/automation/x-twitter-automationを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

X Twitter Automationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

X Twitter Automationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもX Twitter Automationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「X Twitter Automation」は無料ですか?

はい。cosmicstack-labsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇