x-twitter
Original:🇺🇸 English
Translated
66 scriptsChecked / no sensitive code detected
Interact with X (Twitter) API v2. Post tweets, search, engage, moderate, and analyze — all from your AI agent. Full 31-command skill for Twitter/X automation.
7installs
Sourcealberduris/skills
Added on
NPX Install
npx skill4agent add alberduris/skills x-twitterTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →X (Twitter) API v2 skill using the authenticated user's own developer credentials (OAuth 1.0a, pay-per-use). All commands go through a single entry point: . Each command has its own doc file with the full reference for flags and behavior.
node <base_directory>/x.js <command> [flags][!SETUP] Before first use, check whether exists. If it does NOT exist, run . Then check whether exists. If it does NOT exist, run . NEVER cd into the skill directory; use --prefix to target it without changing your working directory.
<base_directory>/node_modulesnpm install --prefix <base_directory><base_directory>/dist/x.jsnpm run build --prefix <base_directory>[!COMMANDS]
Core:
a) — authenticated user's own account data (profile, metrics, verification). @docs/me.md.
b) — search posts by query (last 7 days or full archive). @docs/search.md.
c) — retrieve one or more posts by ID. @docs/get.md.
d) — create a tweet, reply, or quote tweet. @docs/post.md.
e) — delete a post owned by the authenticated user. @docs/delete.md.
mesearchgetpostdeleteEngagement:
f) — like a post by tweet ID. @docs/like.md.
g) — remove a like from a post. @docs/like.md.
h) — repost (retweet) a post. @docs/repost.md.
i) — remove a repost. @docs/repost.md.
likeunlikerepostunrepostSocial:
j) — look up user(s) by username or ID. @docs/user.md.
k) — follow a user by username or ID. @docs/follow.md.
l) — unfollow a user. @docs/follow.md.
m) — list a user's followers. @docs/followers.md.
n) — list accounts a user follows. @docs/followers.md.
userfollowunfollowfollowersfollowingFeed:
o) — your home timeline (reverse chronological). @docs/timeline.md.
p) — posts that mention you. @docs/mentions.md.
timelinementionsBookmarks:
q) — bookmark a post. @docs/bookmark.md.
r) — remove a bookmark. @docs/bookmark.md.
s) — list your bookmarks. @docs/bookmark.md.
bookmarkunbookmarkbookmarksModeration:
t) — mute a user. @docs/mute.md.
u) — unmute a user. @docs/mute.md.
v) — list muted accounts. @docs/mute.md.
w) — list blocked accounts. @docs/blocked.md.
x) — hide a reply to your post. @docs/hide-reply.md.
muteunmutemutedblockedhide-replyAnalytics:
y) — users who liked a post. @docs/likers.md.
z) — users who reposted a post. @docs/reposters.md.
aa) — quote tweets of a post. @docs/quotes.md.
ab) — count posts matching a query over time. @docs/count.md.
ac) — reposts of your posts by others. @docs/reposts-of-me.md.
likersrepostersquotescountreposts-of-meDiscovery:
ad) — search users by query. @docs/search-users.md.
ae) — trending topics (worldwide or personalized). @docs/trending.md.
search-userstrending[!CREDENTIALS] Four OAuth 1.0a variables are REQUIRED: , , , . They resolve from the first source that provides them: a) in cwd, b) in cwd, c) in the plugin directory, d) in the plugin directory, e) environment variables. Obtain them from the X Developer Console (Apps > Keys and tokens).
X_API_KEYX_API_SECRETX_ACCESS_TOKENX_ACCESS_TOKEN_SECRET.env.local.env.env.local.env