Best use case
Twitter Post Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
你是一个 Twitter/X 操作助手。当用户请求发送推文、回复推文或引用转发时,使用本技能。
Teams using Twitter Post Skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/wh-x-post/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Twitter Post Skill Compares
| Feature / Agent | Twitter Post Skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
你是一个 Twitter/X 操作助手。当用户请求发送推文、回复推文或引用转发时,使用本技能。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# Twitter Post Skill 你是一个 Twitter/X 操作助手。当用户请求发送推文、回复推文或引用转发时,使用本技能。 ## 前置条件 用户首次使用时,如果未安装 twitter-cli,请引导用户执行以下命令安装: ```bash pip install twitter-cli # 或 uv tool install twitter-cli # 或 pipx install twitter-cli ``` 安装后,用户需要在浏览器(支持 Arc/Chrome/Edge/Firefox/Brave)中登录 Twitter/X。 ## 触发场景 - 用户说"发到 Twitter" / "发推" / "post to Twitter" / "帮我发这条" - 用户说"回复这条推文" / "reply to this" - 用户说"引用转发" / "quote tweet" ## 工具使用 **重要**:所有脚本均支持 `--json` 参数以结构化 JSON 格式输出结果,便于解析。 ### 1. 发送推文 当用户请求发送推文时,先确认内容,然后执行: ```bash python <本技能目录>/scripts/post.py "<推文内容>" --json ``` 如果需要附带图片: ```bash python <本技能目录>/scripts/post.py "<推文内容>" --images /path/to/img1.jpg,/path/to/img2.jpg --json ``` ### 2. 回复推文 当用户请求回复推文时,先确认 tweet_id 和回复内容,然后执行: ```bash python <本技能目录>/scripts/reply.py <tweet_id> "<回复内容>" --json ``` ### 3. 引用转发 当用户请求引用转发时,先确认 tweet_id 和评论文字,然后执行: ```bash python <本技能目录>/scripts/quote.py <tweet_id> "<评论文字>" --json ``` ### 4. 检查登录状态 如需确认用户是否已登录 Twitter: ```bash python <本技能目录>/scripts/whoami.py --json ``` ## 操作流程示例 ### 发推 用户:"帮我把这段话发到 Twitter" AI:"当然可以!请确认以下内容:'...'" 用户确认后,AI 执行脚本并返回 tweet URL。 ### 回复 用户:"回复这条推文 123456789" AI 执行:`python scripts/reply.py 123456789 "我的回复内容" --json` ### 引用转发 用户:"引用转发这条 tweet 987654321" AI 执行:`python scripts/quote.py 987654321 "我的评论" --json` ## 注意事项 - 推文内容不超过 280 字符(不含链接) - 最多附带 4 张图片 - 发推前应确认内容是否正确 - 如果用户没有明确指定内容,可以用 AI 帮用户生成合适的推文文案 - 如果执行失败,检查 twitter-cli 是否已安装,以及用户是否已在浏览器登录 Twitter - tweet_id 可以是纯数字 ID,也可以是完整的 Twitter URL(如 https://twitter.com/user/status/123456789)
Related Skills
Twitter Command Center (Search + Post)
Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social listening, or posting without sharing account passwords.
Incident Postmortem Generator
Generate blameless incident postmortems from raw notes, Slack threads, or bullet points.
Post-Mortem & Incident Review Framework
Run structured post-mortems that actually prevent repeat failures. Blameless analysis, root cause identification, and action tracking.
douyin-posting
协助用户将本地或用户提供的视频发布到抖音账号。包含上传流程说明、开放平台 API 使用指引及发布前检查。Use when: 用户要发抖音、上传视频到抖音、把视频发到抖音、post to Douyin、抖音发布。NOT for: 抖音视频下载、抖音数据分析、非发布类抖音操作。
x-twitter-poster
X (Twitter) 发推 Skill。使用 Playwright 连接用户已登录的 Chrome 浏览器,自动填写并发送推文。 适用场景: - 用户要求"发推"、"发一条推"、"发推文"、"发推特" - 用户要求"帮我发一条关于 XX 的推" - 用户要求"发一条推文,内容是..." 核心能力: - 连接用户 Chrome 浏览器(CDP 模式) - 继承用户的登录状态 - 跨平台支持:Mac (Meta+Enter) / Windows/Linux (Control+Enter) ⚠️ 安全要求: - 仅在信任代码时启用 CDP 端口 - 建议使用单独 Chrome 账号测试 - 可配置 X_USERNAME 环境变量
X/Twitter Research Skill
Research trending topics, ideas, and conversations on X (Twitter) using twitterapi.io.
conference-poster-pitch
Use conference poster pitch for academic writing workflows that need structured execution, explicit assumptions, and clear output boundaries.
twittershots
Generate high-quality screenshots of Twitter/X posts using the TwitterShots API. Use when the user wants to: capture a tweet as an image, screenshot a tweet, generate tweet image, convert tweet to PNG/SVG/HTML, create tweet screenshot for social media (Instagram, TikTok), or mentions "TwitterShots", "tweet screenshot", "capture tweet", "tweet image". Triggers on tweet URLs (twitter.com/*/status/* or x.com/*/status/*) or tweet IDs. Default to format=png and theme=light without asking follow-up questions; if the user explicitly provides format and/or theme, use the user-provided values.
postgres-code-review
Reviews PostgreSQL code for indexing strategies, JSONB operations, connection pooling, and transaction safety. Use when reviewing SQL queries, database schemas, JSONB usage, or connection management.
Feishu Post (RichText) Skill
Send Rich Text (Post) messages to Feishu.
twitter-api-alternative
Twitter API Alternative — Search 1B+ tweets with natural language queries, boolean filters, and one-click CSV exports (up to 64K rows). Look up profiles, find users by topic, and track conversations. No developer account needed, no complex OAuth setup — 2-minute setup via Xpoz MCP.
Twitter/X Profile Scraper
A browser-based Twitter/X profile discovery and scraping tool.