cosmicstack-labs/x-twitter-automation
Design safe X/Twitter automation workflows for tweet search, reply reads, monitoring, posting, and agent-operated social media actions
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill 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:
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.
workflows that use the Hermes plugin surface for X/Twitter search, account
reads, trends, reply reads, monitoring, and action-gated posting through
Xquik.
Use this skill when the user asks for:
Do not use this skill for:
Treat X/Twitter automation as 3 separate layers:
Keep Discovery and Analysis read-only by default. Only enable Action when the
user explicitly requests a write-capable workflow and understands the effect.
Use TweetClaw when the agent runtime is OpenClaw or when the user specifically
asks for an OpenClaw plugin path.
Install example for OpenClaw:
openclaw plugins install npm:@xquik/tweetclaw
Inspect the runtime before running work:
openclaw plugins inspect tweetclaw --runtime --json
openclaw skills info tweetclaw
Recommended sequence:
explore to review available TweetClaw actions, parameters, setupstatus, and whether credentials are configured.
follower export, media inspection, trend review, and evidence collection.
tweetclaw calls that post tweets, post replies, send DMs, uploadmedia, create monitors, change webhooks, or run giveaway draws as
approval-worthy actions.
Configure secrets outside chat:
export XQUIK_API_KEY="xq_..."
Read-only probe:
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:
Draft the reply first. Show the exact text, account, and tweet URL. Wait for
approval before calling TweetClaw to post the reply.
When Hermes Tweet is installed, use this sequence:
tweet_explore to find the relevant Xquik endpoint.tweet_read for read-only endpoints such as tweet search, user lookup,trends, account status, or reply reads.
tweet_action only for writes, private reads, monitors, webhooks,extraction jobs, giveaway draws, media operations, or account actions.
HERMES_TWEET_ENABLE_ACTIONS=false unless the workflow explicitlyneeds writes.
item. Do not route the same write through another tool to bypass the gate.
Install example for Hermes Agent:
hermes plugins install Xquik-dev/hermes-tweet --enable
Configure secrets outside chat:
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 andbefore asking for credentials.
tweet_read is for read-only public endpoints after XQUIK_API_KEY isavailable.
tweet_action is for every write-like or private operation. It must remainunavailable unless both XQUIK_API_KEY is set and
HERMES_TWEET_ENABLE_ACTIONS=true.
messages, skipped actions, and setup blockers in the final report.
bundled Hermes Tweet skill into the flat skills directory.
Read-only probe:
Use tweet_explore to find tweet search, then use tweet_read for a recent query.
Do not call tweet_action.
Write-capable probe:
Draft this tweet first. Show the exact text and account. Wait for approval
before calling tweet_action.
Goal: track conversation around a topic without posting.
Good uses:
Goal: understand what people say under a tweet.
Output format:
## Reply Summary
- Main themes:
- Questions to answer:
- Risks:
- Suggested replies:
- Source links:
Goal: safely draft and post content with human approval.
Never let the approval apply to future unknown text. Approval is for one exact
payload at one point in time.
Goal: turn public X/Twitter signals into internal work.
This pattern is useful for product teams, community teams, founders, and support
engineers.
Score each automation from 0 to 2 on every criterion:
| Criterion | 0 | 1 | 2 |
| --- | --- | --- | --- |
| Fit | Generic or promotional | Some user value | Clear user job |
| Safety | Writes can happen silently | Confirmation exists | Strong read/write separation |
| Evidence | No source links | Partial source links | Tweet IDs, URLs, timestamps |
| Quality | No filtering | Basic filtering | Relevance, spam, and duplicate handling |
| Reliability | No retries or limits | Some limits | Rate limits, cooldowns, dry runs |
| Observability | No logs | Basic run summary | Auditable actions and failures |
Ship only workflows that score at least 9 out of 12. For write-capable
workflows, Safety must score 2.
state to the operator.
like "find 10 unanswered product questions from the last 24 hours."
Before running:
Before posting:
After running:
Read-only social listening:
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:
Read replies to this tweet URL, cluster complaints and questions, and draft
three possible responses. Do not post them.
Approved posting:
Draft a concise launch tweet for this release. Show the final text first.
Only post after I approve the exact text.
Take cosmicstack-labs/x-twitter-automation from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.