Agent skill

Twitter

by ReScienceLab in ReScienceLab/opc-skills

Search and retrieve content from Twitter/X. An agent skill from ReScienceLab/opc-skills.

Apache-2.0Auto-check passedWriting & Content

Install Twitter

skills CLI
$ npx skills add ReScienceLab/opc-skills --skill twitter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ReScienceLab/opc-skills twitter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/twitter .claude/skills/twitter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
twitter
GitHub stars
1.8k
Token cost
~702 tokens
SKILL.md length
58 words
Files
30 (incl. scripts)
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Search and retrieve content from Twitter/X. An agent skill from ReScienceLab/opc-skills.

  • User mentions Twitter
  • SKILL.md covers Prerequisites, Commands, Search Query Syntax and API: twitterapi.io
  • Runs Python scripts from its folder; calls python3; needs TWITTERAPI_API_KEY
  • Tasks that involve Social media posts

What it does

Twitter is an agent skill from ReScienceLab/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.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. The skill folder holds 31 other files, including scripts (for example `.claude-plugin/plugin.json`, `scripts/batch_get_users.py` and `scripts/check_relationship.py`).

It sits in Writing & Content, covering Social media posts. It works with X (Twitter). The repository describes itself as: Agent Skills for Solopreneurs. The licence is Apache-2.0.

When your agent uses it

  • User mentions Twitter
  • Tasks that involve Social media posts

Example prompts

  • “/twitter”

Requirements

  • Python 3
  • A credential in TWITTERAPI_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 8295f4a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 17 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • api.twitterapi.io
    • docs.twitterapi.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • TWITTERAPI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Twitter loads about 702 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 58 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~702

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ReScienceLab/opc-skills at commit 8295f4a, republished under its Apache-2.0 licence (© ReScienceLab). 58 words, ~702 tokens.

