Agent skill
community-management
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.
Install this agent skill to your Project
npx add-skill https://github.com/nirholas/XActions/tree/main/skills/community-management
Metadata
Additional technical details for this skill
- author
- nichxbt
- version
- 3.0
SKILL.md
Community Management
Browser console scripts for managing X/Twitter Communities — leaving, joining, and interacting.
Script Selection
| 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 |
Leave All Communities
File: src/leaveAllCommunities.js
Paste into DevTools on x.com/communities.
How It Works
The script navigates between pages to process each community:
- On communities list — Finds all community links, navigates to first unprocessed one
- On community page — Clicks "Joined" button → confirms Leave → marks as processed → navigates back
- On completion — Displays final count and exports results as JSON
Uses sessionStorage key xactions_left_communities (JSON array of community IDs) to survive page navigations. Re-running resumes where it stopped.
Controls
window.XActions.pause()— Pause executionwindow.XActions.resume()— Resumewindow.XActions.abort()— Stop and export progress
Reset Progress
sessionStorage.removeItem('xactions_left_communities')
Note: sessionStorage clears automatically when the browser tab closes.
Join Communities
File: src/joinCommunities.js
Navigate to community discovery pages and paste the script to auto-join communities matching your interests.
How It Works
- Scrapes visible community cards from the suggestions page
- Filters by keyword matching against community names and descriptions
- Clicks "Join" on matching communities with delays between actions
- Tracks joined communities to avoid duplicates
DOM Selectors
| 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 |
Rate Limiting & Safety
- Leave delay: 2–3 seconds between leave actions (includes navigation time)
- Join delay: 1–2 seconds between joins
- Rate limit detection: Checks for toast warnings after each action
- X limits: Communities have daily join limits (~20-30/day)
- Recovery: If restricted, wait 12-24 hours before continuing
Strategy Guide
Cleaning up community memberships
- Navigate to
x.com/communitiesto see all your communities - Paste
src/leaveAllCommunities.jsand let it run - If interrupted (tab close, navigation), re-paste the script — it resumes from sessionStorage
- Verify completion by refreshing the communities page
Joining niche communities for growth
- Navigate to
x.com/i/communities/suggested - Paste
src/joinCommunities.js - Configure keywords matching your niche
- The script joins matching communities and skips already-joined ones
Community engagement strategy
- Join 5-10 relevant communities in your niche
- Use
src/engagementBooster.jsto engage with community members' content - Post valuable content in communities to build authority
- Use
src/audienceDemographics.jsto understand community member demographics - Leave inactive communities periodically with
leaveAllCommunities.js
Troubleshooting
| 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 |
Related Skills
- growth-automation — Join communities to grow your audience
- engagement-interaction — Engage with community content
- content-posting — Post in communities
- analytics-insights — Track community engagement metrics
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
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.
x-pro-management
Navigate to X Pro (TweetDeck), set up monitoring columns, and manage multi-column view. Use when users want to use X Pro / TweetDeck features or set up a multi-column dashboard.
business-ads
Manages X/Twitter business intelligence including brand monitoring, audience insights, competitor analysis, tweet A/B testing, auto-plug replies for promotion, and content performance optimization. Use when users want brand monitoring, audience analysis, competitor comparison, or promotion optimization on X.
engagement-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.
unfollow-management
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.
follower-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.
Didn't find tool you were looking for?