kangarooking/x-skills/x-publish
Claude Code and agent skill by kangarooking/x-skills
- community
Checking that the SKILL.md file is still in the repository.
Publish tweets and threads to X (Twitter) draft using browser automation. Use when user wants to publish content to X, save to drafts, or mentions "publish to X", "post tweet", "x-publish", "发布推文". Supports short tweets and threads. NEVER auto-publish, always saves to draft.
Install
npx vskill@latest install kangarooking/x-skills/x-publishSKILL.md
The same SKILL.md was published earlier as kangarooking/x-skills/x-publish.
X Publish
Publish tweets and threads to X draft using Playwright browser automation.
Prerequisites
- Playwright MCP for browser automation
- User logged into X (Twitter)
- Python 3.9+ with dependencies:
- macOS:
pip install Pillow pyobjc-framework-Cocoa - Windows:
pip install Pillow pywin32
Critical Rules
- NEVER auto-publish - Only save to draft
- User must be logged in - Prompt to login if not
- Verify content before saving - Double-check tweet text
Content Types
Short Tweet
Single tweet ≤280 characters
Thread
Multiple tweets connected (3-10 tweets)
Scripts
copy_to_clipboard.py
Copy text to system clipboard for paste operation:
Workflow
Short Tweet
Step 1: Prepare Content
Step 2: Open Compose
Step 3: Paste Content
Step 4: Save Draft
Step 5: Verify
Thread
Step 1: Prepare Content Parse thread into individual tweets:
Step 2: Open Compose
Step 3: Add First Tweet
Step 4: Add More Tweets For each additional tweet:
Step 5: Save Draft
Step 6: Verify
Efficiency Guidelines
Avoid Unnecessary Waits
Parallel Preparation
Sequential Execution
Element References
Common elements in X compose:
| Element | Description | Typical ref pattern | |
|---|---|---|---|
| Tweet textbox | Main input area | textbox with "What's happening" | |
| Add tweet button | "+" or "添加" | button near compose area | |
| Close button | X icon | button top-left | |
| Save draft | In close dialog | "Save" / "保存" button | |
| Drafts link | View saved drafts | link to /compose/drafts |
Example Flows
Short Tweet Example
User: /x-publish "Claude 4.5发布了,extended thinking是真正的游戏规则改变者。"
Thread Example
User: /x-publish (with thread content from x-create)
Execution:
Error Handling
Not Logged In
Character Limit
Network Error
Integration
After publishing:
Append a machine-readable block for hooks/state ingestion:
(Optional) Append event for feedback loop:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingx-publish/SKILL.md
Popularity
- Repository stars
- 334
- Repository forks
- 52
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kangarooking/x-skills/x-publish)