xurl
它能做什么
它指导 AI 智能体使用 xurl 命令处理社交网络 X,包括帖子、回复、搜索和私信。它适合希望智能体帮忙管理 X 账号的人。
适用场景
- ✓你想在 X 上发布帖子或回复某条帖子的时候。
- ✓你需要在 X 上搜索或阅读某条特定帖子的时候。
- ✓你想随帖子上传图片或视频的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/skills/xurl/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
~/.xurlholds tokens; check auth withxurl auth statusinstead of reading it.- Pass secrets to auth commands through the prompt, not inline, so they stay out of shell history.
--verboseprints 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
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。