x-twitter

x-twitter is a skill for Claude Code, Codex from agentproto/ts. It costs 70 tokens per session (1,382 once invoked), scanned A, original, Apache-2.0.

A skill for reading X, formerly called Twitter, through an authenticated browser session and its internal data interfaces. It supports inspecting profiles, posts, timelines, searches, likes, reposts, direct messages, and relationship data as permitted by the account.

In plain words
What is it for?
Use it to inspect an account, find posts, search X, see who liked or reposted content, review connections, or build a graph of people and posts.
Why use it?
It helps collect information from X when ordinary browsing or a public interface does not expose the needed account data. Some lists or protected content may remain unavailable.

Skill for Claude CodeCodex

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

Good fit Use it to inspect an account, find posts, search X, see who liked or reposted content, review connections, or build a graph of people and posts.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/x-twitter"><img src="https://agentmods.dev/badge/skills/agentproto/ts/x-twitter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,382 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00070 $0.01382
Opus 5.5 $0.00028 $0.00553
Sonnet 5.5 $0.00014 $0.00276
Haiku 4.5 $0.00007 $0.00138

Measured 1mo ago against content hash 01cb4b302a49, 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 scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const r = await fetch(URL, {
packages/skill-pack-bureau/src/skills/x-twitter/SKILL.md · 117 lines

How it starts

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

X / Twitter — recon plan

✅ SHIPPED on the Camofox stealth session (X flags CDP-Chromium → use Camofox, not the local-browser chain). Helpers:

  • scripts/lib/camofox.ts (createCamofox) — Camofox-service REST client (tabs/navigate/click/type/evaluate + fetchInPage). baseUrl via CAMOFOX_URL (⚠️ use 127.0.0.1, not localhost — node/undici picks IPv6 ::1 and fails).
  • X adapter — SOCIAL_PLATFORMS.x in @agstudio/browser-social (sites/x/adapter.ts): profile · authored · engagement-given/received · connections, as a SocialSourcePort. queryIds read live from X's JS bundle (drift-proof); features flags self-heal on 400s. The capture recipe lives in the registry, not a script-local helper.
  • Graph ingest: scripts/profile.ts x <handle> --graph-only [--depth quick] → registry capture → landFootprint graph sink (platform "x"): profile→SocialPerson, posts→AUTHORED, connections→FOLLOWS. Validated live: @romanbuildsaas → 73 records · 74 graph ops.
  • Login done via Camofox (cookie-banner dismissed via /evaluate JS, then username→password→Continue). ⚠️ Followers list often 404s for large/protected accounts; Favoriters/Retweeters load lazily → captureMore() after opening the likes/retweets modal. Gecko: no CDP, but /evaluate works (used for the API calls).

Legacy note: the local-browser cloned profile is NOT logged into X and X flags CDP anyway — the Camofox path above supersedes it.

Internal API: GraphQL at https://x.com/i/api/graphql/<queryId>/<OperationName> (+ some REST https://x.com/i/api/1.1/ and /2/). Same shape as Voyager: the web app calls its own GraphQL; we drive that in-page.

Auth (capture from any /i/api/graphql request header)

  • authorization: Bearer <web-app bearer> — a constant embedded in X's JS (same for all web users; long AAAA…). Capture once.
  • x-csrf-token: <ct0 cookie> — per-session; read from document.cookie (ct0).
  • cookies (auth_token, ct0) ride automatically (same-origin).
  • also: x-twitter-active-user: yes, x-twitter-auth-type: OAuth2Session, x-twitter-client-language: en.

Read the full file on GitHub · 117 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 First seen · 117 lines · 70 tokens per session scan A 01cb4b302a49

Subscribe to this mod's changes

x-twitter is a skill published in the GitHub repository agentproto/ts (10 stars, last pushed today), licensed Apache-2.0. It adds 70 tokens to every session and 1,382 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

demo-recorder

Use when the user wants a scripted screen-recording demo video of a web app, a narration script or text-to-speech voice-over for one, or a dubbed cut.

sammcj/agentic-coding · 39 tokens

playwright

Use when the task requires capturing or automating a real browser from the terminal.

openai/openai-agents-python · 19 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

browser-tools

Safety rules over the upstream agent-browser skill (scraping ethics, auth, request pacing, local URLs). URL policy is the Claude Code sandbox's job when the operator enables it. Use for browser automation.

yonatangross/orchestkit · 44 tokens

qa-screenshot

Screenshot a page (deploy preview or a dev server on localhost) in the sandbox's headless Chromium, look at it, and embed it in a task comment. Use to verify a visual change or record before/after evidence.

decocms/studio · 50 tokens

skill-creator-primer

You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill. Triggers include creating, editing, reviewing, or contributing to any part of an Agent Skill (description, frontmatter, body, references, scripts, trigger evals, conflicts, etc).

sammcj/agentic-coding · 74 tokens