skills/algorithm-cultivation/SKILL.md
Trains an X/Twitter account's algorithmic feed to surface niche-relevant content and positions the account as a thought leader. Browser scripts for manual operation, Persona Engine for identity management, and 24/7 Algorithm Builder with LLM-powered engagement via Puppeteer. Use when a user wants to build their algorithm, cultivate their feed for a niche, grow a fresh account, become a thought leader, or run automated engagement with AI-generated content.
npx skillsauth add nirholas/xactions algorithm-cultivationInstall 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.
Train your X/Twitter algorithm for a specific niche. Three approaches:
| Goal | Solution |
|------|----------|
| Create a persona (CLI) | xactions persona create |
| Run 24/7 with LLM (CLI) | xactions persona run <id> |
| Check persona status | xactions persona status <id> |
| Browser console (with core.js) | src/automation/algorithmBuilder.js |
| Browser console (standalone) | scripts/thoughtLeaderCultivator.js |
| Browser console (algorithm trainer) | src/automation/algorithmTrainer.js |
| Persona Engine (Node.js module) | src/personaEngine.js |
| Algorithm Builder (Node.js module) | src/algorithmBuilder.js |
src/algorithmBuilder.js24/7 headless automation: Puppeteer + stealth + OpenRouter LLM.
import { startAlgorithmBuilder } from './algorithmBuilder.js';
await startAlgorithmBuilder({
personaId: 'persona_1234',
authToken: 'your_auth_token',
headless: true,
dryRun: false,
maxSessions: 0, // 0 = infinite
});
Requires OPENROUTER_API_KEY env var for LLM-generated comments and posts.
src/automation/algorithmTrainer.jsBrowser console script for manual training sessions. Requires src/automation/core.js pasted first.
stopTrainer() -- Stop trainingtrainerStatus() -- Current phase, actions taken, rate limitstrainerReset() -- Reset counters| Preset | Actions/hour | Daily cap | |--------|-------------|-----------| | chill | 10-15 | 100 | | normal | 20-30 | 300 | | active | 40-60 | 500 |
xactions persona create or configure algorithmTrainer manuallysrc/automation/algorithmTrainer.js on active intensitysrc/automation/smartUnfollow.jsOPENROUTER_API_KEY for AI-generated repliesxactions persona create -- configure niche, strategy, schedulexactions persona run <id> -- starts headless Puppeteer sessionxactions persona status <id>| Variable | Purpose |
|----------|---------|
| OPENROUTER_API_KEY | Required for LLM-generated comments and posts |
| XACTIONS_SESSION_COOKIE | X auth token (alternative to --token flag) |
Load these on demand for deeper context:
skills/algorithm-cultivation/references/persona-engine.mdskills/algorithm-cultivation/references/browser-scripts.mdskills/algorithm-cultivation/references/algorithm-internals.mddocs/research/algorithm-cultivation.mddocs/research/llm-powered-thought-leader.mdalgorithmBuilder.js and algorithmTrainer.js require pasting src/automation/core.js firstthoughtLeaderCultivator.js is standalone (no dependencies)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.
development
Enable and integrate x402 crypto payment protocol for XActions API access. Supports multi-chain, multi-token payments for pay-per-use API calls. Use when users want to pay for XActions operations with crypto or integrate x402 into their own agent/app.
tools
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.