content-repurposing
Content Repurposing
Browser scripts and MCP workflows for identifying top content and generating repurposed variations.
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Repurpose tweets (5 formats) | src/contentRepurposer.js |
x.com/USERNAME |
| Compose threads from ideas | src/threadComposer.js |
x.com/USERNAME |
| Content calendar analysis | src/contentCalendar.js |
x.com/USERNAME |
| Find top-performing content | src/tweetPerformance.js |
x.com/USERNAME |
| Optimize posting schedule | src/tweetScheduleOptimizer.js |
x.com/USERNAME |
Content Repurposer
File: src/contentRepurposer.js
The main repurposing engine. Scans your timeline, then converts any tweet into 5 content formats.
Controls
XActions.scan()-- Scrape tweets from current pageXActions.list()-- Show all scraped tweets with indicesXActions.toThread(i)-- Convert tweet to thread outlineXActions.toSummary(i)-- Condense to punchy summary variationsXActions.toStorm(i)-- Break into numbered tweet stormXActions.toBlog(i)-- Generate blog/article outline with SEO keywordsXActions.toQuoteTemplates(i)-- Create 3 quote-retweet variationsXActions.all(i)-- Run ALL 5 repurposing strategiesXActions.export()-- Download all repurposed content as JSON
Repurposing Formats
| Format | Best For | Output |
|---|---|---|
| Thread | Deep dives, tutorials | Hook + body parts + CTA |
| Summary | Time-sensitive repost | 3 punchy variations |
| Storm | Long content splitting | Numbered 1/N tweets |
| Blog | SEO content, articles | Title + sections + keywords |
| Quote Templates | Engagement farming | Agreement/personal/contrarian takes |
MCP Workflow
- Call
x_get_tweetswithlimit: 100for the target account - Call
x_get_profileto get follower count for rate calculation - Rank by engagement rate:
(likes + RTs + replies) / followers * 100 - For top 5, generate variations using the content repurposer patterns
Repurposing Pipeline
High-engagement tweet
-> toThread() = 5-10 tweet thread
-> toSummary() = 3 punchy rewrites
-> toStorm() = numbered tweet storm
-> toBlog() = article outline + SEO keywords
-> toQuoteTemplates() = 3 QT engagement variations
Strategy Guide
Weekly content repurposing routine
- Run
src/tweetPerformance.jsto identify top 5 tweets this week - Run
src/contentRepurposer.js->XActions.scan() - For each top tweet:
XActions.all(i)to generate all formats - Export with
XActions.export()for scheduling - Space repurposed content 3+ days from original
Maximizing a viral tweet
- When a tweet goes viral, immediately run
XActions.toThread(i)for a follow-up thread - Use
XActions.toQuoteTemplates(i)for engagement in replies - Later, use
XActions.toBlog(i)for a long-form article - Use
src/autoPlugReplies.jsto plug your offer on the viral tweet
Notes
- Content repurposer generates outlines and templates, not final polished content
- Blog outlines include SEO keyword suggestions
- All output exportable as JSON for external tools
- Works best on tweets with 50+ words (more content to repurpose)
More from nirholas/xactions
twitter-scraping
Scrapes X/Twitter data without API access using Puppeteer stealth and browser console scripts. Extracts profiles, followers, following lists, tweets, search results, hashtags, threads, media, bookmarks, notifications, DMs, likes, and viral tweets. Exports to JSON/CSV. Use when collecting, exporting, or analyzing Twitter data.
25direct-messages
Sends, manages, and automates direct messages on X/Twitter. Supports personalized bulk DMs with templates, conversation management, message request filtering, and DM export. The agent uses this skill when a user needs to send DMs, manage conversations, or automate direct messaging workflows.
10growth-automation
Automates X/Twitter growth via browser console scripts. Auto-likes tweets by keyword/user filters, auto-comments on target users, follows by keyword search or engagement, follows audiences of target accounts with rich filtering, trains the algorithm for niches, and runs combined growth suites. All require pasting core.js first. Use when automating Twitter growth, engagement, following, or audience building.
10engagement-interaction
Automates X/Twitter engagement actions — like, unlike, reply, bookmark, hide replies, and auto-like by keyword. Also bulk-unlikes all posts. Use when users want to automate likes, send replies, manage bookmarks on tweets, hide replies, or clear their entire likes history.
10follower-monitoring
Monitors X/Twitter follower changes using browser console scripts. Detects who unfollowed, tracks new followers with welcome messages, monitors any public account, runs continuous monitoring with alerts, tracks follower growth over time, and analyzes follower demographics. Use when tracking follower changes, detecting unfollowers, or monitoring Twitter accounts.
9grok-ai
Integrates with X/Twitter's Grok AI for chat, image generation, tweet analysis, and content creation. Automates Grok prompts, scrapes Grok responses, and uses Grok for content strategy. Requires X Premium+. Use when users want to use Grok AI for content generation, analysis, or chat automation on X.
8