Skip to content
Automation
Skill

/x-account-actions

Authenticate XActions and run X/Twitter write actions (post, reply, like, follow, unfollow non-followers, DMs) safely through the approval gate, daily caps and dry runs. Use when the user asks to act on their own X account.

From plugin
xactions
65852 skills1 MCP

Claude Code

$ npx -y skills add nirholas/XActions --skill x-account-actions --agent claude-code

SKILL.md

x-account-actions.SKILL.md
name: x-account-actions
description: Authenticate XActions and run X/Twitter write actions (post, reply, like, follow, unfollow non-followers, DMs) safely through the approval gate, daily caps and dry runs. Use when the user asks to act on their own X account.

Acting on an X account with XActions

Write tools change a real account, so this plugin starts the server with `--require-approval`. In that mode every write tool (`x_post_tweet`, `x_post_thread`, `x_reply`, `x_quote_tweet`, `x_like`, `x_retweet`, `x_follow`, `x_unfollow`, `x_unfollow_non_followers`, `x_send_dm`, `x_delete_tweet`, `x_bookmark`, `x_clear_bookmarks`, `x_update_profile`, and others) is saved as a draft and not executed. The agent cannot approve its own drafts: `x_approve_draft` is hidden and returns a message telling the user to run a terminal command.

Authenticate (the user does this)

The server reads the X `auth_token` cookie from `XACTIONS_SESSION_COOKIE`, or from a saved session. Never ask the user to paste a cookie into chat and never write it into a file. Either have them export it in their own shell before starting Claude Code:

export XACTIONS_SESSION_COOKIE=<auth_token value>

or run `npx -y -p xactions xactions login` (options: `--cookies-file <path>`, `--from-browser [browser]`). `XACTIONS_ACCOUNT` names the active saved account.

Workflow

1. Call `x_action_budget` first. It reports the cap, usage in the rolling 24 hours and remaining slots for post, reply, like, repost, follow, unfollow, dm, block, mute and delete. Caps persist across restarts; override with `XACTIONS_ACTION_CAPS` (JSON, for example `{"follow":600}`) or `~/.xactions/action-caps.json`. 2. Prefer previews. `x_unfollow_non_followers` takes `{ username, maxUnfollows, dryRun }`; call it with `dryRun: true` and show the user the list before any real run. 3. Call the write tool. In approval mode the result is `held: true` with a `draftId`. Show the user the tool and arguments, then tell them to review and run:

npx -y -p xactions xactions drafts list
npx -y -p xactions xactions drafts show <id>
npx -y -p xactions xactions drafts approve <id>

`xactions drafts discard <id>` drops one. The agent may inspect drafts with `x_list_drafts` and `x_draft_status`, or drop one with `x_discard_draft`.

Examples of tool arguments

  • `x_post_tweet` `{ text }` (max 280 characters).
  • `x_follow` `{ username }`, `x_unfollow` `{ username }`.

Rules

  • Only act on the account the user owns, and only on what they asked for. No mass follow, like or reply campaigns on your own initiative.
  • Automation can violate X's terms and get an account limited; say so before bulk actions.
  • To narrow the tool surface, set `XACTIONS_MCP_TOOLS` (for example `read,analytics`) or `XACTIONS_MCP_EXCLUDE` to group names or tool names in your own shell.
Read more
@nirholas
Ships withxactions

X/Twitter automation toolkit: scrapers, CLI and an MCP server with approval-gated write actions, no paid API.

65852 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
658
Star history of nirholas/XActions on GitHub, a chart by star-history.com

Other skills on xactions.

x-data-scraping

x-data-scraping

Scrape X/Twitter profiles, followers, following, tweets, threads and search results with the XActions MCP tools or the xactions…

@nirholas@nirholasInstall Skill
a2a-multi-agent

a2a-multi-agent

Runs XActions as an A2A (Agent-to-Agent) compatible agent that serves an Agent Card, accepts JSON-RPC tasks, bridges them onto…

@nirholas@nirholasInstall Skill
account-backup

account-backup

Export and backup your X/Twitter account data — tweets, likes, bookmarks, followers, and following — as downloadable JSON. Also…

@nirholas@nirholasInstall Skill
account-tools

account-tools

Miscellaneous account utilities — view join date, login history, connected accounts, appeal suspension, QR code sharing,…

@nirholas@nirholasInstall Skill
algorithm-cultivation

algorithm-cultivation

Trains an X/Twitter account's algorithmic feed to surface niche-relevant content and positions the account as a thought leader.…

@nirholas@nirholasInstall Skill
analytics-insights

analytics-insights

Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral…

@nirholas@nirholasInstall Skill

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about x-account-actions.

Which coding agents can use x-account-actions?
x-account-actions installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.