x-twitter-poster
X (Twitter) 发推 Skill。使用 Playwright 连接用户已登录的 Chrome 浏览器,自动填写并发送推文。 适用场景: - 用户要求"发推"、"发一条推"、"发推文"、"发推特" - 用户要求"帮我发一条关于 XX 的推" - 用户要求"发一条推文,内容是..." 核心能力: - 连接用户 Chrome 浏览器(CDP 模式) - 继承用户的登录状态 - 跨平台支持:Mac (Meta+Enter) / Windows/Linux (Control+Enter) ⚠️ 安全要求: - 仅在信任代码时启用 CDP 端口 - 建议使用单独 Chrome 账号测试 - 可配置 X_USERNAME 环境变量
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/1067873313/x-twitter-posterWhat This Skill Does
The x-twitter-poster skill is an advanced automation tool for OpenClaw that enables X (formerly Twitter) posting by leveraging your existing browser session. Unlike traditional bots that risk account suspension through suspicious login patterns, this skill uses Playwright to connect to a running instance of your personal Chrome browser via the Chrome Debugging Protocol (CDP). By inheriting your active cookies and session tokens, it acts as an extension of your own browser activity, bypasses automated bot detection systems, and executes posting tasks with natural interaction patterns.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/1067873313/x-twitter-poster
Before using, you must launch your Chrome browser with the remote debugging port enabled. On macOS, use open -a "Google Chrome" --args --remote-debugging-port=28800. For Windows/Linux, execute chrome.exe --remote-debugging-port=28800. Ensure the browser is active before invoking the skill.
Use Cases
This skill is designed for users who want to streamline their social media presence without leaving their AI workflow. It is perfect for users who want to auto-post updates, share content curated by an AI, or manage repetitive community engagement tasks while ensuring their account remains secure and authenticated.
Example Prompts
- "发一条推文,内容是:OpenClaw 真是太好用了,自动化工作流变得如此简单。"
- "帮我发一条关于 AI 技术趋势的推特,强调浏览器自动化带来的效率提升。"
- "发推:今天完成了所有任务,休息时间到了。"
Tips & Limitations
- Security Warning: Because this skill connects to your active browser session, it has access to any site you have open. We strongly recommend using a dedicated Chrome profile for automation tasks to keep your main personal data isolated.
- Input Handling: The skill uses
keyboard.typerather thanpage.fillto ensure that React state changes are properly triggered, making the post input valid in the eyes of X's frontend. - Platform Specifics: The skill automatically detects your operating system to select the correct shortcut (Meta+Enter for Mac vs Control+Enter for Windows/Linux) to submit the post.
- Verification: Always verify your posts by checking your profile page directly after the script execution to confirm the content has been published successfully.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-1067873313-x-twitter-poster": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution