/post-editing
Edit existing posts or undo a recently posted tweet on X/Twitter. Post editing and undo are X Premium features. Use when users want to edit a tweet they already posted or undo a tweet within the 30-second window.
$ npx -y skills add nirholas/XActions --skill post-editing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/post-editing
Context preview
The summary Claude sees to decide when to auto-load this skill.
Edit existing posts or undo a recently posted tweet on X/Twitter. Post editing and undo are X Premium features. Use when users want to edit a tweet they already posted or undo a tweet within the 30-second window.
SKILL.md
post-editing.SKILL.mdname: post-editing
description: Edit existing posts or undo a recently posted tweet on X/Twitter. Post editing and undo are X Premium features. Use when users want to edit a tweet they already posted or undo a tweet within the 30-second window.
license: Apache-2.0
metadata:
author: nichxbt
version: "1.0"
Post Editing & Undo
Browser console script for editing existing posts or undoing a recently posted tweet.
> ⚠️ **X Premium required** — Post editing and undo are Premium-only features.
Script Selection
| Goal | File | Navigate to | |------|------|-------------| | Edit an existing post | `src/editPost.js` | `x.com` | | Undo a post within 30 seconds of posting | `src/editPost.js` | `x.com` |
Quick Start
Edit a post
1. Go to `x.com` 2. Open DevTools (F12) → Console 3. Set `mode: 'edit'`, `postUrl`, and `newText` in CONFIG 4. Paste `src/editPost.js` → Enter
Undo a post (must run within 30 seconds of posting)
1. Post your tweet 2. Immediately open DevTools (F12) → Console 3. Set `mode: 'undo'` in CONFIG 4. Paste `src/editPost.js` → Enter
Configuration
const CONFIG = {
mode: 'edit', // 'edit' or 'undo'
// Edit mode:
postUrl: 'https://x.com/nichxbt/status/123456789', // Post to edit
newText: 'Updated tweet content here', // New text
// Timing:
minDelay: 1000,
maxDelay: 2000,
navigationDelay: 3000, // Wait for page/modal to load
};Selectors Used
| Element | Selector | |---------|----------| | Post options (⋯) | `[data-testid="caret"]` | | Edit tweet option | `[data-testid="editTweet"]` | | Tweet textarea | `[data-testid="tweetTextarea_0"]` | | Submit button | `[data-testid="tweetButton"]` | | Undo banner | `[data-testid="undoTweet"]` |
Notes
- **Edit window**: X allows unlimited edits on Premium (unlike Bluesky's 5-minute limit)
- **Undo window**: The undo banner only appears for ~30 seconds after posting
- Edit history is publicly visible — a small edit badge appears on edited posts
- Script navigates to the post URL automatically when `postUrl` is set
Related Skills
- **content-posting** — Post new tweets and threads
- **content-cleanup** — Delete tweets entirely
- **premium-subscriptions** — Manage X Premium features
Read more
name: post-editing description: Edit existing posts or undo a recently posted tweet on X/Twitter. Post editing and undo are X Premium features. Use when users want to edit a tweet they already posted or undo a tweet within the 30-second window. license: Apache-2.0 metadata: author: nichxbt version: "1.0"
Post Editing & Undo
Browser console script for editing existing posts or undoing a recently posted tweet.
> ⚠️ **X Premium required** — Post editing and undo are Premium-only features.
Script Selection
| Goal | File | Navigate to | |------|------|-------------| | Edit an existing post | `src/editPost.js` | `x.com` | | Undo a post within 30 seconds of posting | `src/editPost.js` | `x.com` |
Quick Start
Edit a post
1. Go to `x.com` 2. Open DevTools (F12) → Console 3. Set `mode: 'edit'`, `postUrl`, and `newText` in CONFIG 4. Paste `src/editPost.js` → Enter
Undo a post (must run within 30 seconds of posting)
1. Post your tweet 2. Immediately open DevTools (F12) → Console 3. Set `mode: 'undo'` in CONFIG 4. Paste `src/editPost.js` → Enter
Configuration
const CONFIG = {
mode: 'edit', // 'edit' or 'undo'
// Edit mode:
postUrl: 'https://x.com/nichxbt/status/123456789', // Post to edit
newText: 'Updated tweet content here', // New text
// Timing:
minDelay: 1000,
maxDelay: 2000,
navigationDelay: 3000, // Wait for page/modal to load
};Selectors Used
| Element | Selector | |---------|----------| | Post options (⋯) | `[data-testid="caret"]` | | Edit tweet option | `[data-testid="editTweet"]` | | Tweet textarea | `[data-testid="tweetTextarea_0"]` | | Submit button | `[data-testid="tweetButton"]` | | Undo banner | `[data-testid="undoTweet"]` |
Notes
- **Edit window**: X allows unlimited edits on Premium (unlike Bluesky's 5-minute limit)
- **Undo window**: The undo banner only appears for ~30 seconds after posting
- Edit history is publicly visible — a small edit badge appears on edited posts
- Script navigates to the post URL automatically when `postUrl` is set
Related Skills
- **content-posting** — Post new tweets and threads
- **content-cleanup** — Delete tweets entirely
- **premium-subscriptions** — Manage X Premium features
⚡ The Complete X/Twitter Automation Toolkit — Scrapers, MCP server for AI agents (Claude/GPT), CLI, browser scripts. No API fees. Open source. Unfollow people who don't follow back. Monitor real-time analytics. Auto follow, like, comment, scrape, without API. Follow Bot. Like bot. Grow your account automatically.
Repo: nirholas/XActions
Other skills on xactions.
- /a2a-multi-agent
Turn XActions into an A2A-compatible agent that can discover, communicate with, and delegate tasks to other AI agents using Google's Agent-to-Agent protocol.
Open 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 archive download. Use when users want to backup, export, or archive their X account data.
Open skill - /account-tools
Miscellaneous account utilities — view join date, login history, connected accounts, appeal suspension, QR code sharing, share/embed tweets, upload contacts, and calculate account age. Use when users need account info tools not covered by other skills.
Open skill - /algorithm-cultivation
Trains an X/Twitter account's algorithmic feed to surface niche-relevant content and positions the account as a thought leader. Browser scripts for manual operation, Persona Engine for identity management, and 24/7 Algorithm Builder with LLM-powered engagement via Puppeteer. Use
Open skill - /analytics-insights
Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral detection, content calendar gaps, A/B testing, and engagement leaderboards. Browser console scripts for data-driven X optimization. Use when users want
Open skill - /articles-longform
Compose, preview, publish, and manage long-form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking. Use when users want to write, publish, manage, or analyze X Articles.
Open skill

