Agent skill

X Twitter

by unifapi-agent in unifapi-agent/agents

When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends.

MITAuto-check passedMarketing & SEO

Install X Twitter

skills CLI
$ npx skills add unifapi-agent/agents --skill x-twitter -a claude-code

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

GitHub CLI
$ gh skill install unifapi-agent/agents x-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/unifapi-agent/agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/x-twitter-agent/x-twitter .claude/skills/x-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
x-twitter
GitHub stars
587
Token cost
~2k tokens
SKILL.md length
726 words
Files
2
Skills in repo
47
Repo updated
First seen
Licence
MIT

At a glance

When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends.

  • Works in 8 steps: Resolve a handle to a profile. Strip the… → Read recent engagement. With the id from… → Trace who amplified a post. With a tweet… → …
  • Tasks that involve Social media posts
  • SKILL.md covers Use the unifapi skill for live…, Response contract, Core operations and Workflow, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

X Twitter is an agent skill from unifapi-agent/agents. When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends. Also use on "read this X handle," "pull tweets for," "X follower count," "search X for," "Twitter engagement," "X trends," or when another skill (KOL pricing, creator shortlist, buying signals, competitor/listening) needs the deterministic X read path. Connect via the unifapi skill first. Read-only research, never posts.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Marketing & SEO, covering Social media posts. It works with X (Twitter). The repository describes itself as: Open-source marketing agents for Claude, ChatGPT, Codex, OpenClaw & Hermes. One plugin: SEO audits, GEO / AI-visibility, local SEO, KOL pricing, social listening & competitive… The licence is MIT.

When your agent uses it

  • Tasks that involve Social media posts

Example prompts

  • “read this X handle,”
  • “pull tweets for,”
  • “X follower count,”
  • “/x-twitter”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Resolve a handle to a profile. Strip the leading @, then call
  2. Read recent engagement. With the id from step 1, call
  3. Trace who amplified a post. With a tweet id from step 2, call
  4. Gauge audience quality. Call x/users/{id}/verified_followers; it returns
  5. Discover from a topic (no handles yet). Call
  6. Map a network. Call x/users/{id}/followers or x/users/{id}/following
  7. Read regional trends. Call x/trends/by/woeid/{woeid} for what's trending
  8. Cite everything. Every figure ties back to the post or profile it came

What it can do on your machine

Read from SKILL.md and the folder at commit fb53247. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json and markdown).

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

X Twitter loads about 2k tokens when it runs. Until then it costs about 122 tokens; SKILL.md has 726 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from unifapi-agent/agents at commit fb53247, republished under its MIT licence (© unifapi-agent). 726 words, ~1,994 tokens.

Download SKILL.mdSave it as .claude/skills/x-twitter/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
x-twitter
description
When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends. Also use on "read this X handle," "pull tweets for," "X follower count," "search X for," "Twitter engagement," "X trends," or when another skill (KOL pricing, creator shortlist, buying signals, competitor/listening) needs the deterministic X read path. Connect via the `unifapi` skill first. Read-only research, never posts.
license
MIT
metadata.author
UnifAPI
metadata.version
1.0.0
metadata.homepage
https://unifapi.com/agents/x-twitter
metadata.source
https://github.com/unifapi-agent/agents

x-twitter

The deterministic read path for public X (Twitter) data through UnifAPI. This is a Data Skill: it does not run a marketing job on its own — it names the concrete x/... operations, response shapes, and gotchas so any X-first workflow (KOL pricing, creator vetting, buying signals, competitor and listening work) reads from one known recipe instead of rediscovering the surface each time.

Read-only — eyes, not hands. It researches public X data and returns cited records; it never posts, replies, follows, or DMs, and UnifAPI never holds X credentials.

Use the unifapi skill for live evidence

Connect once through the shared unifapi skill (OAuth MCP), then call the operations below. The X integration is backed by RapidAPI SocialLab but the public contract uses X-style /x/... paths — do not use legacy /twitter/... paths. Keep any billing metadata so the output can state record cost.

Response contract

Single-entity endpoints return the object in data:

json
{
  "request_id": "unif_...",
  "data": {},
  "billing": { "records_charged": 1, "balance_remaining": 99 }
}

List endpoints return an array in data plus pagination:

json
{
  "request_id": "unif_...",
  "data": [],
  "pagination": { "has_more": false, "next_cursor": null },
  "billing": { "records_charged": 1 }
}

When pagination.has_more is true, pass pagination.next_cursor as the next request's pagination_token (next_token is also accepted). Always preserve billing when reporting cost.

Core operations

