Skip to content
Skillpedia
Social media394k · #90

xurl

What it does

It guides an AI agent through the xurl command for X, the social network, including posts, replies, searches, and direct messages. It is for people who want an agent to help manage their X account.

When to use it

  • ✓When you want to publish a post or reply to one on X.
  • ✓When you need to search X or read a particular post.
  • ✓When you want to upload an image or video with a post.

Skill link

https://github.com/openclaw/openclaw/blob/main/skills/xurl/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/skills/xurl/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Post this announcement on X with the product image attached.”

5 new skills a week. 1 minute to read.

How it works

The skill uses the xurl command with the account you are signed in with. It runs shortcut commands for common actions, and it can make raw API calls for anything else.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

xurl

Use xurl for X API work. Shortcut commands return JSON; raw mode works for any v2 endpoint.

Auth

  • ~/.xurl holds tokens; check auth with xurl auth status instead of reading it.
  • Pass secrets to auth commands through the prompt, not inline, so they stay out of shell history.
  • --verbose prints auth headers into tool output.

Common shortcuts

xurl post "Hello world!"
xurl reply POST_ID "Nice."
xurl quote POST_ID "My take"
xurl delete POST_ID
xurl read POST_ID
xurl search "query" -n 20
xurl whoami
xurl user @handle
xurl timeline -n 20
xurl mentions -n 10
xurl like POST_ID
xurl unlike POST_ID
xurl repost POST_ID
xurl unrepost POST_ID
xurl bookmark POST_ID
xurl unbookmark POST_ID
xurl followers -n 20
xurl following -n 20
xurl follow @handle
xurl unfollow @handle
xurl block @handle
xurl unblock @handle
xurl mute @handle
xurl unmute @handle
xurl dm @handle "message"
xurl dms -n 10

POST_ID can be a full https://x.com/<user>/status/<id> URL.

Media

xurl media upload image.jpg
xurl media upload clip.mp4
xurl media status MEDIA_ID
xurl post "caption" --media-id MEDIA_ID

Videos may need processing; poll media status.

Auth/app management

xurl auth status
xurl auth apps list
xurl auth default
xurl auth default APP_NAME USERNAME
xurl auth apps remove APP_NAME

Per request:

xurl --app APP_NAME /2/users/me
xurl --auth oauth2 /2/users/me

Raw API

xurl /2/users/me
xurl -X POST /2/tweets -d '{"text":"Hello world!"}'
xurl '/2/tweets/search/recent?query=openclaw&max_results=10'

Use raw mode when shortcuts do not cover the endpoint. Keep payloads in temp files for complex JSON.

Output and errors

  • JSON stdout on success.
  • Non-zero exit on API/auth/network errors.
  • 401/403: auth, scope, or app mismatch; check xurl auth status.
  • 429: rate limited; back off.
  • Media upload failures: check file type/size and media processing status.
FAQ

Where are my X login tokens kept?

They are stored in a file in your home folder, and the skill checks the auth status instead of reading that file.

Will it print my login details?

The verbose option can print auth headers, so avoid it when you share results.

Can it handle videos?

Yes. Videos may need processing time, and the skill checks the media status until it is ready.

Details

Original description by the author

xurl CLI for authenticated X posts, replies, reads/search, DMs, media upload, followers, auth status, or raw v2 API calls.

repo: openclaw/openclaw

Popularity

GitHub stars
394k
Ranking position
#90
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills