跳到正文
Skillpedia
社交媒体394k · #90

xurl

它能做什么

它指导 AI 智能体使用 xurl 命令处理社交网络 X,包括帖子、回复、搜索和私信。它适合希望智能体帮忙管理 X 账号的人。

适用场景

  • ✓你想在 X 上发布帖子或回复某条帖子的时候。
  • ✓你需要在 X 上搜索或阅读某条特定帖子的时候。
  • ✓你想随帖子上传图片或视频的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/skills/xurl/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/skills/xurl/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在 X 上发布这条公告,并附上产品图片。”

每周 5 个新技能,1 分钟读完。

工作原理

技能使用你已登录的账号运行 xurl 命令。对于常见操作,它运行快捷命令;对于其他操作,它可以直接调用 API。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

xurl

Use xurl for X API work. Shortcut commands return JSON; raw mode works for any v2 endpoint.

Auth

  • ~/.xurl holds tokens; check auth with xurl auth status instead of reading it.
  • Pass secrets to auth commands through the prompt, not inline, so they stay out of shell history.
  • --verbose prints auth headers into tool output.

Common shortcuts

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 can be a full https://x.com/<user>/status/<id> URL.

Media

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

Videos may need processing; poll media status.

Auth/app management

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

Per request:

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'

Use raw mode when shortcuts do not cover the endpoint. Keep payloads in temp files for complex JSON.

Output and errors

  • JSON stdout on success.
  • Non-zero exit on API/auth/network errors.
  • 401/403: auth, scope, or app mismatch; check xurl auth status.
  • 429: rate limited; back off.
  • Media upload failures: check file type/size and media processing status.
常见问题

我的 X 登录令牌保存在哪里?

它们保存在你主文件夹的一个文件中,技能检查的是认证状态,而不会读取该文件。

它会打印我的登录信息吗?

详细输出选项可能会打印认证头,因此在分享结果时请避免使用。

它能处理视频吗?

可以。视频可能需要处理时间,技能会检查媒体状态,直到其准备就绪。

详情

作者的原始描述

xurl CLI for authenticated X posts, replies, reads/search, DMs, media upload, followers, auth status, or raw v2 API calls.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#90
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能