x-account-actions

x-account-actions is a skill for Claude Code from nirholas/XActions. It costs 57 tokens per session (737 once invoked), scanned A, original, Apache-2.0.

An account-action skill for X, formerly called Twitter, that can prepare or carry out posts, replies, likes, follows, direct messages, and other account changes through XActions.

In plain words
What is it for?
Use it to publish or manage posts, interact with other accounts, send direct messages, update a profile, and review the available action budget.
Why use it?
It places account changes behind approval, daily limits, and optional dry runs, so an agent does not approve its own drafts or make unreviewed changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the xactions plugin — 2 skills, 1 MCP server shipped together

Good fit Use it to publish or manage posts, interact with other accounts, send direct messages, update a profile, and review the available action budget.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/xactions/x-account-actions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nirholas/XActions --skill x-account-actions
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code.

Or install xactions, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-account-actions

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/xactions/x-account-actions/github.svg)](https://agentmods.dev/skills/nirholas/xactions/x-account-actions)
Your own site
<a href="https://agentmods.dev/skills/nirholas/xactions/x-account-actions"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/x-account-actions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for x-account-actions

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/xactions/x-account-actions"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/x-account-actions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00737
Opus 5.5 $0.00023 $0.00295
Sonnet 5.5 $0.00011 $0.00147
Haiku 4.5 $0.00006 $0.00074

Measured 18d ago against content hash a173a18029b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x-account-actions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/xactions/skills/x-account-actions/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 44 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 44 lines · 57 tokens per session scan A a173a18029b5

Subscribe to this mod's changes

x-account-actions is a skill published in the GitHub repository nirholas/XActions (671 stars, last pushed 3d ago), licensed Apache-2.0. It adds 57 tokens to every session and 737 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

x-account-actions compared with skills from other repositories

x-account-actions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x-account-actionsnirholas/XActionsSkill6713d agoApache-2.0A57Claude Code
social-x-post-cardnexu-io/open-designSkill110ktodayApache-2.0A31Claude Code, Codex
card-twitternexu-io/open-designSkill110ktodayApache-2.0A15Claude Code, Codex
social-x-post-cardnexu-io/html-anythingSkill17kyesterdayApache-2.0A33Claude Code, Codex
twitter-clipublic-clis/twitter-cliSkill3.0k2d agoApache-2.0A43Claude Code, Codex
card-twitternexu-io/html-anythingSkill17kyesterdayApache-2.0A17Claude Code, Codex
x_intelmateaix/mateclawSkill1.2k2d agoApache-2.0A24Claude Code, Codex