Publish viral X (Twitter) Articles with AI. Long-form content that gets engagement. Proven hook patterns, browser automation. Works with Claude, Cursor, OpenClaw.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install x-articles或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install x-articles⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/x-articles/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: x-articles description: Publish viral X (Twitter) Articles with AI. Long-form content that gets engagement. Proven hook patterns, browser automation. Works with Claude, Cursor, OpenClaw. version: 1.1.1 keywords: twitter-articles, x-articles, viral-content, twitter-automation, social-media, content-marketing, ai-writing, twitter-threads, engagement, ai, ai-agent, ai-coding, cursor, claude, claude-code, gpt, copilot, vibe-coding, openclaw, moltbot, agentic ---
Beat the algorithm. Create and publish X (Twitter) Articles with proven viral patterns.
AI-powered formatting, hook patterns, and browser automation. Handles Draft.js quirks, embed limitations, and image uploads.
X Articles uses Draft.js editor with specific quirks:
Wrong:
Sentence one.
Sentence two.
Sentence three.
Right:
Sentence one. Sentence two. Sentence three.
Embedded posts ALWAYS render at the END of the content block, not inline.
Workarounds:
Insert > Posts menu (don't paste URLs)| Type | Aspect Ratio | Recommended Size | |------|--------------|------------------| | Cover/Header | 5:2 | 1792x716 or similar | | Inline images | 16:9 or 4:3 | 1792x1024 (DALL-E HD) |
HOOK (hit insecurity or opportunity)
WHAT IT IS (1-2 paragraphs with social proof)
WHY MOST PEOPLE WON'T DO IT (address objections)
THE [X]-MINUTE GUIDE
- Step 1 (time estimate)
- Step 2 (time estimate)
- ...
YOUR FIRST [N] WINS (immediate value)
- Win 1: copy-paste example
- Win 2: copy-paste example
THE COST (value comparison)
WHAT TO DO AFTER (next steps)
THE WINDOW (urgency)
CTA (soft or hard)
Insecurity/FOMO:
everyone's talking about X... and you're sitting there wondering if you missed the window
Big Opportunity:
this is the biggest opportunity of our lifetime
News Hook:
X just open sourced the algo. Here's what it means for you:
RIP Pattern:
RIP [profession]. This AI tool will [action] in seconds.
WTF Pattern:
WTF!! This AI Agent [does amazing thing]. Here's how:
Personal Story:
When I was young, I was always drawn to people who...
Hard CTA (engagement bait):
RT + follow + reply 'KEYWORD' and I'll send the cheat sheet
Soft CTA:
If you take this advice and build something, let me know!
Simple:
Feel free to leave a like and RT if this helped.
# Open new article
agent-browser --cdp 18800 navigate "https://x.com/compose/article"
# Take snapshot to see current state
agent-browser --cdp 18800 snapshot
# Put content in clipboard
cat article.txt | pbcopy
# Click content area, select all, paste
agent-browser --cdp 18800 click '[contenteditable="true"]'
agent-browser --cdp 18800 press "Meta+a"
agent-browser --cdp 18800 press "Meta+v"
# Upload to file input
agent-browser --cdp 18800 upload 'input[type="file"]' /path/to/cover.png
# Wait for Edit media dialog, click Apply
agent-browser --cdp 18800 snapshot | grep -i apply
agent-browser --cdp 18800 click @e5 # Apply button ref
# Find and click Publish button
agent-browser --cdp 18800 snapshot | grep -i publish
agent-browser --cdp 18800 click @e35 # Publish button ref
# Confirm in dialog
agent-browser --cdp 18800 click @e5 # Confirm
# Close tab after publishing
agent-browser --cdp 18800 tab list
agent-browser --cdp 18800 tab close 1
If clicks fail due to stale refs, use JS evaluate:
agent-browser --cdp 18800 evaluate "(function() {
const btns = document.querySelectorAll('button');
for (let btn of btns) {
if (btn.innerText.includes('Publish')) {
btn.click();
return 'clicked';
}
}
return 'not found';
})()"
# scripts/format-for-x.sh
#!/bin/bash
# Converts markdown to X Articles format
INPUT="$1"
OUTPUT="${2:-${INPUT%.md}-x-ready.txt}"
cat "$INPUT" | \
# Remove markdown headers, keep text
sed 's/^## /\n/g' | \
sed 's/^### /\n/g' | \
sed 's/^# /\n/g' | \
# Remove markdown bold/italic
sed 's/\*\*//g' | \
sed 's/\*//g' | \
# Remove em dashes
sed 's/ — /: /g' | \
sed 's/—/:/g' | \
# Join lines within paragraphs (keeps blank lines as separators)
awk 'BEGIN{RS=""; FS="\n"; ORS="\n\n"} {gsub(/\n/, " "); print}' \
> "$OUTPUT"
echo "Created: $OUTPUT"
For promoting your article:
Result + Cost:
I gave an AI agent full access to my MacBook. It checks email, manages calendar, pushes code. Costs $20/month. A VA costs $2000.
You Don't Need X:
You don't need a Mac Mini. You don't need a server. I'm running my AI agent on an old MacBook Air from a drawer.
Gap Warning:
The gap between 'has AI agent' and 'doesn't' is about to get massive. I set mine up in 15 minutes.
Urgency:
Most people will bookmark this and never set it up. Don't be most people. The window is closing.
bird - X/Twitter CLI for posting tweetsde-ai-ify - Remove AI jargon from textai-pdf-builder - Generate PDFs (for lead magnets)---
Built by @NextXFrontier
安装 X Articles 后,可以对 AI 说这些话来触发它
Help me get started with X Articles
Explains what X Articles does, walks through the setup, and runs a quick demo based on your current project
Use X Articles to publish viral X (Twitter) Articles with AI
Invokes X Articles with the right parameters and returns the result directly in the conversation
What can I do with X Articles in my marketing & growth workflow?
Lists the top use cases for X Articles, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/x-articles/ 目录(个人级,所有项目可用),或 .claude/skills/x-articles/(项目级)。重启 AI 客户端后,用 /x-articles 主动调用,或让 AI 根据上下文自动发现并使用。
X Articles 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
X Articles 可免费安装使用。请查阅仓库了解许可证信息。
Publish viral X (Twitter) Articles with AI. Long-form content that gets engagement. Proven hook patterns, browser automation. Works with Claude, Cursor, OpenClaw.
X Articles 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using X Articles
Identifies repetitive steps in your workflow and sets up X Articles to handle them automatically