Tooluck logoTooluck
SKILL.md

twitter

Agent skill fromReScienceLab/opc-skills

Search and retrieve content from Twitter/X. Get user info, tweets, replies, followers, communities, spaces, and trends via twitterapi.io. Use when user mentions Twitter, X, or tweets.

How to install twitter

install twitter
# install the opc-skills pack with the skills CLI
npx skills add ReScienceLab/opc-skills

# or add only this skill to Claude Code: copy the folder

skills/twitter/

# into

~/.claude/skills/twitter/ (all projects)

.claude/skills/twitter/ (one project)

skills/twitter/SKILL.md

Apache-2.0Full file
1# Twitter/X Skill
2
3Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.
4
5## Prerequisites
6
7Set API key in `~/.zshrc`:
8```bash
9export TWITTERAPI_API_KEY="your_api_key"
10```
11
12**Quick Check**:
13```bash
14cd <skill_directory>
15python3 scripts/get_user_info.py elonmusk
16```
17
18## Commands
19
20All commands run from the skill directory.
21
22### User Endpoints
23```bash
24python3 scripts/get_user_info.py USERNAME
25python3 scripts/get_user_about.py USERNAME
26python3 scripts/batch_get_users.py USER_ID1,USER_ID2
27python3 scripts/get_user_tweets.py USERNAME --limit 20
28python3 scripts/get_user_mentions.py USERNAME --limit 20
29python3 scripts/get_followers.py USERNAME --limit 100
30python3 scripts/get_following.py USERNAME --limit 100
31python3 scripts/get_verified_followers.py USERNAME --limit 20
32python3 scripts/check_relationship.py USER1 USER2
33python3 scripts/search_users.py "query" --limit 20
34```
35
36### Tweet Endpoints
37```bash
38python3 scripts/get_tweet.py TWEET_ID [TWEET_ID2...]
39python3 scripts/search_tweets.py "query" --type Latest --limit 20
40python3 scripts/get_tweet_replies.py TWEET_ID --limit 20
41python3 scripts/get_tweet_quotes.py TWEET_ID --limit 20
42python3 scripts/get_tweet_retweeters.py TWEET_ID --limit 50
43python3 scripts/get_tweet_thread.py TWEET_ID
44python3 scripts/get_article.py TWEET_ID
45```
46
47### List Endpoints
48```bash
49python3 scripts/get_list_followers.py LIST_ID --limit 20
50python3 scripts/get_list_members.py LIST_ID --limit 20
51```
52…

Excerpt shown under the repository's Apache-2.0 license.

More skills in opc-skills

Keep exploring

Similar skill repositories

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates