Tutorial: Community Management, Lists & Spaces with Claude
You are my X/Twitter community management expert. I want to use XActions to manage my X communities, organize my following with lists, and discover Twitter Spaces. Help me build and curate my network.
Context
I'm using XActions (https://github.com/nirholas/XActions), an open-source X/Twitter toolkit with community, list, and Spaces management features — via MCP tools and browser console scripts.
What I Need You To Do
Part 1: Leave All Communities
If I've joined too many communities and want to clean up:
The problem: X communities clutter notifications and feed
Using
src/leaveAllCommunities.jsbrowser script:- Navigate to your Communities page (
x.com/communities) - Paste the script in DevTools console
- How it works:
- Finds all community links on the page
- For each community, navigates to it
- Finds the "Joined" button (
button[aria-label^="Joined"]) - Clicks to leave
- Confirms the action
- Uses sessionStorage to track which communities were processed
- Avoids infinite loops with the tracking system
- The script handles page navigation automatically
- Navigate to your Communities page (
Selective community leaving:
- Instead of leaving ALL, modify the script to keep some
- Review your communities list first
- Identify which ones provide value and which are noise
Part 2: Join New Communities
Using src/joinCommunities.js:
Find relevant communities:
- Search for communities in your niche
- Check member count and activity level
- Look for communities run by people you respect
How the join script works:
- Navigate to community search or explore
- Script finds community cards and join buttons
- Clicks join with appropriate delays
- Tracks which communities you joined
Community strategy:
- Join 5-10 active, relevant communities
- Engage regularly (not just post and leave)
- Build relationships within the community
- Share value, not just self-promotion
Part 3: List Management with MCP
X Lists are the most underrated feature for organizing your feed. Help me master them:
View my lists using
x_get_lists:"Show me all my X lists"Get list members using
x_get_list_members:"Show me the members of this list: [list URL]"List management with
src/listManager.jsbrowser script:- Create new lists
- Add/remove members
- Organize by category
Recommended list structure:
Must-Have Lists:
- 🏆 VIPs — Your most important connections (10-20 people)
- 📰 News Sources — Media accounts and journalists
- 🧠 Thought Leaders — Influencers in your niche
- 🤝 Mutuals — People who engage with you regularly
- 👀 Competitors — Accounts to monitor
- 🌱 Prospects — Potential connections/clients
Niche Lists:
- 💻 Tech — Developer/tech accounts
- 📈 Business — Entrepreneurs and founders
- 🎨 Creative — Designers, artists, writers
- 📚 Learning — Educational content creators
How to use lists effectively:
- Check VIP list daily (never miss their posts)
- Check competitor list weekly
- Use lists as your "filtered feed" separate from the algorithm
- Private lists for sensitive categorization (competitors, prospects)
Part 4: List Manager Script
Walk me through src/listManager.js in detail:
Navigate to Lists (x.com/lists)
Available actions:
- Create a new list
- Add members to existing lists
- Remove members
- Delete lists
- Export list members
Bulk operations:
- Add multiple users to a list at once
- Move users between lists
- Merge lists
Part 5: Spaces Discovery & Management
Use Spaces tools to find live conversations:
Find live Spaces using
x_get_spaces:"Show me live X Spaces about AI" "What Spaces are happening right now?" "Find scheduled Spaces about crypto for this week"Parameters:
filter: live, scheduled, or alltopic: Topic filterlimit: Maximum Spaces to return
Scrape Space details using
x_scrape_space:"Get details about this Space: [Space URL]"Returns:
- Title and description
- Host information
- Speaker list
- Listener count
- Duration
- Topics/tags
Using
src/scrapeSpaces.jsbrowser script:- Scrape all visible Spaces from the Spaces tab
- Extract metadata for analysis
- Find Spaces in your niche
Spaces strategy for growth:
- Join Spaces in your niche as a listener
- Request to speak when you have valuable input
- Host your own Spaces (builds authority)
- Network with other speakers
- Promote upcoming Spaces to your followers
Part 6: Spaces Manager (Puppeteer)
For programmatic usage, the spacesManager module:
import { spacesManager } from 'xactions';
// Available functions:
// - Find live and scheduled Spaces
// - Get Space details and speaker info
// - Join Spaces programmatically
Walk me through integrating Spaces discovery into a weekly routine.
Part 7: Community + List + Spaces Strategy
Help me build a complete community management workflow:
Daily (10 min):
- Check VIP list — engage with their latest posts
- Check notifications for community mentions
- Join one relevant Space as a listener
Weekly (20 min):
- Review competitor list — what are they posting?
- Update lists — add new interesting accounts, remove inactive ones
- Host or co-host one Space in your niche
- Post in 2-3 communities you're active in
Monthly (30 min):
- Community audit — leave dead communities, join active new ones
- List cleanup — reorganize lists based on changing interests
- Review Spaces activity — which topics/hosts draw the most listeners?
- Network with 5 new people from communities/Spaces
Part 8: Using Notifications Effectively
Use x_get_notifications to stay on top of community engagement:
Check notifications:
"Get my notifications from the last 24 hours, filtered by mentions"Parameters:
limit: Maximum notificationsfilter: all, mentions, likes, follows
Notification analysis:
- Who's engaging with you most?
- Which community posts get engagement?
- Are there conversations worth jumping into?
Using
src/notificationManager.js(Puppeteer module) orscripts/manageNotifications.js:- Scrape and categorize notifications
- Mark as read
- Take action on specific notifications
My Community Goals
(Replace before pasting)
- How many communities am I in? ROUGH_NUMBER
- Communities I want to stay in: community1, community2
- My niche for new communities: YOUR_NICHE
- Current number of lists: NUMBER
- Spaces topics I'm interested in: topic1, topic2
Start with Part 1 — help me clean up my communities and set up an organized system.
⚡ Explore XActions
100% free and open-source. No API keys, no fees, no signup.
Browse All Documentation