Chuyển đến nội dung
Skillpedia
Tự động hóa11k · #11811

hive.linkedin-automation

Skill này làm gì

Skill này cung cấp cho AI các bước đã được thử nghiệm cho những tác vụ LinkedIn phổ biến trong trình duyệt của bạn. Skill dành cho người muốn được hỗ trợ về tin nhắn, lời mời kết nối hoặc bài đăng mà không phải tự nhấp từng bước.

Khi nào nên dùng

  • ✓Khi bạn muốn AI gửi tin nhắn cho một liên hệ trên LinkedIn.
  • ✓Khi bạn muốn xem qua các lời mời kết nối đang chờ trên LinkedIn.
  • ✓Khi bạn muốn viết hoặc đăng một bài trên LinkedIn qua trình duyệt.

Liên kết skill

https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/linkedin-automation/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/linkedin-automation/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Xem qua các lời mời kết nối đang chờ trên LinkedIn của tôi và cho tôi biết ai đang chờ.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI chụp ảnh màn hình, chọn vị trí cần nhấp dựa trên vị trí của nó trên màn hình, rồi gõ vào ô đang được chọn. AI dùng các cách xử lý đã biết cho bố cục của LinkedIn, vốn thường thay đổi và ẩn các ô nhập.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

LinkedIn Automation

LinkedIn is the hardest mainstream site to automate because it combines shadow DOM (#interop-outlet for messaging), strict Trusted Types CSP (silently drops innerHTML), heavy React reconciliation (injected nodes get stripped on re-render), native beforeunload draft dialogs (hang the bridge), and aggressive spam filters. Every one of those has bit us at least once. This skill documents what actually works.

Always activate browser-automation first. This skill assumes you already know about CSS-px coordinates, browser_type/browser_type_focused, and browser_shadow_query. The guidance below is LinkedIn-specific; general browser rules are there.

Rule #0: screenshot + coordinates, not selectors

LinkedIn changes class names aggressively and hides composers inside shadow roots AND iframes. Selectors break constantly. Your default strategy on every LinkedIn page should be:

  1. browser_screenshot() — see the page visually
  2. Pick the target's position from the image
  3. browser_coords(image_x, image_y) → get CSS pixels
  4. browser_click_coordinate(css_x, css_y) — reaches shadow DOM, iframes, and React elements indifferently
  5. browser_type(use_insert_text=True, text=...) — types into whatever is focused, including Lexical composers

If browser_evaluate(...querySelectorAll...) returns [] even once, do not try a different selector. Stop, screenshot, and click. The "what if I try .artdeco-list__item next" instinct has burned ~50 tool calls in real sessions before the agent pivoted. Don't fall into that loop.

The selectors in the table below are only for when you already know the target is in the light DOM and you want a faster path than screenshot+coord. When in doubt, default to coordinates.

Invitation manager — inline message button path is BROKEN

If the user asks to message a connection request from the invitation manager page without accepting first, the inline "Message" button opens a composer inside a nested iframe overlay (not a shadow root). The iframe's contentDocument is either cross-origin-blocked or not hydrated at access time. This path is not reliably automatable today.

Redirect: click the person's name/profile link on the card, go to the profile page, and use the standard Profile Message flow below. The profile flow is battle-tested; the inline-iframe flow isn't.

If you end up writing document.activeElement.tagName === 'IFRAME' inside a browser_evaluate, you've hit this trap. Stop and go to the profile page.

Timing expectations

  • browser_navigate(wait_until="load") — LinkedIn takes 4–5 seconds to load the feed cold.
  • After navigation, always sleep(3) to let React hydrate the profile/feed chrome before querying selectors. Without the sleep wait_for_selector will flake on elements that exist moments later.
  • Composer modal slide-in takes ~2 seconds after you click the Message button.

Verified selectors

Target Selector Notes
Global search input input[data-testid='typeahead-input'] Light DOM, straightforward
Own profile link a[href*='linkedin.com/in/'] Top nav; filter to the one near top-left
Profile Message action a[href*='/messaging/compose/'] filtered by NON_SELF_PROFILE_VIEW AND no body= param AND x < 700 Is an <a>, not a <button>. Multiple match; filter carefully.
Modal composer textarea div.msg-form__contenteditable (inside #interop-outlet shadow) Multiple instances exist — pick largest-area in-viewport one.
Modal Send button button.msg-form__send-button (inside #interop-outlet shadow) Same multi-instance trap — filter by y + height <= innerHeight.
Invitation manager navigate to https://www.linkedin.com/mynetwork/invitation-manager/received/ Direct URL is faster than nav-link clicking
Pending connection card .invitation-card, .invitations-card, [data-test-incoming-invitation-card] Filter out "invited you to follow" / "subscribe" cards
Accept button button[aria-label*="Accept"] within the card scope Per-card scoping is critical — there are many Accept buttons on the page

LinkedIn changes class names aggressively. If a class-based selector breaks, fall back to browser_screenshot → visual identification → browser_click_coordinate with the pixel you read straight off the image (screenshots are CSS-sized, no conversion). The sc

Câu hỏi thường gặp

Vì sao AI dùng ảnh chụp màn hình thay vì selector của trang?

LinkedIn thường thay đổi bố cục và ẩn các ô nhập, nên nhấp theo vị trí trên ảnh chụp màn hình đáng tin cậy hơn.

Những tác vụ LinkedIn nào được bao quát?

Skill bao quát nhắn tin hồ sơ, chấp nhận lời mời kết nối, bài đăng trên feed và tìm kiếm.

Skill xử lý những phần khó nào?

Skill xử lý các phần trang bị ẩn, quy tắc script nghiêm ngặt, trình soạn thảo làm mất văn bản đã gõ và các hộp thoại trình duyệt bất ngờ.

Chi tiết

Mô tả gốc của tác giả

Read before automating LinkedIn with browser_* tools. LinkedIn combines shadow DOM (#interop-outlet), strict Trusted Types CSP that silently drops innerHTML, Lexical composer, native beforeunload dialogs that hang the bridge, and aggressive spam filters — each has bitten us at least once. Verified flows for profile messaging, connection-request acceptance, feed composition, and search. Requires hive.browser-automation. Verified against logged-in production 2026-04-11.

repo: aden-hive/hive

Độ phổ biến

Sao GitHub
11k
Vị trí xếp hạng
#11811
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự