Skip to content
Skillpedia
Automations11k Β· #11811

hive.linkedin-automation

What it does

This skill gives an AI tested steps for common LinkedIn tasks in your browser. It is for people who want help with messages, connection requests or posts without doing every click by hand.

When to use it

  • βœ“When you want your AI to send a message to a LinkedIn contact.
  • βœ“When you want to go through pending LinkedIn connection requests.
  • βœ“When you want to write or publish a post on LinkedIn through the browser.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/linkedin-automation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œGo through my pending LinkedIn connection requests and tell me who is waiting.”

5 new skills a week. 1 minute to read.

How it works

The AI takes a screenshot, picks the spot to click from its position, and types into the focused box. It uses known workarounds for LinkedIn's layout, which often changes and hides fields.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

FAQ

Why does the AI use screenshots instead of page selectors?

LinkedIn often changes its layout and hides fields, so clicking by position on a screenshot is more reliable.

Which LinkedIn tasks are covered?

The skill covers profile messaging, connection request acceptance, feed posts and search.

What tricky parts does it handle?

It handles hidden page sections, strict script rules, editors that drop typed text and unexpected browser dialogs.

Details

Original description by the author

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

Popularity

GitHub stars
11k
Ranking position
#11811
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills