xurl
What it does
This skill shows the agent how to install and use the official xurl tool for X. It is for people who want their agent to work with X accounts through the X API.
When to use it
- ✓When you want your agent to set up the xurl tool on your computer.
- ✓When you need to sign in to X through OAuth for an app you have registered.
- ✓When you want to send a basic request to the X API using a ready-made shortcut.
Skill link
https://github.com/steipete/agent-scripts/blob/main/skills/xurl/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up the xurl tool so you can sign in to my X account.”
5 new skills a week. 1 minute to read.
How it works
The agent installs the tool, checks the current sign-in status, and guides you through the authorization steps. Secrets stay on your machine and are not pasted into chat.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
xurl
Official CLI for the X API.
Primary upstream: https://github.com/xdevplatform/xurl
Install
Homebrew:
brew install --cask xdevplatform/tap/xurl
npm:
npm install -g @xdevplatform/xurl
Shell script:
curl -fsSL https://raw.githubusercontent.com/xdevplatform/xurl/main/install.sh | bash
Go:
go install github.com/xdevplatform/xurl@latest
Safety
- Never read, print, summarize, upload, or paste
~/.xurlinto LLM context. - Never ask the user to paste client secrets, bearer tokens, or OAuth tokens into chat.
- Never use
--verbosein agent runs; it can expose auth headers. - Do not run auth commands with inline secret flags in an agent session.
- The user must register app credentials manually on their machine outside the agent session.
Auth
Check current state:
xurl auth status
If an app is already registered, complete OAuth 2.0:
xurl auth oauth2
Multi-app:
xurl auth apps list
xurl auth default my-app
xurl auth default my-app alice
xurl --app dev-app /2/users/me
Notes:
xurlstores app config and tokens in~/.xurl.- OAuth 2.0 redirect URI in the X developer portal should be
http://localhost:8080/callback. - App registration examples with inline secrets are intentionally omitted here. Do that outside the agent session.
Common shortcuts
xurl post "Hello world!"
xurl reply 1234567890 "Nice post"
xurl quote 1234567890 "My take"
xurl delete 1234567890
xurl read 1234567890
xurl search "from:elonmusk" -n 10
xurl whoami
xurl user @XDevelopers
xurl timeline -n 20
xurl mentions -n 10
xurl like 1234567890
xurl unlike 1234567890
xurl repost 1234567890
xurl unrepost 1234567890
xurl bookmark 1234567890
xurl unbookmark 1234567890
xurl bookmarks -n 10
xurl likes -n 10
xurl follow @handle
xurl unfollow @handle
xurl following -n 20
xurl followers -n 20
xurl dm @handle "message"
xurl dms -n 10
xurl media upload path/to/file.mp4
xurl media status MEDIA_ID
POST_ID can also be a full X status URL.
Raw endpoint mode
GET:
xurl /2/users/me
POST JSON:
xurl -X POST /2/tweets -d '{"text":"Hello world!"}'
Headers:
xurl -H "Content-Type: application/json" /2/tweets
Choose auth type:
xurl --auth oauth2 /2/users/me
xurl --auth oauth1 /2/tweets
xurl --auth app /2/users/me
Choose OAuth2 account:
xurl --username alice /2/users/me
Streaming:
xurl /2/tweets/search/stream
xurl -s /2/users/me
Quick checks
Install:
xurl version
Auth:
xurl auth status
Live request after auth:
xurl whoami
FAQ
Does the agent need my X password?
The sign-in is done on your machine through OAuth. The skill says secrets should never be pasted into chat.
Can I use more than one X app?
Yes. The tool can list saved apps, set a default, or pick a specific app for a command.
Is it safe to turn on verbose mode?
The skill advises against verbose mode during agent runs, because it can expose sign-in headers.
Details
Original description by the author
xurl X API CLI: install, auth, app choice, shortcuts, raw endpoints.
repo: steipete/agent-scripts
Popularity
- GitHub stars
- 7.4k
- Ranking position
- #13258
- License
- MIT
- Updated
- 10/30/2026
Comments
- …
More skills from this repository
beeper
7.4kHelps your agent search your local Beeper chat history to find messages and work out which chat or contact a vague hint refers to.
cloudflare-registrar
7.4kHelps your agent check Cloudflare Registrar domain prices and availability, and register or list domains with a confirmation step.
codexbar
7.4kHelps your agent check how much usage you have left on AI services such as Codex, Claude, and Kimi, including limits, credits, and reset times.
create-cli
7.4kHelps your agent design a command line tool's commands, flags, help text, output, and errors so it works for both people and scripts.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.