Skills

Hive.x Automation

Read before automating X / Twitter with browser_* tools.

Install

npx skills add aden-hive/hive --skill hive.x-automation -g -a claude-code -y
Repository
aden-hive/hive11.1k
Category
Engineering
Updated
9d ago
License
Apache-2.0
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Read before automating X / Twitter with browser_* tools. Verified flows for post, reply, delete, search-and-engage, plus the Draft.js compose quirks that silently disable the send button. Includes the daily-reply and job-market-reply playbooks. Requires hive.browser-automation for the underlying screenshot + coordinate workflow. Verified 2026-04-11.

X / Twitter Automation

X uses Draft.js (the original Facebook rich-text editor) for the compose text area, which was the original canary for all the rich-text editor quirks the browser-automation skill now documents. Most of the site is otherwise stable, data-testid attributes have held up for years, the SPA is reasonably honest about what it renders, and shadow DOM is minimal. The hard parts are the composer, rate limiting, and the occasional anti-bot challenge.

Always activate browser-automation first. This skill assumes you already know about CSS-px coordinates, click-first typing, and Input.insertText. The guidance below is X-specific.

Timing expectations

  • browser_navigate(wait_until="load") returns in 1.3, 1.6 s on a warm cache.
  • After navigation, sleep(2, 3) for SPA hydration before querying selectors.
  • Compose modal slide-in: ~1.5 s after clicking reply / compose.
  • First 1, 2 characters typed into the compose editor may be dropped, see "Draft.js quirks" below.

Verified selectors (2026-04-11)

TargetSelector
Home nav linka[data-testid='AppTabBar_Home_Link']
Explore nav linka[data-testid='AppTabBar_Explore_Link']
Notificationsa[data-testid='AppTabBar_Notifications_Link']
Main search inputinput[data-testid='SearchBox_Search_Input']
Compose text area[data-testid='tweetTextarea_0'] (Draft.js contenteditable)
Post / Tweet submit button[data-testid='tweetButton']
Reply button (on feed / tweet detail)[data-testid='reply']
Like button[data-testid='like']
Retweet / repost button[data-testid='retweet']
Caret (⋯) menu on a post[data-testid='caret']
Confirmation sheet confirm button[data-testid='confirmationSheetConfirm']
Tweet article wrapperarticle[data-testid='tweet']
Close modal / composer[aria-label='Close'] or press Escape
Read the whole SKILL.md on GitHub

More in Engineering