Agent skill
Account backup
Export and backup your X/Twitter account data, tweets, likes, bookmarks, followers, and following, as downloadable JSON. Also triggers X's official data...
New to this? An agent skill is a file of instructions your AI assistant follows for one job. The text above is written for the assistant. How to use a skill
What it does
Account backup is a data skill from nirholas/
In short, it shows your assistant how to work with data step by step.
The file is 88 lines long and is set out in parts such as “Script Selection”, “Quick Start”, “Browser backup (no API needed)” and “Official X data archive”.
It has 2 code examples your assistant can follow.
When to use it
Reach for it when you have numbers or tables to clean, query or explain.
Everything it needs is in this one file.
It does not ask for special tools.
Safety check
Our checker read all 88 lines before we listed it.
It found no attack techniques, no hidden text and no steps that switch off your assistant's safety or send your data away.
It flagged nothing else to watch for.
The text links to no outside sites.
It is shared under the Apache‑2.0 license.
Still read it before you use it, like any instructions you give your AI.
Open in the appOriginal on GitHub
What is inside
- Script Selection
- Quick Start
- Browser backup (no API needed)
- Official X data archive
- Configuration (backupAccount.js)
- Output Format
- Notes
- Related Skills
How to use it
- Claude Code: save the text as
.claude/skills/account-backup/SKILL.mdin your project. Claude reads it when a task needs it. - Claude, ChatGPT or Gemini: tap Copy skill and paste it into the chat. It arrives with a short line asking the assistant to use it.
- Cursor and other agents: add it to the project rules or instructions.
Read the full guide to using an agent skill
Want your own? How to write an agent skill that works
The full skill
---
name: account-backup
description: Export and backup your X/Twitter account data — tweets, likes, bookmarks, followers, and following — as downloadable JSON. Also triggers X's official data archive download. Use when users want to backup, export, or archive their X account data.
license: Apache-2.0
metadata:
author: nichxbt
version: "1.0"
---
# 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`)
```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:
```json
{
"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)
## Related Skills
- **twitter-scraping** — Scrape any profile, not just your own
- **bookmarks-management** — Export and organize bookmarks
- **follower-monitoring** — Track follower changes over time
- **content-cleanup** — Delete tweets and likes after backing up
Copyright (c) nirholas and contributors.
Published under the Apache License 2.0, which you can read in full there.
Shown as published on GitHub, with credit and a link to the original.
Read it before you use it.
More skills
Blocking muting management
Mass block, unblock, mute, unmute, and manage accounts on X/Twitter.
Articles longform
Compose, preview, publish, and manage long‑form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking.
Community health monitoring
Audits follower quality, engagement authenticity, unfollower patterns, and network efficiency to produce a community health score.
Try it in your browser
Today's AI news, one card per swipe.
Free to start.