x-twitter-automation-guide

x-twitter-automation-guide is a skill for Claude Code, Codex from nirholas/three.ws. It costs 79 tokens per session (1,230 once invoked), scanned A, original, Apache-2.0.

A TypeScript library for automating actions on X, formerly called Twitter, through browser automation or API access. It handles posts, engagement, search, follower lists, direct messages, analytics, scraping, and scheduling.

In plain words
What is it for?
Use it to publish posts and threads, like or reply, manage followers, send messages, search and collect posts, track performance, and schedule content.
Why use it?
Managing many X actions manually is repetitive, while automation must account for rate limits and account safety. The library provides workflows for these recurring tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to publish posts and threads, like or reply, manage followers, send messages, search and collect posts, track performance, and schedule content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/three.ws/x-twitter-automation-guide
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/three.ws --skill x-twitter-automation-guide
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

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-twitter-automation-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/x-twitter-automation-guide/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/x-twitter-automation-guide)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/x-twitter-automation-guide"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/x-twitter-automation-guide/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-twitter-automation-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/x-twitter-automation-guide"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/x-twitter-automation-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,230 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00079 $0.01230
Opus 5.5 $0.00032 $0.00492
Sonnet 5.5 $0.00016 $0.00246
Haiku 4.5 $0.00008 $0.00123

Measured 1mo ago against content hash 398bb7a46bc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x-twitter-automation-guide 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 1mo 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.

data/skills/development/x-twitter-automation-guide/SKILL.md · 107 lines

How it starts

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

X/Twitter Automation Guide (XActions)

XActions is a JavaScript (ES modules, Node) toolkit for reading and acting on X without the paid X API. It ships as a CLI, a Node.js library with TypeScript types, an MCP server for AI agents, copy-paste browser console scripts, and a Chrome/Edge extension. License: Apache-2.0. Package: xactions on npm. Site: xactions.app.

Two access tiers

X splits its internal API in two, and this decides what needs a login.

Tier Covers Login
Guest Public profiles, public user timelines None
Session Search, followers, following, likes, bookmarks, DMs, home timeline, every write Required

Try it with no account

npx xactions profile nasa
npx xactions tweets nasa --limit 100 --output nasa.csv

Public reads go straight to X's internal GraphQL API over plain HTTP: no browser, no Chromium download.

Log in

npx xactions login                  # guided
npx xactions login --from-browser   # read x.com cookies from Chrome, Brave, Edge, Arc, Firefox
npx xactions login --cookies-file cookies.txt   # Netscape, Cookie-Editor JSON, Playwright storageState

Cookies are saved to ~/.xactions/cookies.json. Keep both auth_token and ct0: auth_token proves identity, ct0 is the CSRF token every write needs. Treat them like a password and never commit them.

Node.js client

import { Scraper, SearchMode } from 'xactions';

const scraper = new Scraper();
await scraper.loadCookies(`${process.env.HOME}/.xactions/cookies.json`);

const profile = await scraper.getProfile('nasa');
console.log(profile.followersCount, profile.bio);

for await (const tweet of scraper.searchTweets('open source AI', 50, SearchMode.Latest)) {
  console.log(tweet.text);
}

The client exposes getProfile, getTweet, getTweets, getTweetsAndReplies, getLikedTweets, searchTweets, searchProfiles, getFollowers, getFollowing, getTrends, list and DM readers, and the write methods sendTweet, sendQuoteTweet, deleteTweet, likeTweet, retweet, followUser, unfollowUser, sendDm. List readers are async iterators. A separate Puppeteer scraper set (scrapeProfile, scrapeFollowers, scrapeTweets, searchTweets) is available from xactions/scrapers.

Read the full file on GitHub · 107 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. 1mo ago Changed · -68 lines · +26 tokens per session 398bb7a46bc4
  2. 2mo ago First seen · 175 lines · 53 tokens per session scan A ac4f7e70d33a

Subscribe to this mod's changes

x-twitter-automation-guide is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 79 tokens to every session and 1,230 once invoked, about $0.0003 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-09-03.

Related

x-twitter-automation-guide compared with skills from other repositories

x-twitter-automation-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x-twitter-automation-guidenirholas/three.wsSkill287yesterdayApache-2.0A79Claude Code, Codex
agent-browserEliasOulkadi/shokuninSkill1121mo agoMITA0Claude Code
flutter-mcp-automation-chainArenukvern/mcp_flutterSkill4013d agoMITC176Claude Code, Codex
browser-automationmozilla/firefox-mcpSkill629todaynoneA55Claude Code
webmcpberkayoztunc/orquestraSkill2624d agoMITA0Claude Code, Codex
figranium-browser-automationfigranium/figranium-mcpSkill7yesterdayApache-2.0A47Claude Code, Codex
archivebox-api-operationsKnuckles-Team/archivebox-apiSkill12d agoMITA59Codex