/analytics-insights
Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral detection, content calendar gaps, A/B testing, and engagement leaderboards. Browser console scripts for data-driven X optimization. Use when users want
$ npx -y skills add nirholas/XActions --skill analytics-insights --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/analytics-insights
Context preview
The summary Claude sees to decide when to auto-load this skill.
Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral detection, content calendar gaps, A/B testing, and engagement leaderboards. Browser console scripts for data-driven X optimization. Use when users want
SKILL.md
analytics-insights.SKILL.mdname: analytics-insights
description: Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral detection, content calendar gaps, A/B testing, and engagement leaderboards. Browser console scripts for data-driven X optimization. Use when users want insights about their X performance.
license: Apache-2.0
metadata:
author: nichxbt
version: "4.0"
Analytics & Insights
Browser console scripts for analyzing X/Twitter performance — no API key needed. All analysis runs in DevTools console.
Script Selection
| Goal | File | Navigate to | |------|------|-------------| | Engagement metrics | `src/engagementAnalytics.js` | `x.com/USERNAME` | | Best posting times | `src/bestTimeToPost.js` | `x.com/USERNAME` | | Hashtag analysis | `src/hashtagAnalytics.js` | `x.com/search?q=%23tag` | | Competitor comparison | `src/competitorAnalysis.js` | Any page | | Follower audit (fake/bot) | `src/auditFollowers.js` | `x.com/USERNAME/followers` | | Sentiment analysis | `src/sentimentAnalyzer.js` | Any timeline | | Tweet performance ranking | `src/tweetPerformance.js` | `x.com/USERNAME` | | Viral tweet detection | `src/viralTweetDetector.js` | `x.com/USERNAME` | | Posting schedule optimizer | `src/tweetScheduleOptimizer.js` | `x.com/USERNAME` | | Follower demographics | `src/audienceDemographics.js` | `x.com/USERNAME/followers` | | Follower growth tracking | `src/followerGrowthTracker.js` | `x.com/USERNAME/followers` | | Content calendar analysis | `src/contentCalendar.js` | `x.com/USERNAME` | | Engagement leaderboard | `src/engagementLeaderboard.js` | `x.com/USERNAME` | | Tweet A/B testing | `src/tweetABTester.js` | `x.com/USERNAME` | | Follow ratio management | `src/followRatioManager.js` | `x.com/USERNAME` | | Audience overlap analysis | `src/audienceOverlap.js` | `x.com/ACCOUNT/followers` | | Account health scoring | `src/accountHealthMonitor.js` | `x.com/USERNAME` | | Shadowban detection | `src/shadowbanChecker.js` | `x.com/USERNAME` |
Quick Start
1. Navigate to the required page on x.com 2. Open DevTools (F12) → Console 3. Paste the script → Enter 4. Results display in console + auto-export as JSON
Script Details
engagementAnalytics.js
Scrapes your timeline and calculates per-tweet engagement rates (likes + RTs + replies / views). Shows average, median, best/worst performers, and engagement trend over time.
sentimentAnalyzer.js
Lexicon-based sentiment analysis on any timeline. Classifies tweets as positive/negative/neutral. Shows sentiment distribution chart, most positive/negative tweets, and keyword frequency.
tweetPerformance.js
Side-by-side tweet comparison with multi-metric ranking. Sorts by likes, RTs, replies, views, or composite engagement rate. Identifies content patterns that drive performance.
viralTweetDetector.js
Multi-factor viral scoring: engagement velocity, like-to-RT ratio, reply depth, view multiplier. Flags tweets significantly exceeding your baseline. Useful for identifying what resonates.
tweetScheduleOptimizer.js
Analyzes your posting history to build a personalized optimal schedule. Generates heatmaps of engagement by day/hour. Recommends best slots based on YOUR audience's behavior.
audienceDemographics.js
Scrapes follower profiles and classifies by niche (tech, marketing, crypto, etc.), account size, bot likelihood, and verified status. Visual distribution charts.
engagementLeaderboard.js
Ranks users who engage most with your content. Identifies superfans (5+ interactions), regulars, and casual engagers. Exports VIP list for relationship building.
**Controls:** Auto-run on paste. `XActions.pause()` / `XActions.abort()` available.
tweetABTester.js
Create controlled tests between two tweet variations. Post both, track metrics over time, get statistical winner determination with percentage difference.
**Controls:** `XActions.createTest()`, `XActions.measure()`, `XActions.results()`
followRatioManager.js
Monitors follower/following ratio with letter grades (S→F). Generates 3 improvement paths (unfollow more, gain followers, combination). Tracks ratio history over time.
**Controls:** `XActions.track()`, `XActions.plan()`, `XActions.history()`
audienceOverlap.js
Compare follower lists between two accounts to find shared followers, unique audiences, and Jaccard similarity. Useful for collaboration decisions and competitor analysis.
**Controls:** `XActions.analyze('accountA', 'accountB')`
Strategy Guide
Weekly analytics routine
1. Run `src/tweetPerformance.js` — identify this week's top content 2. Run `src/tweetScheduleOptimizer.js` — verify you're posting at optimal times 3. Run `src/followRatioManager.js` → `XActions.track()` — log weekly ratio 4. Run `src/engagementLeaderboard.js` — identify top engagers to nurture
Diagnosing a growth stall
1. `src/accountHealthMonitor.js` — check overall account health score 2. `src/shadowbanChecker.js` — rule out shadowban 3. `src/audienceDemographics.js` — verify you're attracting the right audience 4. `src/viralTweetDetector.js` — check if you've had any breakout content recently 5. `src/competitorAnalysis.js` — compare your metrics to peers
Preparing for a content pivot
1. `src/sentimentAnalyzer.js` — understand current audience sentiment 2. `src/tweetPerformance.js` — identify what content types work 3. `src/audienceOverlap.js` — compare your audience with target niche leaders 4. `src/contentCalendar.js` — find posting gaps to fill
Notes
- All scripts auto-export results as downloadable JSON
- Accuracy improves with more data — increase `maxPosts` in CONFIG for deeper analysis
- Engagement rates: (likes + retweets + replies) / views
- Scripts only analyze visible browser data — increase scroll rounds for more data
- localStorage used for historical tracking (growth, A/B tests, ratio history)
Read more
name: analytics-insights description: Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral detection, content calendar gaps, A/B testing, and engagement leaderboards. Browser console scripts for data-driven X optimization. Use when users want insights about their X performance. license: Apache-2.0 metadata: author: nichxbt version: "4.0"
Analytics & Insights
Browser console scripts for analyzing X/Twitter performance — no API key needed. All analysis runs in DevTools console.
Script Selection
| Goal | File | Navigate to | |------|------|-------------| | Engagement metrics | `src/engagementAnalytics.js` | `x.com/USERNAME` | | Best posting times | `src/bestTimeToPost.js` | `x.com/USERNAME` | | Hashtag analysis | `src/hashtagAnalytics.js` | `x.com/search?q=%23tag` | | Competitor comparison | `src/competitorAnalysis.js` | Any page | | Follower audit (fake/bot) | `src/auditFollowers.js` | `x.com/USERNAME/followers` | | Sentiment analysis | `src/sentimentAnalyzer.js` | Any timeline | | Tweet performance ranking | `src/tweetPerformance.js` | `x.com/USERNAME` | | Viral tweet detection | `src/viralTweetDetector.js` | `x.com/USERNAME` | | Posting schedule optimizer | `src/tweetScheduleOptimizer.js` | `x.com/USERNAME` | | Follower demographics | `src/audienceDemographics.js` | `x.com/USERNAME/followers` | | Follower growth tracking | `src/followerGrowthTracker.js` | `x.com/USERNAME/followers` | | Content calendar analysis | `src/contentCalendar.js` | `x.com/USERNAME` | | Engagement leaderboard | `src/engagementLeaderboard.js` | `x.com/USERNAME` | | Tweet A/B testing | `src/tweetABTester.js` | `x.com/USERNAME` | | Follow ratio management | `src/followRatioManager.js` | `x.com/USERNAME` | | Audience overlap analysis | `src/audienceOverlap.js` | `x.com/ACCOUNT/followers` | | Account health scoring | `src/accountHealthMonitor.js` | `x.com/USERNAME` | | Shadowban detection | `src/shadowbanChecker.js` | `x.com/USERNAME` |
Quick Start
1. Navigate to the required page on x.com 2. Open DevTools (F12) → Console 3. Paste the script → Enter 4. Results display in console + auto-export as JSON
Script Details
engagementAnalytics.js
Scrapes your timeline and calculates per-tweet engagement rates (likes + RTs + replies / views). Shows average, median, best/worst performers, and engagement trend over time.
sentimentAnalyzer.js
Lexicon-based sentiment analysis on any timeline. Classifies tweets as positive/negative/neutral. Shows sentiment distribution chart, most positive/negative tweets, and keyword frequency.
tweetPerformance.js
Side-by-side tweet comparison with multi-metric ranking. Sorts by likes, RTs, replies, views, or composite engagement rate. Identifies content patterns that drive performance.
viralTweetDetector.js
Multi-factor viral scoring: engagement velocity, like-to-RT ratio, reply depth, view multiplier. Flags tweets significantly exceeding your baseline. Useful for identifying what resonates.
tweetScheduleOptimizer.js
Analyzes your posting history to build a personalized optimal schedule. Generates heatmaps of engagement by day/hour. Recommends best slots based on YOUR audience's behavior.
audienceDemographics.js
Scrapes follower profiles and classifies by niche (tech, marketing, crypto, etc.), account size, bot likelihood, and verified status. Visual distribution charts.
engagementLeaderboard.js
Ranks users who engage most with your content. Identifies superfans (5+ interactions), regulars, and casual engagers. Exports VIP list for relationship building.
**Controls:** Auto-run on paste. `XActions.pause()` / `XActions.abort()` available.
tweetABTester.js
Create controlled tests between two tweet variations. Post both, track metrics over time, get statistical winner determination with percentage difference.
**Controls:** `XActions.createTest()`, `XActions.measure()`, `XActions.results()`
followRatioManager.js
Monitors follower/following ratio with letter grades (S→F). Generates 3 improvement paths (unfollow more, gain followers, combination). Tracks ratio history over time.
**Controls:** `XActions.track()`, `XActions.plan()`, `XActions.history()`
audienceOverlap.js
Compare follower lists between two accounts to find shared followers, unique audiences, and Jaccard similarity. Useful for collaboration decisions and competitor analysis.
**Controls:** `XActions.analyze('accountA', 'accountB')`
Strategy Guide
Weekly analytics routine
1. Run `src/tweetPerformance.js` — identify this week's top content 2. Run `src/tweetScheduleOptimizer.js` — verify you're posting at optimal times 3. Run `src/followRatioManager.js` → `XActions.track()` — log weekly ratio 4. Run `src/engagementLeaderboard.js` — identify top engagers to nurture
Diagnosing a growth stall
1. `src/accountHealthMonitor.js` — check overall account health score 2. `src/shadowbanChecker.js` — rule out shadowban 3. `src/audienceDemographics.js` — verify you're attracting the right audience 4. `src/viralTweetDetector.js` — check if you've had any breakout content recently 5. `src/competitorAnalysis.js` — compare your metrics to peers
Preparing for a content pivot
1. `src/sentimentAnalyzer.js` — understand current audience sentiment 2. `src/tweetPerformance.js` — identify what content types work 3. `src/audienceOverlap.js` — compare your audience with target niche leaders 4. `src/contentCalendar.js` — find posting gaps to fill
Notes
- All scripts auto-export results as downloadable JSON
- Accuracy improves with more data — increase `maxPosts` in CONFIG for deeper analysis
- Engagement rates: (likes + retweets + replies) / views
- Scripts only analyze visible browser data — increase scroll rounds for more data
- localStorage used for historical tracking (growth, A/B tests, ratio history)
⚡ The Complete X/Twitter Automation Toolkit — Scrapers, MCP server for AI agents (Claude/GPT), CLI, browser scripts. No API fees. Open source. Unfollow people who don't follow back. Monitor real-time analytics. Auto follow, like, comment, scrape, without API. Follow Bot. Like bot. Grow your account automatically.
Repo: nirholas/XActions
Other skills on xactions.
- /a2a-multi-agent
Turn XActions into an A2A-compatible agent that can discover, communicate with, and delegate tasks to other AI agents using Google's Agent-to-Agent protocol.
Open skill - /account-backup
Export and backup your X/Twitter account data — tweets, likes, bookmarks, followers, and following — as downloadable JSON. Also triggers X's official data archive download. Use when users want to backup, export, or archive their X account data.
Open skill - /account-tools
Miscellaneous account utilities — view join date, login history, connected accounts, appeal suspension, QR code sharing, share/embed tweets, upload contacts, and calculate account age. Use when users need account info tools not covered by other skills.
Open skill - /algorithm-cultivation
Trains an X/Twitter account's algorithmic feed to surface niche-relevant content and positions the account as a thought leader. Browser scripts for manual operation, Persona Engine for identity management, and 24/7 Algorithm Builder with LLM-powered engagement via Puppeteer. Use
Open skill - /articles-longform
Compose, preview, publish, and manage long-form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking. Use when users want to write, publish, manage, or analyze X Articles.
Open skill - /billing-management
Manage XActions subscriptions and billing — view plans, start a Stripe checkout, open the billing portal, or cancel a subscription. Use when users want to upgrade, downgrade, or manage their XActions subscription.
Open skill

