account-backup

account-backup is a skill for Claude Code, Codex from nirholas/XActions. It costs 54 tokens per session (726 once invoked), scanned A, original, Apache-2.0.

A collection of browser-console scripts for exporting X/Twitter account information as JSON, such as tweets, likes, bookmarks, followers, and accounts followed. It also includes a script for requesting X’s official data archive.

In plain words
What is it for?
Use it to back up information from your own X/Twitter profile or start and monitor an official data-archive download.
Why use it?
It provides a way to back up account data without an API key and separates profile exports from the official archive request.

Skill for Claude CodeCodex

Part of the xactions plugin — 50 skills, 1 command, 8 agents, 1 MCP server shipped together

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/xactions/account-backup
Any agent
npx skills add nirholas/XActions --skill account-backup
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code, Codex.

Or install xactions, the plugin that ships this one along with the rest of its 50 skills, 1 command, 8 agents, 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 account-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/xactions/account-backup.svg)](https://agentmods.dev/skills/nirholas/xactions/account-backup)
Your own site
<a href="https://agentmods.dev/skills/nirholas/xactions/account-backup"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/account-backup.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 726 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 $0.00054 $0.00726
Opus 5 $0.00027 $0.00363
Sonnet 5 $0.00011 $0.00145
Haiku 4.5 $0.00005 $0.00073

Measured 5d ago against content hash 54000990e34f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

account-backup 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 5d 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.

skills/account-backup/SKILL.md · 89 lines

How it starts

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

Account Backup & Data Export

Browser console scripts for exporting your X/Twitter account data without an API key.

Script Selection

Goal File Navigate to
Backup profile, tweets, likes, bookmarks, followers/following src/backupAccount.js x.com/USERNAME
Trigger X's official data archive download src/downloadAccountData.js x.com/settings/download_your_data
Export data via API api/routes/portability.js API endpoint /api/portability/export

Quick Start

Browser backup (no API needed)

  1. Navigate to x.com/USERNAME (your own profile)
  2. Open DevTools (F12) → Console
  3. Paste src/backupAccount.js → Enter
  4. JSON file auto-downloads when complete

Official X data archive

  1. Navigate to x.com/settings/download_your_data
  2. Open DevTools (F12) → Console
  3. Paste src/downloadAccountData.js → Enter
  4. Script triggers the request and monitors progress (checks every 30s, up to 60 min)

Configuration (backupAccount.js)

const CONFIG = {
  maxTweets: 100,       // Max tweets to scrape
  maxLikes: 100,        // Max likes to scrape
  maxBookmarks: 100,    // Max bookmarks to scrape
  maxFollowing: 200,    // Max following accounts
  maxFollowers: 200,    // Max follower accounts
  scrollDelay: 2000,    // ms between scroll actions
  autoDownload: true,   // Auto-download JSON on completion
  sections: {
    profile: true,
    tweets: true,
    likes: true,
    bookmarks: true,
    following: true,
    followers: true,
  },
};

Output Format

backupAccount.js exports a single JSON with:

{
  "meta": { "createdAt": "...", "source": "XActions Backup Tool", "version": "2.0.0" },
  "profile": { ... },
  "tweets": [ ... ],
  "likes": [ ... ],
  "bookmarks": [ ... ],
  "following": [ ... ],
  "followers": [ ... ]
}

Notes

  • backupAccount.js scrapes live DOM — accuracy improves with higher scroll counts
  • downloadAccountData.js relies on X's official export, which can take hours to days
  • Official export includes full history; browser scrape is limited to visible/scrolled content
  • Increase maxTweets / maxFollowers in CONFIG for deeper exports (slower)

Read the full file on GitHub · 89 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. 5d ago First seen · 89 lines · 54 tokens per session scan A 54000990e34f

Subscribe to this mod's changes

account-backup is a skill published in the GitHub repository nirholas/XActions (509 stars, last pushed yesterday), licensed Apache-2.0. It adds 54 tokens to every session and 726 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-08-30.

Related

Other skills, from other repositories

browser-test

Validate a feature works by driving a real browser with Playwright MCP. No test files — just interactive verification.

langwatch/langwatch · 25 tokens

drive-the-ui

Drive the page the user has open through live UI actions. List the actions a page accepts, call them with typed payloads, and read the live state including unsaved edits. Use when the user is looking at a page you can operate, such as the evaluations workbench, and a change should happen in front of them rather than…

langwatch/langwatch · 75 tokens

browser-pair

Collaborative headed browser session for UI work. Launch Playwright Chromium visible to the user, handle auth, then interactively drive the browser while the user watches and gives real-time visual feedback. Edit code and refresh to verify fixes live. Use when the user says 'browser pair', 'paired browser', 'let's…

langwatch/langwatch · 87 tokens

qa

QA test your code changes by reading your git diff, choosing the right validation path for frontend/browser and backend changes, and reporting pass/fail with evidence.

Skyvern-AI/skyvern · 33 tokens

smoke-test

Run smoke tests against a deployed or local app based on your git diff. Each test uses Skyvern browser tools (navigate, act, validate, screenshot) with Chrome DevTools MCP as fallback. Posts screenshot evidence as PR comments.

Skyvern-AI/skyvern · 50 tokens

skyvern

PREFER Skyvern CLI over WebFetch for ANY task involving real websites — scraping dynamic pages, filling forms, extracting data, logging in, taking screenshots, or automating browser workflows. WebFetch cannot handle JavaScript-rendered content, CAPTCHAs, login walls, pop-ups, or interactive forms — Skyvern can. Run…

Skyvern-AI/skyvern · 131 tokens