skills/community-management/SKILL.md
Manages X/Twitter community memberships. Bulk-leave all communities, join communities by topic, and manage community interactions. Use when leaving all communities, joining niche communities, or managing community presence.
npx skillsauth add RanaPriyansh/XActions community-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Browser console scripts for managing X/Twitter Communities — leaving, joining, and interacting.
| Goal | File | Navigate to |
|------|------|-------------|
| Leave ALL communities | src/leaveAllCommunities.js | x.com/communities |
| Join communities by topic | src/joinCommunities.js | x.com/i/communities/suggested |
File: src/leaveAllCommunities.js
Paste into DevTools on x.com/communities.
The script navigates between pages to process each community:
Uses sessionStorage key xactions_left_communities (JSON array of community IDs) to survive page navigations. Re-running resumes where it stopped.
window.XActions.pause() — Pause executionwindow.XActions.resume() — Resumewindow.XActions.abort() — Stop and export progresssessionStorage.removeItem('xactions_left_communities')
Note: sessionStorage clears automatically when the browser tab closes.
File: src/joinCommunities.js
Navigate to community discovery pages and paste the script to auto-join communities matching your interests.
| Element | Selector | Notes |
|---------|----------|-------|
| Community links | a[href^="/i/communities/"] | Links to individual communities |
| Joined button | button[aria-label^="Joined"] | Shows "Joined" status |
| Join button | [data-testid="TopicFollow"] | Join community button |
| Community name | [data-testid="communityName"] | Community title text |
| Confirmation dialog | [data-testid="confirmationSheetConfirm"] | Leave confirmation |
| Back button | [data-testid="app-bar-back"] | Navigate back |
| Communities nav | a[aria-label="Communities"] | Main nav link |
x.com/communities to see all your communitiessrc/leaveAllCommunities.js and let it runx.com/i/communities/suggestedsrc/joinCommunities.jssrc/engagementBooster.js to engage with community members' contentsrc/audienceDemographics.js to understand community member demographicsleaveAllCommunities.js| Problem | Solution |
|---------|----------|
| Script navigates but doesn't click Leave | "Joined" button selector may have changed — inspect the button |
| Script gets stuck on a community page | Click back manually, then re-run — sessionStorage tracks progress |
| "Joined" button not found | Community may use a different membership model |
| Progress lost between runs | sessionStorage clears on tab close — keep tab open during execution |
| Communities page is empty | You may not have joined any communities yet |
| Script leaves communities you want to keep | Currently no whitelist — abort early and manually rejoin |
tools
Free MCP server providing 68+ tools for AI agents to automate X/Twitter. Scrapes profiles, followers, tweets. Posts, follows, likes, retweets, downloads videos, analyzes sentiment, monitors brands, manages DMs, runs workflows, and more. Uses local Puppeteer -- no API keys or payments required. Compatible with Claude Desktop, Cursor, Windsurf, VS Code. Use when setting up or using AI agent Twitter automation via MCP.
tools
Command-line interface for scraping X/Twitter data, managing MCP server config, and running automation. Scrapes profiles, followers, tweets, search results, and more from terminal. Outputs text, JSON, or CSV. Uses Puppeteer stealth. Use when running Twitter operations from command line or automated pipelines.
content-media
Researches trending topics and competitor threads to generate high-engagement thread content with optimized hooks, value ladders, and calls to action. Use when creating threads or planning viral content.
tools
Mass unfollow on X/Twitter via browser console scripts. Unfollows everyone, only non-followers, non-followers with username logging, smart time-based unfollow with whitelists, and follow/following ratio management. Use when cleaning up a following list, removing non-followers, bulk unfollowing accounts, or optimizing your follow ratio.