Communityコーディング&開発github.com

xurl

xurl CLI を使用して、X(旧Twitter)APIへの認証付き投稿、返信、読み取り/検索、DM、メディアアップロード、フォロワー、認証状態、生のv2 API呼び出しを実行します。

xurl とは?

xurl は、X(旧Twitter)API v2 を操作するための CLI ツールです。ショートカットコマンドを使用することで、ユーザーは認証済みの投稿、返信、引用、削除、読み取り、検索、DM、メディアアップロード、フォロワー管理などの一般的な操作を簡潔に実行できます。生の API モードも備えており、`xurl /2/users/me` のように任意の v2 エンドポイントに対して直接リクエストを送信できます。認証には `~/.xurl` ファイルを使用し、`xurl auth status` で状態確認が可能です。ツールの出力は標準で JSON 形式であり、認証エラーやレート制限などのエラーは終了コードで通知されます。主に Claude Code、Cursor、Codex などの 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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

xurl は何をしますか?

xurl を X API の作業に使用します。ショートカットコマンドは JSON を返します。raw モードは任意の v2 エンドポイントで機能します。

認証

  • ~/.xurl にトークンが保存されています。xurl auth status を使用して認証状態を確認し、直接読み取らないでください。
  • シークレットはインラインではなく、プロンプトを介して認証コマンドに渡すことで、シェルの履歴に残らないようにします。
  • --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

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'

ショートカットがエンドポイントをカバーしていない場合は raw モードを使用します。複雑な JSON の場合はペイロードを一時ファイルに保存します。

出力とエラー

  • 成功時は JSON が標準出力に出力されます。
  • 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, Grok Build, 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.

関連スキル