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.
npx skills add agentproto/ts --skill x-twittergit clone --depth 1 https://github.com/agentproto/tsWrote 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.
[](https://agentmods.dev/skills/agentproto/ts/x-twitter)<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.
<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>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.
| Model | Per session | Once 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 |
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, { 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 viaCAMOFOX_URL(⚠️ use127.0.0.1, notlocalhost— node/undici picks IPv6 ::1 and fails).- X adapter —
SOCIAL_PLATFORMS.xin@agstudio/browser-social(sites/x/adapter.ts): profile · authored · engagement-given/received · connections, as aSocialSourcePort. queryIds read live from X's JS bundle (drift-proof);featuresflags 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 →landFootprintgraph 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
/evaluateJS, 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/evaluateworks (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; longAAAA…). Capture once.x-csrf-token: <ct0 cookie>— per-session; read fromdocument.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.
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.
- 1mo ago First seen · 117 lines · 70 tokens per session scan A 01cb4b302a49
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.
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.
playwright
Use when the task requires capturing or automating a real browser from the terminal.
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.
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.
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.
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).