Community程式設計與開發github.com

xurl

xurl CLI:認證 X 貼文、回覆、讀取/搜尋、私訊、媒體上傳、跟隨者、認證狀態或原始 v2 API 呼叫。

xurl 是什麼?

xurl 是一個功能完整的命令列工具,用於與 X(原 Twitter)API 進行互動。它提供了一系列快捷指令,讓開發者可以輕鬆執行常見操作,如發文、回覆、搜尋、管理私訊、上傳媒體,以及管理認證與應用程式。支援 JSON 輸出、原始 v2 API 呼叫,並提供詳細的錯誤處理與診斷功能。此工具適用於需要自動化 X 操作的開發者、AI 代理或指令稿。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/xurl

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

xurl 是做什麼的?

使用 xurl 進行 X API 相關工作。快捷指令回傳 JSON;原始模式可用於任何 v2 端點。

認證

  • ~/.xurl 儲存 token;請使用 xurl auth status 檢查認證狀態,而非直接讀取該檔案。
  • 透過提示傳遞機密資訊給認證指令,不要內嵌在指令中,以免留存在 shell 歷史紀錄中。
  • --verbose 會將認證標頭印出到工具輸出中。

常用快捷指令

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 可以是完整的 https://x.com/<user>/status/<id> URL。

媒體

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

影片可能需要處理;請輪詢 media status。

認證/應用程式管理

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

每次請求:

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

原始 API

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

當快捷指令不涵蓋某個端點時,請使用原始模式。對於複雜的 JSON,將 payload 存放在暫存檔案中。

輸出與錯誤

  • 成功時輸出 JSON 到 stdout。
  • API/認證/網路錯誤時回傳非零退出碼。
  • 401/403:認證、權限範圍或應用程式不符;請檢查 xurl auth status。
  • 429:已達速率限制;請暫緩。
  • 媒體上傳失敗:請檢查檔案類型/大小及媒體處理狀態。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能