bach619/sc_auditor/xurl
Claude Code and agent skill by bach619/sc_auditor
- community
Checking that the SKILL.md file is still in the repository.
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
Install
npx vskill@latest install bach619/sc_auditor/xurlSKILL.md
The same SKILL.md was published earlier as clowlove/hermes-house/xurl.
xurl — X (Twitter) API via the Official CLI
xurl is the X developer platform's official CLI for the X API. It supports shortcut commands for common actions AND raw curl-style access to any v2 endpoint. All commands return JSON to stdout.
Use this skill for:
- posting, replying, quoting, deleting posts
- searching posts and reading timelines/mentions
- liking, reposting, bookmarking
- following, unfollowing, blocking, muting
- direct messages
- media uploads (images and video)
- raw access to any X API v2 endpoint
- multi-app / multi-account workflows
This skill replaces the older xitter skill (which wrapped a third-party Python CLI). xurl is maintained by the X developer platform team, supports OAuth 2.0 PKCE with auto-refresh, and covers a substantially larger API surface.
Secret Safety (MANDATORY)
Critical rules when operating inside an agent/LLM session:
- Never read, print, parse, summarize, upload, or send
~/.xurlto LLM context. - Never ask the user to paste credentials/tokens into chat.
- The user must fill
~/.xurlwith secrets manually on their own machine. - Never recommend or execute auth commands with inline secrets in agent sessions.
- Never use
--verbose/-vin agent sessions — it can expose auth headers/tokens. - To verify credentials exist, only use:
xurl auth status.
Forbidden flags in agent commands (they accept inline secrets): --bearer-token, --consumer-key, --consumer-secret, --access-token, --token-secret, --client-id, --client-secret
App credential registration and credential rotation must be done by the user manually, outside the agent session. After credentials are registered, the user authenticates with xurl auth oauth2 — also outside the agent session. Tokens persist to ~/.xurl in YAML. Each app has isolated tokens. OAuth 2.0 tokens auto-refresh.
Installation
Pick ONE method. On Linux, the shell script or go install are the easiest.
Verify:
If xurl is installed but auth status shows no apps or tokens, the user needs to complete auth manually — see the next section.
One-Time User Setup (user runs these outside the agent)
These steps must be performed by the user directly, NOT by the agent, because they involve pasting secrets. Direct the user to this block; do not execute it for them.
- Create or open an app at https://developer.x.com/en/portal/dashboard
- Set the redirect URI to
http://localhost:8080/callback - Copy the app's Client ID and Client Secret
- Register the app locally (user runs this):
``bash xurl auth apps add my-app --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET ``
- Authenticate (specify
--appto bind the token to your app):
``bash xurl auth oauth2 --app my-app `` (This opens a browser for the OAuth 2.0 PKCE flow.)
If X returns a UsernameNotFound error or 403 on the post-OAuth /2/users/me lookup, pass your handle explicitly (xurl v1.1.0+): ``bash xurl auth oauth2 --app my-app YOUR_USERNAME ` This binds the token to your handle and skips the broken /2/users/me` call.
- Set the app as default so all commands use it:
``bash xurl auth default my-app ``
- Verify:
``bash xurl auth status xurl whoami ``
After this, the agent can use any command below without further setup. OAuth 2.0 tokens auto-refresh.
Common pitfall: If you omit--app my-appfromxurl auth oauth2, the OAuth token is saved to the built-indefaultapp profile — which has no client-id or client-secret. Commands will fail with auth errors even though the OAuth flow appeared to succeed. If you hit this, re-runxurl auth oauth2 --app my-appandxurl auth default my-app.
Quick Reference
| Action | Command | |
|---|---|---|
| Post | xurl post "Hello world!" | |
| Reply | xurl reply POST_ID "Nice post!" | |
| Quote | xurl quote POST_ID "My take" | |
| Delete a post | xurl delete POST_ID | |
| Read a post | xurl read POST_ID | |
| Search posts | xurl search "QUERY" -n 10 | |
| Who am I | xurl whoami | |
| Look up a user | xurl user @handle | |
| Home timeline | xurl timeline -n 20 | |
| Mentions | xurl mentions -n 10 | |
| Like / Unlike | xurl like POST_ID / xurl unlike POST_ID | |
| Repost / Undo | xurl repost POST_ID / xurl unrepost POST_ID | |
| Bookmark / Remove | xurl bookmark POST_ID / xurl unbookmark POST_ID | |
| List bookmarks / likes | xurl bookmarks -n 10 / xurl likes -n 10 | |
| Follow / Unfollow | xurl follow @handle / xurl unfollow @handle | |
| Following / Followers | xurl following -n 20 / xurl followers -n 20 | |
| Block / Unblock | xurl block @handle / xurl unblock @handle | |
| Mute / Unmute | xurl mute @handle / xurl unmute @handle | |
| Send DM | xurl dm @handle "message" | |
| List DMs | xurl dms -n 10 | |
| Upload media | xurl media upload path/to/file.mp4 | |
| Media status | xurl media status MEDIA_ID | |
| List apps | xurl auth apps list | |
| Remove app | xurl auth apps remove NAME | |
| Set default app | xurl auth default APP_NAME [USERNAME] | |
| Per-request app | xurl --app NAME /2/users/me | |
| Auth status | xurl auth status |
Notes:
POST_IDaccepts full URLs too (e.g.https://x.com/user/status/1234567890) — xurl extracts the ID.- Usernames work with or without a leading
@.
Command Details
Posting
Reading & Search
Users, Timeline, Mentions
Engagement
Social Graph
Direct Messages
Media Upload
Raw API Access
The shortcuts cover common operations. For anything else, use raw curl-style mode against any X API v2 endpoint:
Global Flags
| Flag | Short | Description | |
|---|---|---|---|
--app | Use a specific registered app (overrides default) | ||
--auth | Force auth type: oauth1, oauth2, or app | ||
--username | -u | Which OAuth2 account to use (if multiple exist) | |
--verbose | -v | Forbidden in agent sessions — leaks auth headers | |
--trace | -t | Add X-B3-Flags: 1 trace header |
Streaming
Streaming endpoints are auto-detected. Known ones include:
/2/tweets/search/stream/2/tweets/sample/stream/2/tweets/sample10/stream
Force streaming on any endpoint with -s.
Output Format
All commands return JSON to stdout. Structure mirrors X API v2:
Errors are also JSON:
Common Workflows
Post with an image
Reply to a conversation
Search and engage
Check your activity
Multiple apps (credentials pre-configured manually)
Error Handling
- Non-zero exit code on any error.
- API errors are still printed as JSON to stdout, so you can parse them.
- Auth errors → have the user re-run
xurl auth oauth2outside the agent session. - Commands that need the caller's user ID (like, repost, bookmark, follow, etc.) will auto-fetch it via
/2/users/me. An auth failure there surfaces as an auth error.
Agent Workflow
- Verify prerequisites:
xurl --helpandxurl auth status. - Check default app has credentials. Parse the
auth statusoutput. The default app is marked with▸. If the default app showsoauth2: (none)but another app has a valid oauth2 user, tell the user to runxurl auth default <that-app>to fix it. This is the most common setup mistake — the user added an app with a custom name but never set it as default, so xurl keeps trying the emptydefaultprofile. - If auth is missing entirely, stop and direct the user to the "One-Time User Setup" section — do NOT attempt to register apps or pass secrets yourself.
- Start with a cheap read (
xurl whoami,xurl user @handle,xurl search ... -n 3) to confirm reachability. - Confirm the target post/user and the user's intent before any write action (post, reply, like, repost, DM, follow, block, delete).
- Use JSON output directly — every response is already structured.
- Never paste
~/.xurlcontents back into the conversation.
Troubleshooting
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglearning/hermes-agent-main/skills/social-media/xurl/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bach619/sc_auditor/xurl)