agentleFS
nirholasnirholas/XActions/skills/community-management/SKILL.md

community-management

Skill648 starsChanged 9 months agoApache-2.0View on GitHub

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.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Recovery: If restricted, wait 12-24 hours before continuing

    line 82
  2. Distinctive:

    If interrupted (tab close, navigation), re-paste the script — it resumes from sessionStorage

    line 90
  3. Distinctive:

    Verify completion by refreshing the communities page

    line 91
  4. Very specific:

    Use src/engagementBooster.js to engage with community members' content

    line 103
  5. Very specific:

    Use src/audienceDemographics.js to understand community member demographics

    line 105
  6. Very specific:

    Leave inactive communities periodically with leaveAllCommunities.js

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Community Management

Browser console scripts for managing X/Twitter Communities — leaving, joining, and interacting.

Script Selection

GoalFileNavigate to
Leave ALL communitiessrc/leaveAllCommunities.jsx.com/communities
Join communities by topicsrc/joinCommunities.jsx.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

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

ElementSelectorNotes
Community linksa[href^="/i/communities/"]Links to individual communities
Joined buttonbutton[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 nava[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

ProblemSolution
Script navigates but doesn't click Leave"Joined" button selector may have changed — inspect the button
Script gets stuck on a community pageClick back manually, then re-run — sessionStorage tracks progress
"Joined" button not foundCommunity may use a different membership model
Progress lost between runssessionStorage clears on tab close — keep tab open during execution
Communities page is emptyYou may not have joined any communities yet
Script leaves communities you want to keepCurrently 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.