NeedOperation
Profile by handlex/users/by/username/{username}
Profiles by handlesx/users/by (?usernames=a,b)
Profile by idx/users/{id}
Profiles by idsx/users (?ids=123,456)
Recent authored postsx/users/{id}/tweets (?max_results=10&exclude=replies)
Search recent postsx/tweets/search/recent (?query=...&max_results=10)
Autocomplete users/topicsx/autocomplete (?query=...)
Post by id / posts by idsx/tweets/{id} · x/tweets (?ids=123,456)
Who amplified a postx/tweets/{id}/retweeted_by · x/tweets/{id}/quote_tweets
Who liked a postx/tweets/{id}/liking_users
What a user likesx/users/{id}/liked_tweets
Followers / followingx/users/{id}/followers · x/users/{id}/following
Verified followersx/users/{id}/verified_followers
Regional trendsx/trends/by/woeid/{woeid}

Need a field not listed here? Use the unifapi skill's get_operation to read the exact schema before calling — but pick the operation from this table, don't discover blind.

Workflow

The deterministic recipes. Pick the one that matches the job; each names exactly what to call.

  1. Resolve a handle to a profile. Strip the leading @, then call x/users/by/username/{username}. Read data.id (needed for every per-user call below) and data.public_metrics.followers_count.
  2. Read recent engagement. With the id from step 1, call x/users/{id}/tweets?max_results=10&exclude=replies. Compute engagement from each tweet's public_metrics (like_count, retweet_count, reply_count, quote_count, impression_count). Page with x/users/{id}/tweets?pagination_token={next_cursor} when has_more.
  3. Trace who amplified a post. With a tweet id from step 2, call x/tweets/{id}/retweeted_by, x/tweets/{id}/quote_tweets, or x/tweets/{id}/liking_users to see who reposted, quoted, or liked it — the amplification and intent signal behind buying-signal, listening, and competitor work. Use x/users/{id}/liked_tweets for what a user engages with. Page via next_cursor.
  4. Gauge audience quality. Call x/users/{id}/verified_followers; it returns the verified followers as a paginated list, not a ready figure. Measure its size against data.public_metrics.followers_count from step 1 — that verified share is the real-vs-inflated signal that feeds confidence and warnings in downstream pricing/vetting skills. Page via next_cursor for a fuller count.
  5. Discover from a topic (no handles yet). Call x/tweets/search/recent?query=... for recent matching posts, or x/autocomplete?query=... for user/topic suggestions, then resolve the surfaced handles with step 1.
  6. Map a network. Call x/users/{id}/followers or x/users/{id}/following for audience-overlap or reach work; page via next_cursor.
  7. Read regional trends. Call x/trends/by/woeid/{woeid} for what's trending in a location (WOEID), e.g. for listening or content-timing.
  8. Cite everything. Every figure ties back to the post or profile it came from; report billing.records_charged (or estimate when billing metadata is absent).
Show full SKILL.md (194 more words)Show less

Shape notes

  • XUser — metrics nested under public_metrics: followers_count, following_count, tweet_count, listed_count. Profile flags at top level: protected, verified, verified_type. Read public_metrics, not legacy flat fields.
  • XTweet — metrics nested under public_metrics: like_count, retweet_count, reply_count, quote_count, bookmark_count, impression_count. May include author and media when available.

Gotchas

  • Use /x/... paths, never /twitter/... (legacy). Old /twitter/users/{screen_name} → x/users/by/username/{username}; old /twitter/search → x/tweets/search/recent (use x/autocomplete for user/topic discovery).
  • A protected, too-old, or too-thin timeline lowers confidence — surface it, don't paper over it.
  • Resolve the handle to data.id before any x/users/{id}/... call.
  • A low balance can silently truncate list pages: check billing.truncated_due_to_balance — when true the page is partial, so top up before trusting any count or share computed from it.

Output

Return the records the calling workflow needs, each cited to its post/profile, plus a one-line cost note (records_charged). When this skill is used directly, a compact profile + engagement summary per handle is the default:

markdown
**@handle** — followers {N}, verified {yes/no}. Recent 10 posts: avg engagement {x}% ({likes}/{reposts}/{replies}). Evidence: {post URLs}. Records: ~{N}.
  • kol-pricing, creator-shortlist, audience-fit-check (Influencer Marketing) — price and vet X creators on top of this read path.
  • buying-signal-monitor (Social Selling), competitor-profiling (Competitive Intelligence), social-listening-brief (Social Listening) — X-first intent, competitor, and listening work.
  • unifapi — the shared data skill: connect MCP and look up exact schemas with get_operation.

© unifapi-agent, MIT. 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 1 other file in skills/x-twitter-agent/x-twitter of unifapi-agent/agents.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit fb53247

Compare with similar skills

X 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.

