x-post
@rameerez · 收录于 1 周前
Post to X (Twitter) from the command line. Text, images, and video.
适合你,如果习惯用终端发推
/ 下载安装
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code
~/.claude/skills/(项目级 .claude/skills/)Codex CLI
~/.codex/skills/Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add rameerez/claude-code-startup-skills/x-post/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- rameerez/claude-code-startup-skills/x-post/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify rameerez/claude-code-startup-skills/x-post安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
28GitHub stars
~299最小装载
~299含声明引用
~1.9K文本包总量
镜像托管
怎么用
技能原文 SKILL.md
Post to X using the CLI tool at ~/.claude/skills/x-post/x-post.py.
Setup
Requires Python packages: pip install xdk requests_oauthlib
Credentials file at ~/.claude/skills/x-post/x.key (JSON):
{
"api_key": "...",
"api_secret": "...",
"access_token": "...",
"access_token_secret": "..."
}
Commands
Post text:
python ~/.claude/skills/x-post/x-post.py post "Your tweet text"
Post with image:
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/image.jpg
Post with video:
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/video.mp4
Check profile:
python ~/.claude/skills/x-post/x-post.py me
Rules
- Always show the user the exact tweet text before posting and get confirmation
- Never post without explicit user approval
- Video uploads use chunked upload (INIT/APPEND/FINALIZE) and may take a minute for processing
- The script auto-detects media type from file extension
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…