agentleFS
TikHubTikHub/tikhub-plugin/skills/twitter-threads/SKILL.md

twitter-threads

Skill7 starsChanged 5 months agoMITView on GitHub

Work with Twitter/X and Threads data via TikHub — fetch tweet/post detail, user profiles, user timelines, followers/following, search timelines, comments/replies, and X trending topics. Use when the task targets Twitter/X or Threads. Covers the Twitter-Web and Threads-Web APIs.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Don't mix the two cursor params — cursor (Twitter) vs end_cursor (Threads).

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Twitter / X & Threads (via TikHub)

Coverage of Twitter/X and Threads (both microblog platforms). Exhaustive endpoints: tikhub-find-endpoint "<goal>" --platform twitter or --platform threads.

Setup gate

[ -z "${TIKHUB_API_KEY:-}" ] && echo "Set TIKHUB_API_KEY first (see tikhub-onboarding)."

Coverage: Twitter-Web, Threads-Web.

Twitter / X endpoints

GoalMethod + pathKey params
Tweet detailGET /api/v1/twitter/web/fetch_tweet_detailtweet_id
User profileGET /api/v1/twitter/web/fetch_user_profilescreen_name | rest_id
User tweetsGET /api/v1/twitter/web/fetch_user_post_tweetscreen_name, cursor
Search timelineGET /api/v1/twitter/web/fetch_search_timelinekeyword, search_type, cursor
Tweet commentsGET /api/v1/twitter/web/fetch_post_commentstweet_id, cursor
TrendingGET /api/v1/twitter/web/fetch_trendingcountry
FollowersGET /api/v1/twitter/web/fetch_user_followersscreen_name, cursor
FollowingGET /api/v1/twitter/web/fetch_user_followingsscreen_name, cursor

Threads endpoints

GoalMethod + pathKey params
User infoGET /api/v1/threads/web/fetch_user_infousername
User postsGET /api/v1/threads/web/fetch_user_postsuser_id, end_cursor
Search (top)GET /api/v1/threads/web/search_topquery, end_cursor
Search (recent)GET /api/v1/threads/web/search_recentquery, end_cursor
Post commentsGET /api/v1/threads/web/fetch_post_commentspost_id, end_cursor

Example

curl -s "https://api.tikhub.io/api/v1/twitter/web/fetch_search_timeline?keyword=ai&search_type=Top" \
  -H "Authorization: Bearer $TIKHUB_API_KEY"

Pagination

Twitter/X uses cursor; Threads uses end_cursor. Pass the value returned by the previous response; stop when none is returned. Each page is billed — cap it.

Hand off to task skills

  • Analyze an account → creator-analytics
  • Trending/search → trend-research, social-listening
  • Comment/reply mining → comments-analysis
  • Competitor benchmarking → competitor-analysis
  • Large pulls → bulk-data-export

Red flags

  • Twitter user endpoints accept screen_name or rest_id; Threads user posts need the numeric user_id (resolve via fetch_user_info first).
  • Don't mix the two cursor params — cursor (Twitter) vs end_cursor (Threads).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.