dl-alexandre/skills

x-cli

Interact with X API using the x CLI. Use when working with posts, timelines, media uploads, user data, or when the user mentions X, social media, posts, or x.

First seen Mar 10, 2026

Installation

$ npx skills add dl-alexandre/skills --skill x-cli

Also in this package

Other skills from dl-alexandre/skills · top by installs.

npx skills add dl-alexandre/skills

Browse all from dl-alexandre/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch master
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,055 B
  • docs SUMMARY.md 171 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 30 installs

SKILL.md

X CLI

Interact with X API using the x command-line tool.

Prerequisites

x --version
export X_API_KEY='your-api-key'
export X_API_SECRET='your-api-secret'
export X_ACCESS_TOKEN='your-access-token'
export X_ACCESS_SECRET='your-access-secret'
x auth status

Authentication

  • API credentials from X Developer Portal
  • Environment variables: XAPIKEY, XAPISECRET, XACCESSTOKEN, XACCESSSECRET
  • Or: x auth login for OAuth flow

Tweets

Create & Manage

x tweet "Hello from the CLI!"
x tweet "Check this out" --media ./image.png
x tweet "Thread part 1" --thread
x tweet "Thread part 2" --reply-to TWEET_ID
x delete TWEET_ID --confirm

Read Timeline

x timeline --limit 50
x timeline --user USERNAME --limit 20
x mentions --limit 20
x likes --user USERNAME

Search

x search --query "#javascript" --limit 100
x search --query "from:elonmusk" --recent
x search --query "AI filter:images" --limit 50

Media

x upload ./image.jpg --alt "Description"
x upload ./video.mp4 --media-type video
x tweet "Video content" --media MEDIA_ID

Users

x user get USERNAME
x user followers USERNAME --limit 100
x user following USERNAME --limit 100
x follow USERNAME
x unfollow USERNAME --confirm

Lists & Bookmarks

x lists list
x lists get LIST_ID --tweets
x lists create "Tech News" --description "Technology updates"
x bookmarks --limit 50

Analytics

x analytics tweets --days 30
x analytics followers --growth
x export tweets --start 2024-01-01 --format csv

Agent Best Practices

  1. Rate limits: Respect X API rate limits (check x limits)
  2. Tweet length: 280 characters max (4,000 for X Premium)
  3. Media formats: JPG, PNG, GIF, MP4 supported
  4. Thread safety: Use --thread flag for multi-tweet threads