x-twitter
Read timeline + mentions, post tweets, reply, like, retweet, and search on X (formerly Twitter).
Skill by HaraldeRoessler
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/haralderoessler-x-twitter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/x-twitter
What's inside
- Skill name
x-twitter- Description
- Read timeline + mentions, post tweets, reply, like, retweet, and search on X (formerly Twitter). Use when the user asks to tweet, post to X, check mentions, reply to a tweet, read their timeline, search X for topics. Requires X_BEARER_TOKEN env var on the agent — obtained from developer.x.com. Each agent should have its own X account / token; do not share tokens across agents.
- License
- MIT
- Compatibility
- Requires python3 with tweepy installed (bundled in image). Works on Linux.
- Instructions
- 130 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# X (Twitter) Skill
Post + read + reply on X using the v2 REST API via `tweepy`. Authenticates with a Bearer Token from developer.x.com — scoped to the X account that issued it, so each agent gets its own voice.
## Prerequisites
One env var on the agent (configure from portal Settings → Skills → X):
- `X_BEARER_TOKEN` — OAuth2 User Context token with scopes `tweet.read tweet.write users.read follows.read like.write offline.access`. Generated at https://developer.x.com/en/portal/dashboard → your app → "Keys and Tokens" → "OAuth 2.0 Access Token". Free tier (Basic) is sufficient for posting + reading own timeline; higher tiers add search + engagement metrics.
## Post a tweet
```bash
python3 - <<'PY'
import os, tweepy, json
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
r = client.create_tweet(text="Hello from my ownify agent.")
print(json.dumps({"id": r.data["id"], "text": r.data["text"]}, indent=2))
PY
```
If the post fails, tweepy raises `tweepy.errors.*` — surface the error to the user unchanged. Common failures: 401 (token expired — re-issue), 403 (write scope missing), 429 (rate limited — wait + retry).
## Reply to a tweet
```bash
python3 - <<'PY'
import os, tweepy, sys
PARENT_TWEET_ID = sys.argv[1] if len(sys.argv) > 1 else "1234567890"
REPLY_TEXT = sys.argv[2] if len(sys.argv) > 2 else "Thanks for the mention."
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
r = client.create_tweet(text=REPLY_TEXT, in_reply_to_tweet_id=PARENT_TWEET_ID)
print(f"Replied. new tweet id: {r.data['id']}")
PY
```
## Read own recent mentions
```bash
python3 - <<'PY'
import os, tweepy, json
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
me = client.get_me().data
mentions = client.get_users_mentions(
id=me.id,
max_results=20,
tweet_fields=["created_at", "author_id", "conversation_id", "public_metrics"],
expansions=["author_id"],
user_fields=["username", "name"],
)
users = {u["id"]: u for u in (mentions.includes.get("users") or [])}
for t in (mentions.data or []):
u = users.get(t.author_id, {})
print(f"@{u.get('username','?')} ({t.created_at}): {t.text}")
PY
```
## Read own timeline
```bash
python3 - <<'PY'
import os, tweepy
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
me = client.get_me().data
tweets = client.get_users_tweets(
id=me.id,
max_results=20,
tweet_fields=["created_at", "public_metrics"],
exclude=["retweets", "replies"],
)
for t in (tweets.data or []):
m = t.public_metrics
print(f"[{t.created_at}] likes={m.get('like_count')} rt={m.get('retweet_count')} — {t.text[:140]}")
PY
```
## Search recent tweets (paid tier only)
```bash
python3 - <<'PY'
import os, tweepy, sys
QUERY = sys.argv[1] if len(sys.argv) > 1 else "ownify"
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
results = client.search_recent_tweets(
query=QUERY,
max_results=20,
tweet_fields=["created_at", "author_id", "public_metrics"],
)
for t in (results.data or []):
print(f"[{t.created_at}] {t.id}: {t.text[:140]}")
PY
```
Note: `search_recent_tweets` requires at least Basic tier ($100/mo). Free tier returns 403. If the agent gets 403 on search, explain that to the user rather than pretending it's broken.
## Delete own tweet
```bash
python3 - <<'PY'
import os, tweepy, sys
TWEET_ID = sys.argv[1]
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
r = client.delete_tweet(id=TWEET_ID)
print("Deleted." if r.data.get("deleted") else "Delete returned unexpected response.")
PY
```
## Like / unlike
```bash
python3 - <<'PY'
import os, tweepy, sys
TWEET_ID = sys.argv[1]
client = tweepy.Client(bearer_token=os.environ["X_BEARER_TOKEN"])
client.like(tweet_id=TWEET_ID)
# client.unlike(tweet_id=TWEET_ID)
print("OK")
PY
```From HaraldeRoessler/ownify-microclaw, MIT.
More from HaraldeRoessler/ownify-microclaw
- 0.474score
yahoo-finance
HaraldeRoessler
Look up real-time stock quotes, historical prices, company fundamentals, dividends, splits, and options chains from Yahoo Finance.
SkillCFreshness: CClaude Code +9 - 0.474score
ownify-memory-enhanced
HaraldeRoessler
Use whenever you interact with the ownify memory system (MemPalace).
SkillCFreshness: CClaude Code +9 - 0.474score
sendgrid
HaraldeRoessler
Send transactional email through SendGrid.
SkillCFreshness: CClaude Code +9 - 0.474score
skill-creator
HaraldeRoessler
Help the user write a new MicroClaw skill or revise an existing one.
SkillCFreshness: CClaude Code +9 - 0.474score
weather
HaraldeRoessler
Get current weather conditions and short forecasts using `wttr.in` (no API key required).
SkillCFreshness: CClaude Code +9 - 0.474score
xlsx
HaraldeRoessler
Create, read, or edit Excel / CSV / TSV spreadsheets.
SkillCFreshness: CClaude Code +9 - 0.474score
docx
HaraldeRoessler
Create, read, or edit Microsoft Word documents (.docx).
SkillCFreshness: CClaude Code +9 - 0.474score
find-skills
HaraldeRoessler
Find reusable skills from the vercel-labs/skills registry by task keywords, evaluate fit, and suggest how to install or adapt them for MicroClaw.
SkillCFreshness: CClaude Code +9 - 0.474score
imap-mail
HaraldeRoessler
Read, search, triage, and move email in any IMAP mailbox — Gmail, iCloud, Proton Bridge, Fastmail, self-hosted, anything speaking IMAP.
SkillCFreshness: CClaude Code +9 - 0.474score
linkedin
HaraldeRoessler
Post updates and articles, fetch your own profile, and interact with LinkedIn via the v2 REST API.
SkillCFreshness: CClaude Code +9 - 0.474score
notion
HaraldeRoessler
Query databases, create + update pages, search, and append content blocks in a Notion workspace.
SkillCFreshness: CClaude Code +9 - 0.471score
pdf
HaraldeRoessler
Work with PDF files — read text, extract tables, merge, split, rotate pages, add watermarks, create new PDFs, or render pages to images.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 2, 2026 (5 months ago)
- Last release
- Jun 7, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from HaraldeRoessler
- 0.474score
notion
HaraldeRoessler
Query databases, create + update pages, search, and append content blocks in a Notion workspace.
SkillCFreshness: CClaude Code +9 - 0.474score
docx
HaraldeRoessler
Create, read, or edit Microsoft Word documents (.docx).
SkillCFreshness: CClaude Code +9 - 0.474score
find-skills
HaraldeRoessler
Find reusable skills from the vercel-labs/skills registry by task keywords, evaluate fit, and suggest how to install or adapt them for MicroClaw.
SkillCFreshness: CClaude Code +9 - 0.474score
linkedin
HaraldeRoessler
Post updates and articles, fetch your own profile, and interact with LinkedIn via the v2 REST API.
SkillCFreshness: CClaude Code +9 - 0.474score
imap-mail
HaraldeRoessler
Read, search, triage, and move email in any IMAP mailbox — Gmail, iCloud, Proton Bridge, Fastmail, self-hosted, anything speaking IMAP.
SkillCFreshness: CClaude Code +9 - 0.474score
ownify-memory-enhanced
HaraldeRoessler
Use whenever you interact with the ownify memory system (MemPalace).
SkillCFreshness: CClaude Code +9
Cite this page
x-twitter skill. Agent Mart. https://agentmart.dev/skills/haralderoessler-x-twitter (last updated 2026-10-24)