X Twitter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
X Twitter this skillunifapi-agent/agents587—~2kAutomated safety check: PassMIT
Canghe Post To Xfreestylefly/canghe-skills4614 repos~1.7kAutomated safety check: WarnNone
Getxapi ConnectLeoYeAI/openclaw-marketing-skills1k1 repos~715Automated safety check: PassCustom licence
X Twitter ConnectLeoYeAI/openclaw-marketing-skills1k1 repos~1.6kAutomated safety check: PassCustom licence
Twitter Intelligencesandbaseai/sandbase-skills201—~943Automated safety check: PassApache-2.0
Socialcoreyhaines31/marketingskills54k4 repos~4.5kAutomated safety check: PassMIT

Similar skills

  • Canghe Post To X

    freestylefly/canghe-skills

    Posts content and articles to X (Twitter). An agent skill from freestylefly/canghe-skills.

    461 GitHub starsUsed in 4 repos~1.7k tokens
    Marketing & SEOAuto-check: warnings
  • Getxapi Connect

    LeoYeAI/openclaw-marketing-skills

    Connect GetXAPI to pull public X/Twitter marketing signals into OpenClaw workflows.

    1k GitHub starsUsed in 1 repo~715 tokens
    Marketing & SEOAuto-check passed
  • X Twitter Connect

    LeoYeAI/openclaw-marketing-skills

    Connect TweetClaw to pull public X/Twitter marketing signals into OpenClaw workflows.

    1k GitHub starsUsed in 1 repo~1.6k tokens
    Marketing & SEOAuto-check passed
  • Twitter Intelligence

    sandbaseai/sandbase-skills

    Search tweets, analyze trends, monitor users, and gather social intelligence from Twitter/X through SandBase.

    201 GitHub stars~943 tokensUpdated 12 days ago
    Marketing & SEOAuto-check passed
  • Social

    coreyhaines31/marketingskills

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, or Facebook, or wants to do social listening and engagement triage.

    54k GitHub starsUsed in 4 repos~4.5k tokens
    Writing & ContentAuto-check passed
  • X Algorithm Post Writing

    carson2222/skills

    Writes and reviews X posts, threads and replies using what the open-sourced For You ranking system rewards, and explains why a post may have underperformed.

    113 GitHub stars~3.8k tokensUpdated 3 mo ago
    Writing & ContentAuto-check passed

More from unifapi-agent/agents

All 47 skills in this repo
  • LLM Mention Tracking

    unifapi-agent/agents

    When the user wants to track how often their brand or domain gets mentioned across ChatGPT and AI search engines over a set of prompts, and how that share of voice compares to named competitors over…

    587 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Buying Signal Monitor

    unifapi-agent/agents

    When a seller or SDR wants to catch public buying intent on X/Twitter and LinkedIn — someone asking for a tool they sell, complaining about or switching off a competitor, or hiring for a role that…

    587 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Customer Research

    unifapi-agent/agents

    When the user wants to research customers from public communities, or synthesize customer language, pains, and objections.

    587 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Keyword Research

    unifapi-agent/agents

    When the user wants to research keywords, find keyword opportunities, run a keyword gap analysis, build topic clusters, or compare what competitors rank for.

    587 GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Schema

    unifapi-agent/agents

    When the user wants to add, fix, or optimize schema markup and structured data on their site.

    587 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • SEO Audit

    unifapi-agent/agents

    When the user wants to audit, review, or diagnose SEO issues on their site.

    587 GitHub stars~3.4k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about X Twitter

What does X Twitter do?

When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends. X Twitter is an agent skill from unifapi-agent/agents. When a workflow needs public X/Twitter data through UnifAPI — profiles, posts, engagement, followers/following, recent search, autocomplete, or trends.

When should I use X Twitter?

X Twitter fits situations like: tasks that involve Social media posts.

How do I install X Twitter in Claude Code?

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

How do I install X Twitter in Codex?

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

Can I use X 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 unifapi-agent/agents --skill x-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/x-twitter, .gemini/skills/x-twitter, .github/skills/x-twitter and .opencode/skills/x-twitter in your project.

What does X Twitter need to run?

SKILL.md names no scripts, command-line tools or credentials: X Twitter is instructions for the agent only.

Does X Twitter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is X 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. Review the folder before installing.

What licence does X Twitter use?

X Twitter is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does X Twitter use?

About 2k tokens (SKILL.md is roughly 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 X Twitter?

Skills that share tags, products or a category with X Twitter: Canghe Post To X (freestylefly/canghe-skills, 461 stars), Getxapi Connect (LeoYeAI/openclaw-marketing-skills, 1k stars), X Twitter Connect (LeoYeAI/openclaw-marketing-skills, 1k stars) and Twitter Intelligence (sandbaseai/sandbase-skills, 201 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains X Twitter?

unifapi-agent (a GitHub organization) maintains it in unifapi-agent/agents, which has 587 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on September 5, 2026.

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