mugpeng/oh-my-skills-diy/peng-post-to-x-thread
Claude Code and agent skill by mugpeng/oh-my-skills-diy
- community
Checking that the SKILL.md file is still in the repository.
Publishes X/Twitter threads from Markdown. Splits a Markdown file by --- separators into a chain of connected tweets, each replying to the previous one. Supports images per tweet, character validation, preview mode, and configurable delay between posts. Use when user asks to "post thread", "tweet thread", "X thread", "Twitter thread", or provides a markdown file for thread publishing.
Install
npx vskill@latest install mugpeng/oh-my-skills-diy/peng-post-to-x-threadSKILL.md
The same SKILL.md was published earlier as mugpeng/oh-my-skills-diy/peng-post-to-x-thread.
Post to X Thread
Publish a Markdown file as an X/Twitter thread — a chain of connected tweets where each replies to the previous one. Threads get more visibility than long-form articles because each tweet appears individually in timelines.
Script Directory
{baseDir} = this SKILL.md's directory. Resolve ${BUN_X}: prefer bun; else npx -y bun; else suggest brew install oven-sh/bun/bun.
| Script | Purpose | |
|---|---|---|
scripts/x-thread.ts | Post a markdown file as a thread | |
scripts/md-to-thread.ts | Parse and preview thread structure |
Preferences (EXTEND.md)
Check these paths in order; first hit wins:
| Path | Scope | |
|---|---|---|
.peng-skills/peng-post-to-x-thread/EXTEND.md | Project | |
${XDG_CONFIG_HOME:-$HOME/.config}/peng-skills/peng-post-to-x-thread/EXTEND.md | XDG | |
$HOME/.peng-skills/peng-post-to-x-thread/EXTEND.md | User home |
Found -> read, parse, apply. Not found -> use defaults.
Supported keys:
| Key | Default | Description | |
|---|---|---|---|
default_delay_ms | 2000 | Delay between tweets (ms) | |
auto_submit | false | true = post automatically; false = preview first tweet | |
default_profile | (auto) | Chrome profile directory |
Value priority: CLI args -> frontmatter -> EXTEND.md -> skill defaults.
Prerequisites
- Google Chrome or Chromium installed
bunruntime (brew install oven-sh/bun/bun)- Chrome must be closed before running (the script launches Chrome with your profile)
Markdown Format
Use --- on its own line to separate tweets. Use  for images.
See references/thread-format.md for full spec.
Preview Thread Structure
Before posting, preview how the markdown will be split:
Output shows each tweet's text, character count, and image count.
Post a Thread
Preview mode (default)
Opens Chrome, fills the first tweet only. You review and can manually submit. Remaining tweets are not posted.
Auto-post full thread
Posts all tweets in sequence. Each reply chains to the previous tweet.
With options
Parameters
| Parameter | Description | ||
|---|---|---|---|
<file.md> | Markdown file (required) | ||
--submit | Post all tweets (default: preview first only) | ||
--delay <ms> | Delay between tweets (default: frontmatter or 2000) | ||
| `--profile <dir\ | mode>` | local (default, your Chrome profile), isolated, or a custom directory path | |
--chrome <path> | Chrome executable path |
Workflow
Troubleshooting
| Issue | Fix | |
|---|---|---|
Chrome debug port not ready | Kill stale Chrome: pkill -f "Chrome.*remote-debugging-port" | |
Editor not found | Log in to X manually in the browser window | |
Reply button not found | Tweet may not have loaded. Increase timeout or retry | |
| Tweet over 280 chars | Split the tweet in your markdown file | |
| Images not pasting | Run the pre-flight check (see below) | |
bun not found | brew install oven-sh/bun/bun or npm install -g bun |
Pre-flight Check (Optional)
Before first use, verify the environment:
Checks: Chrome, profile, bun, Accessibility (macOS), clipboard, paste keystroke.
Notes
- Default uses your local Chrome profile (already logged in to X). Close Chrome before running.
- Use
--profile isolatedif you want to run without closing Chrome (requires manual X login on first use) - All scripts only fill content into the browser; user reviews before posting
- Threads with 5+ tweets: consider
--delay 3000or higher to avoid rate limits - Cross-platform: macOS, Linux, Windows
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpeng-post-to-x-thread/SKILL.md
Popularity
- 7-day trend score
- 0
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/mugpeng/oh-my-skills-diy/peng-post-to-x-thread)