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

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

Good fit Use it to back up information from your own X/Twitter profile or start and monitor an official data-archive download.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/xactions/account-backup
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/XActions --skill account-backup
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

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 account-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/xactions/account-backup/github.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/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 account-backup

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/xactions/account-backup"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/account-backup.svg" alt="Reviewed on agentmods" width="80" 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. 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.00054 $0.00726
Opus 5.5 $0.00022 $0.00290
Sonnet 5.5 $0.00011 $0.00145
Haiku 4.5 $0.00005 $0.00073

Measured 10d ago against content hash 25153233401e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 10d 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 browser/backupAccount.js x.com/USERNAME
Trigger X's official data archive download browser/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 browser/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 browser/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. 10d ago Changed 25153233401e
  2. 3mo 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 (671 stars, last pushed 3d ago), licensed Apache-2.0. It adds 54 tokens to every session and 726 once invoked, about $0.0002 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-08-30.

Related

account-backup compared with skills from other repositories

account-backup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
account-backupnirholas/XActionsSkill6713d agoApache-2.0A54Claude Code, Codex
Xnotforyou23/home23Skill115d agoMITA33Claude Code, Codex
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60ktodayApache-2.0A31Claude Code
social-x-post-cardnexu-io/open-designSkill110ktodayApache-2.0A31Claude Code, Codex
card-twitternexu-io/open-designSkill110ktodayApache-2.0A15Claude Code, Codex
social-x-post-cardnexu-io/html-anythingSkill17kyesterdayApache-2.0A33Claude Code, Codex
twitter-clipublic-clis/twitter-cliSkill3.0k2d agoApache-2.0A43Claude Code, Codex