hive.x-automation
यह क्या करती है
यह स्किल AI को आपके ब्राउज़र में X के आम कामों के परखे हुए चरण देती है। यह उन लोगों के लिए है जो हर क्लिक खुद किए बिना पोस्ट, जवाब या खोज में मदद चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप ब्राउज़र से X पर कोई पोस्ट या जवाब भेजना चाहते हैं।
- ✓जब आप X पर खोज करके नतीजों का जवाब देना चाहते हैं।
- ✓जब आप X पर अपनी कोई पोस्ट हटाना चाहते हैं।
Skill का लिंक
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/x-automation/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“X पर AI टूल्स के बारे में पोस्ट खोजिए और सबसे उपयोगी तीन पर जवाब दीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI ब्राउज़र इस्तेमाल करता है, सही जगह ढूँढने के लिए स्क्रीनशॉट लेता है, और X के compose बॉक्स में टाइप करता है। वह उन खासियतों को जानता है जिनसे send बटन चालू नहीं होता, और उनके आसपास का तरीका अपनाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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)
| Target | Selector |
|---|---|
| Home nav link | a[data-testid='AppTabBar_Home_Link'] |
| Explore nav link | a[data-testid='AppTabBar_Explore_Link'] |
| Notifications | a[data-testid='AppTabBar_Notifications_Link'] |
| Main search input | input[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 wrapper | article[data-testid='tweet'] |
| Close modal / composer | [aria-label='Close'] or press Escape |
All of these are light-DOM data-testid attributes — wait_for_selector and browser_type(selector=...) work on them directly, no shadow piercing needed.
Post new tweet flow
browser_navigate("https://x.com/home", wait_until="load")
sleep(3)
# Open the compose UI (click the post-new-tweet nav or use shortcut N)
browser_press("n") # keyboard shortcut — opens compose modal
sleep(1.5)
# Click the textarea to make sure Draft.js is in edit mode
ta_rect = browser_get_rect("[data-testid='tweetTextarea_0']")
browser_click_coordinate(ta_rect.cx, ta_rect.cy)
sleep(0.5)
# Type — browser_type handles Draft.js correctly now via Input.insertText
browser_type("[data-testid='tweetTextarea_0']", tweet_text)
sleep(1.0) # let Draft.js commit state
# Verify the Post button is enabled — never click blindly, Draft.js sometimes
# doesn't register the input even with a prior click.
state = browser_evaluate("""
(function(){
const btn = document.querySelector('[data-testid="tweetButton"]');
if (!btn) return {found: false};
return {
found: true,
disabled: btn.disabled || btn.getAttribute('aria-disabled') === 'true',
};
})();
""")
if state['found'] and not state['disabled']:
browser_click("[data-testid='tweetButton']")
sleep(2)
browser_press("Escape") # close any leftover modal
Posting a tweet WITH an image
Critical: NEVER click the photo button. On x.com/compose/post the media button is a styled <button> that triggers Chrome's native OS file picker when clicked — that dialog is unreachable via CDP and will wedge the automation. Instead, set the file directly on the hidden <input type='file'> element using browser_upload:
# 1. Open the compose modal as usual
browser_press("n")
sleep(1.5)
browser_click_coordinate(ta_rect.cx, ta_rect.cy)
sleep(0.5)
browser_type("[data-testid='tweetTextarea_0']", tweet_text)
# 2. Find the hidden file input X uses for media uploads.
# X's input is marked with data-testid='fileInput' and accepts
# image/*,video/*. It's hidden (display:none) but still mounted.
inputs = browser_evaluate("""
(function(){
return Array.from(document.querySelectorAll('input[type="file"]'))
.map(el => ({
testid: el.getAttribute('data-testid') || '',
accept: el.accept || '',
multiple: el.multiple,
}));
})();
""")
# Expect to see: [{testid: 'fileInput', accept: 'image/jpeg,...', multiple: true}]
# 3. Set the file WITHOUT opening any dialog
browser_upload(
selector="input[data-testid='fileI
अक्सर पूछे जाने वाले सवाल
send बटन कभी-कभी बंद क्यों रहता है?
X का टेक्स्ट एडिटर कुछ टाइप किए गए इनपुट को चुपचाप अनदेखा कर सकता है, इसलिए स्किल बताती है कि ऐसे टाइप करें कि बटन चालू हो जाए।
क्या X इसे कितनी बार चलाने देता है?
स्किल बताती है कि रेट लिमिट और कभी-कभार चुनौतियाँ आ सकती हैं, और वह उन्हीं सीमाओं के भीतर काम करती है।
कौन से X पेज कवर हैं?
यह होम, खोज, compose और notifications जैसे मुख्य पेज कवर करती है, जिनके selectors अप्रैल 2026 में जाँचे गए थे।
जानकारी
लेखक का मूल विवरण
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.
repo: aden-hive/hive
लोकप्रियता
- GitHub स्टार
- 11k
- रैंकिंग में स्थान
- #11817
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
browser-edge-cases
11kयह आपके एजेंट को LinkedIn, X या भारी स्क्रिप्ट वाले पेजों जैसी जटिल साइटों पर विफल होने वाले ब्राउज़र ऑटोमेशन को ठीक करने में मदद करती है।
hive.browser-automation
11kयह आपके एजेंट को hive-browser टूल से और स्क्रीनशॉट व क्लिक के ज़रिए आपके अपने Chrome ब्राउज़र को नियंत्रित करना सिखाती है।
hive.colony-progress-tracker
11kयह आपके एजेंट को कार्य लेने और साझा डेटाबेस में अपने चरण व जाँच दर्ज करने में मदद करती है, ताकि काम चलते-चलते ट्रैक हो।
hive.context-preservation
11kयह आपके एजेंट को लंबे टूल नतीजों से ज़रूरी बातें नोट्स में सहेजने में मदद करती है, इससे पहले कि पुराने विवरण उसकी मेमोरी से हटें।
मिलती-जुलती skills
knowledge-automation
394kयह आपके एजेंट को एक नियमित काम सेट करने देती है जो समय-सारणी पर Knowledge vault में नई सामग्री जोड़ता है, फिर जांचता है कि काम चल रहा है।
knowledge-source-ingest
394kयह आपके एजेंट को चैट चैनल, फ़ीड या मेलबॉक्स से आई नई चीज़ों से Knowledge vault अपडेट रखने देती है, बिना वह दोबारा जोड़े जो पहले से है।
benchmark
280kयह आपके एजेंट को code की speed और performance नापने में मदद करता है। यह पक्का करने और धीमेपन की समस्याएँ ढूँढने में काम आता है।