x-twitter-automation-guide

x-twitter-automation-guide is a skill for Claude Code, Codex from nirholas/three.ws. It costs 53 tokens per session (1,133 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.

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.

agentmods
npx agentmods add skills/nirholas/three.ws/x-twitter-automation-guide
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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,133 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00053 $0.01133
Opus 5 $0.00026 $0.00566
Sonnet 5 $0.00011 $0.00227
Haiku 4.5 $0.00005 $0.00113

Measured 2d ago against content hash ac4f7e70d33a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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 · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 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 TypeScript library for automating X (Twitter) actions. Features browser automation, thread posting, engagement monitoring, and DM management — with anti-detection and rate-limit-aware scheduling.

Features

Feature Description Rate Limit Aware
Post Tweets Single tweets and threads
Engagement Like, retweet, reply, bookmark
Search Advanced search with filters
Followers Follow, unfollow, list management
DMs Send and read direct messages
Analytics Tweet performance, follower growth
Scheduling Queue tweets for future posting
Scraping Extract tweets, profiles, threads

Quick Start

npm install xactions
import { XClient } from 'xactions';

const client = new XClient({
  // Cookie-based auth (no API keys needed)
  cookies: process.env.X_COOKIES,
  // OR API-based auth
  apiKey: process.env.X_API_KEY,
  apiSecret: process.env.X_API_SECRET,
  accessToken: process.env.X_ACCESS_TOKEN,
  accessSecret: process.env.X_ACCESS_SECRET,
});

Posting

Single Tweet

await client.tweet('Just minted my first ERC-8004 agent on @SperaxOfficial! 🤖');

Thread

await client.thread([
  'Thread: Understanding Sperax USDs auto-yield 🧵',
  '1/ USDs is a stablecoin that earns yield automatically just by holding it in your wallet',
  '2/ The yield comes from deploying collateral into battle-tested DeFi protocols',
  '3/ Current APY: ~7% — no staking, no locking, no claiming required',
  '4/ Available on Arbitrum. Learn more: https://app.sperax.io'
]);

With Media

await client.tweet('Check out this chart! 📈', {
  media: ['./chart.png'],
  altText: 'SPA price chart showing 50% gain this month'
});

Search & Scraping

Advanced Search

const tweets = await client.search({
  query: 'sperax OR USDs OR $SPA',
  filter: 'latest',
  minLikes: 5,
  minReplies: 2,
  lang: 'en',
  since: '2024-01-01',
  limit: 100
});

Read the full file on GitHub · 175 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. 2d 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 (111 stars, last pushed today), licensed Apache-2.0. It adds 53 tokens to every session and 1,133 once invoked, about $0.0003 per session on Opus 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.