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.

139 stars

Best use case

community-management is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using community-management should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/community-management/SKILL.md --create-dirs "https://raw.githubusercontent.com/nirholas/XActions/main/skills/community-management/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/community-management/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How community-management Compares

Feature / Agentcommunity-managementStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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:

1. **On communities list** — Finds all community links, navigates to first unprocessed one
2. **On community page** — Clicks "Joined" button → confirms Leave → marks as processed → navigates back
3. **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 execution
- `window.XActions.resume()` — Resume
- `window.XActions.abort()` — Stop and export progress

### Reset Progress

```javascript
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

1. Scrapes visible community cards from the suggestions page
2. Filters by keyword matching against community names and descriptions
3. Clicks "Join" on matching communities with delays between actions
4. 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

1. Navigate to `x.com/communities` to see all your communities
2. Paste `src/leaveAllCommunities.js` and let it run
3. If interrupted (tab close, navigation), re-paste the script — it resumes from sessionStorage
4. Verify completion by refreshing the communities page

### Joining niche communities for growth

1. Navigate to `x.com/i/communities/suggested`
2. Paste `src/joinCommunities.js`
3. Configure keywords matching your niche
4. The script joins matching communities and skips already-joined ones

### Community engagement strategy

1. Join 5-10 relevant communities in your niche
2. Use `src/engagementBooster.js` to engage with community members' content
3. Post valuable content in communities to build authority
4. Use `src/audienceDemographics.js` to understand community member demographics
5. 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

Related Skills

x-pro-management

139
from nirholas/XActions

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.

topic-management

139
from nirholas/XActions

Browse, follow, and unfollow X Topics. Manage your followed topics list and discover new ones by keyword. Use when users want to follow or unfollow topics on X, or manage their topic feed.

teams-management

139
from nirholas/XActions

Create and manage teams in XActions — invite members, assign roles, and collaborate on automation tasks. Use when users want to set up multi-user access or team-based account management.

profile-management

139
from nirholas/XActions

Updates X/Twitter profile information including bio, avatar, header image, display name, location, website, and QR code sharing. Use when updating profile fields, optimizing profile for growth, or sharing profile via QR code.

notifications-management

139
from nirholas/XActions

Manages X/Twitter notifications including filtering by type, bulk management, notification scraping, and automated notification handling. Use when users want to manage, filter, scrape, or process X notifications in bulk.

lists-management

139
from nirholas/XActions

Creates, populates, and exports X/Twitter lists from the browser console. Supports creating public or private lists, bulk-adding members by username, and exporting list members as JSON. Use when users want to create lists, add members to lists, or export list data on X.

crm-management

139
from nirholas/XActions

Manage a CRM (Contact Relationship Management) system for your X followers and contacts. Tag, segment, search, and sync follower data. Use when users want to manage relationships with their X audience at scale.

community-notes

139
from nirholas/XActions

View, write, rate, and browse Community Notes on X/Twitter posts. Use when users want to interact with Community Notes — reading fact-checks, contributing notes, or rating existing notes as helpful or not.

community-health-monitoring

139
from nirholas/XActions

Audits follower quality, engagement authenticity, unfollower patterns, and network efficiency to produce a community health score. Use when monitoring account health or detecting bot/spam followers.

bookmarks-management

139
from nirholas/XActions

Manages X/Twitter bookmarks — organize by category with auto-tagging, clear all bookmarks in bulk, and export/scrape bookmarks with full metadata. Supports keyword-based categorization, CSV and JSON export, keep-filters, and folder creation (Premium). Use when users want to export, organize, or clear their X bookmarks.

blocking-muting-management

139
from nirholas/XActions

Mass block, unblock, mute, unmute, and manage accounts on X/Twitter. Includes bot detection and blocking, keyword-based muting, muted word management, spam reporting, and follower removal via soft-block. Use when users want to block bots, mass block/unblock accounts, mute by keywords, manage muted words, or remove followers.

billing-management

139
from nirholas/XActions

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.