本文へスキップ
Skillpedia
SNS7.4k · #13258

xurl

できること

このスキルは、公式の xurl ツールをインストールして使う方法をエージェントに示します。エージェントに X の API を通して X のアカウントを扱わせたい人向けです。

使う場面

  • ✓自分のコンピューターに xurl ツールを設定させたいとき。
  • ✓登録済みのアプリで、OAuth を使って X にサインインする必要があるとき。
  • ✓準備された近道を使って、X API に基本的なリクエストを送りたいとき。

スキルのリンク

https://github.com/steipete/agent-scripts/blob/main/skills/xurl/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/steipete/agent-scripts/blob/main/skills/xurl/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“xurl ツールを設定して、私の X のアカウントにサインインできるようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはツールをインストールし、現在のサインインの状態を確認して、認可の手順を案内します。秘密情報は自分のコンピューターに残り、チャットに貼り付けられることはありません。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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 ~/.xurl into LLM context.
  • Never ask the user to paste client secrets, bearer tokens, or OAuth tokens into chat.
  • Never use --verbose in 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:

  • xurl stores 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
よくある質問

エージェントに X のパスワードが必要ですか?

サインインは OAuth を使い、自分のコンピューターで行われます。秘密情報をチャットに貼り付けてはいけないと、スキルは述べています。

複数の X のアプリを使えますか?

はい。保存されたアプリを一覧にしたり、既定を設定したり、コマンドごとに特定のアプリを選んだりできます。

詳細表示のモードを有効にしても安全ですか?

エージェントの実行中は詳細表示を使わないよう勧めています。サインインのヘッダーが露出するおそれがあるためです。

詳細

作者による元の説明

xurl X API CLI: install, auth, app choice, shortcuts, raw endpoints.

repo: steipete/agent-scripts

人気

GitHubのスター
7.4k
ランキング
#13258
ライセンス
MIT
更新日
2026/10/30

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル