Collect public X.com (Twitter) posts without the paid X API or a login — read a post or thread from its URL, list an account's recent posts, and search posts through search engines that index x.com. Use this whenever the user shares an x.com or twitter.com link, asks what someone posted on X/Twitter, wants an account's posts since some date, or wants to find X posts about a topic, even if they don't name X explicitly (e.g. "what did @NASA say today?").
Ships in x-collector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
All work goes through one bundled script. It runs with uv and installs its
own dependencies on first use:
uv run --no-project <path-to-this-skill>/scripts/x_collector.py <command> ...
Run <command> --help for every option. Output is JSON by default; add
--format md when you only need to read the posts yourself, because it is
much shorter.
| User has / wants | Command | Backend |
|---|---|---|
| A post URL or ID | post <url> | oEmbed → FxTwitter → syndication |
| Metrics, media URLs, quoted post | post <url> --rich | FxTwitter → syndication → oEmbed |
| A whole self-thread | post <url> --thread | FxTwitter only |
| An account's recent posts | timeline <handle> | FxTwitter |
| Posts about a topic | search "<query>" | SearXNG or ddgs with site:x.com |
Discovery is the hard part, fetching is easy. If the user gives a URL, use
post. If they name an account, use timeline. Use
search only when you have neither, because search results come from Google
and Bing indexes: they lag hours to days, favour popular posts, and are never
complete. Say so when you report search results, so the user does not read
"no results" as "nobody posted about this".
x_collector.py post https://x.com/NASA/status/2111180963661435219 --format md
x_collector.py post <url1> <url2> --rich
x_collector.py post <url> --thread
Plain post tries the official oEmbed endpoint first because it has the
lowest Terms-of-Service exposure. oEmbed gives only text, author and date;
t.co links stay unexpanded and media shows as pic.twitter.com/.... Add
--rich only when the task needs metrics, media URLs, a quoted post, or a
precise timestamp.
x_collector.py timeline NASA --count 10 --format md
x_collector.py timeline @NASA --since 2026-10-15 --with-replies
x_collector.py timeline NASA --pages 3 --count 100
Reposts are excluded unless you pass --include-reposts; a repost comes
back as the original post with is_repost: true. --since pages back until
it reaches the cutoff (up to 10 pages unless --pages says otherwise).
The script keeps no state between runs. To check an account for new posts,
pass the time of the last check (or the newest created_at you already
have) as --since.
x_collector.py search "Artemis II launch" --max 10 --format md
x_collector.py search "rate limit" --from github --timelimit w
x_collector.py search "NASA Artemis" --enrich --max 5
site:x.com is added for you. --from HANDLE limits results to one account.SEARXNG_URL set, the script uses that SearXNG instance (JSON format
must be enabled); otherwise it uses ddgs with the duckduckgo and yahoo
backends. Override with --engine / --backend.--enrich fetches
each post for full text and metrics; it costs one request per result.--max rather than firing several searches in a row. If a search
fails with "No results found" on every backend right after another search,
wait about 30 seconds and retry once before concluding there are no
results.The error message names every backend tried and why it failed. Each backend can break without notice — see references/backends.md for what each one depends on, its risk, and the last verified status. Report the failure to the user plainly; do not try a logged-in X session or the X web client's internal API to work around it. Those violate X's Terms of Service and risk the user's account.
search or timeline in tight cycles.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/x-collector:x-collectorfrom x-collector
npx claudepluginhub rishubil/skills --plugin x-collector