Download SKILL.mdSave it as .claude/skills/twitter/SKILL.md (or your agent's skills folder). This skill also uses 29 other files; get the full folder from GitHub.
name
twitter
description
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.

Twitter/X Skill

Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.

Prerequisites

Set API key in ~/.zshrc:

bash
export TWITTERAPI_API_KEY="your_api_key"

Quick Check:

bash
cd <skill_directory>
python3 scripts/get_user_info.py elonmusk

Commands

All commands run from the skill directory.

User Endpoints
bash
python3 scripts/get_user_info.py USERNAME
python3 scripts/get_user_about.py USERNAME
python3 scripts/batch_get_users.py USER_ID1,USER_ID2
python3 scripts/get_user_tweets.py USERNAME --limit 20
python3 scripts/get_user_mentions.py USERNAME --limit 20
python3 scripts/get_followers.py USERNAME --limit 100
python3 scripts/get_following.py USERNAME --limit 100
python3 scripts/get_verified_followers.py USERNAME --limit 20
python3 scripts/check_relationship.py USER1 USER2
python3 scripts/search_users.py "query" --limit 20
Tweet Endpoints
bash
python3 scripts/get_tweet.py TWEET_ID [TWEET_ID2...]
python3 scripts/search_tweets.py "query" --type Latest --limit 20
python3 scripts/get_tweet_replies.py TWEET_ID --limit 20
python3 scripts/get_tweet_quotes.py TWEET_ID --limit 20
python3 scripts/get_tweet_retweeters.py TWEET_ID --limit 50
python3 scripts/get_tweet_thread.py TWEET_ID
python3 scripts/get_article.py TWEET_ID
List Endpoints
bash
python3 scripts/get_list_followers.py LIST_ID --limit 20
python3 scripts/get_list_members.py LIST_ID --limit 20
Community Endpoints
bash
python3 scripts/get_community.py COMMUNITY_ID
python3 scripts/get_community_members.py COMMUNITY_ID --limit 20
python3 scripts/get_community_moderators.py COMMUNITY_ID
python3 scripts/get_community_tweets.py COMMUNITY_ID --limit 20
python3 scripts/search_community_tweets.py "query" --limit 20
Other Endpoints
bash
python3 scripts/get_space.py SPACE_ID
python3 scripts/get_trends.py --woeid 1  # Worldwide

Search Query Syntax

bash
# Basic search
python3 scripts/search_tweets.py "AI agent"

# From specific user
python3 scripts/search_tweets.py "from:elonmusk"

# Date range
python3 scripts/search_tweets.py "AI since:2024-01-01 until:2024-12-31"

# Exclude retweets
python3 scripts/search_tweets.py "AI -filter:retweets"

# With media
python3 scripts/search_tweets.py "AI filter:media"

# Minimum engagement
python3 scripts/search_tweets.py "AI min_faves:1000"

API: twitterapi.io

© ReScienceLab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 29 other files (scripts) in skills/twitter of ReScienceLab/opc-skills.

  • SKILL.md
  • .claude-plugin/plugin.json
  • scripts/batch_get_users.py
  • scripts/check_relationship.py
  • scripts/credential.py
  • scripts/get_article.py
  • scripts/get_community.py
  • scripts/get_community_members.py
  • scripts/get_community_moderators.py
  • scripts/get_community_tweets.py
  • scripts/get_followers.py
  • scripts/get_following.py
  • scripts/get_list_followers.py
  • scripts/get_list_members.py
  • scripts/get_space.py
  • scripts/get_trends.py
  • scripts/get_tweet.py
  • scripts/get_tweet_quotes.py
  • scripts/get_tweet_replies.py
  • … and 11 more

Open the folder on GitHubat commit 8295f4a

Compare with similar skills

Twitter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Twitter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Twitter this skillReScienceLab/opc-skills1.8k—~702Automated safety check: PassApache-2.0
Social Contentfreekmurze/dotfiles1k22 repos~2.1kAutomated safety check: PassNone
Typefullyfreekmurze/dotfiles1k1 repos~3.4kAutomated safety check: NotesNone
Changelog Social RecapFlorianBruniaux/claude-code-ultimate-guide6.1k—~1.8kAutomated safety check: NotesCC-BY-SA-4.0
X Mastery Mentoralchaincyf/x-mentor-skill1.2k—~2.3kAutomated safety check: PassMIT
Voice Buildercharlie947/social-media-skills3.8k—~3.3kAutomated safety check: PassMIT

Similar skills

  • Social Content

    freekmurze/dotfiles

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, Facebook, or other platforms.

    1k GitHub starsUsed in 22 repos~2.1k tokens
    Writing & ContentAuto-check passed
  • Typefully

    freekmurze/dotfiles

    Create, schedule, and manage social media posts via Typefully.

    1k GitHub starsUsed in 1 repo~3.4k tokens
    Writing & ContentAuto-check: notes
  • Changelog Social Recap

    FlorianBruniaux/claude-code-ultimate-guide

    Turns CHANGELOG.md entries for a release or a week into LinkedIn, Twitter/X, newsletter and Slack posts in French and English.

    6.1k GitHub stars~1.8k tokensUpdated today
    Writing & ContentAuto-check: notes
  • X Mastery Mentor

    alchaincyf/x-mentor-skill

    $10K/hr级X/Twitter运营导师。基于Nicolas Cole、Dickie Bush、Sahil Bloom、Justin Welsh、 Dan Koe、Alex Hormozi六位顶级创作者的方法论 + X开源算法深度分析 + AI/科技赛道专精策略, 提炼6个核心心智模型、10条决策启发式、完整的选题-写作-增长操作手册。

    1.2k GitHub stars~2.3k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed
  • Voice Builder

    charlie947/social-media-skills

    Build a personalised voice profile inside a Codex or Claude project from a short interview plus 3 to 5 sample pieces of writing.

    3.8k GitHub stars~3.3k tokensUpdated 22 days ago
    Writing & ContentAuto-check passed
  • Social Post

    Hao0321/claude-skill-social-post

    依使用者真實貼文與成效寫 Facebook/Instagram/YouTube/Threads/X 文案,包含 ChatGPT Chat 的「寫文」「Mode C」「用我的格式/口氣」「黑底白字」;本機工作台、規劃、確認後發布、留言回覆及成效學習。使用者說「發文」「文案」「Social Post 介面」「回覆留言」「查流量」「把數據訓練進去」「比較貼文」「優化 pattern」時使用。

    726 GitHub stars~2.9k tokensUpdated 4 days ago
    Writing & ContentAuto-check passed

More from ReScienceLab/opc-skills

All 9 skills in this repo
  • SEO Geo

    ReScienceLab/opc-skills

    SEO & GEO (Generative Engine Optimization) for websites. An agent skill from ReScienceLab/opc-skills.

    1.8k GitHub starsUsed in 4 repos~2.1k tokens
    Auto-check passed
  • Nanobanana

    ReScienceLab/opc-skills

    Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).

    1.8k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • Banner Creator

    ReScienceLab/opc-skills

    Create banners using AI image generation. An agent skill from ReScienceLab/opc-skills.

    1.8k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Logo Creator

    ReScienceLab/opc-skills

    Create logos using AI image generation. An agent skill from ReScienceLab/opc-skills.

    1.8k GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Producthunt

    ReScienceLab/opc-skills

    Search and retrieve content from Product Hunt. An agent skill from ReScienceLab/opc-skills.

    1.8k GitHub stars~467 tokensUpdated yesterday
    Auto-check passed
  • Reddit

    ReScienceLab/opc-skills

    Search and retrieve content from Reddit. An agent skill from ReScienceLab/opc-skills.

    1.8k GitHub stars~516 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Twitter

What does Twitter do?

Search and retrieve content from Twitter/X. An agent skill from ReScienceLab/opc-skills. Twitter is an agent skill from ReScienceLab/opc-skills. Search and retrieve content from Twitter/X.

When should I use Twitter?

Twitter fits situations like: user mentions Twitter; tasks that involve Social media posts.

How do I install Twitter in Claude Code?

Run `npx skills add ReScienceLab/opc-skills --skill twitter -a claude-code`. Or copy the skill folder (skills/twitter in ReScienceLab/opc-skills) into .claude/skills/twitter in your project. Claude Code loads it when a task matches its description.

How do I install Twitter in Codex?

Run `npx skills add ReScienceLab/opc-skills --skill twitter -a codex`. Or copy the skill folder (skills/twitter in ReScienceLab/opc-skills) into .agents/skills/twitter in your project. Codex loads it when a task matches its description.

Can I use Twitter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ReScienceLab/opc-skills --skill twitter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/twitter, .gemini/skills/twitter, .github/skills/twitter and .opencode/skills/twitter in your project.

What does Twitter need to run?

Going by SKILL.md and its folder, Twitter needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named TWITTERAPI_API_KEY. Our summary lists: Python 3; A credential in TWITTERAPI_API_KEY.

Does Twitter access the network?

SKILL.md names 2 domains. As links in the text: api.twitterapi.io and docs.twitterapi.io. This is read from the text; nothing was executed.

Is Twitter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Twitter use?

Twitter is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Twitter use?

About 702 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Twitter?

Skills that share tags, products or a category with Twitter: Social Content (freekmurze/dotfiles, 1k stars), Typefully (freekmurze/dotfiles, 1k stars), Changelog Social Recap (FlorianBruniaux/claude-code-ultimate-guide, 6.1k stars) and X Mastery Mentor (alchaincyf/x-mentor-skill, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Twitter?

ReScienceLab (a GitHub organization) maintains it in ReScienceLab/opc-skills, which has 1,843 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 6, 2026.

Source: ReScienceLab/opc-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.