hive.linkedin-automation
하는 일
이 스킬은 AI에게 브라우저에서 LinkedIn의 흔한 작업을 수행하는 검증된 단계를 알려 줍니다. 메시지, 연결 요청, 게시물을 하나하나 클릭하지 않고 도움받고 싶은 사람들을 위한 것입니다.
사용하는 경우
- ✓AI가 LinkedIn 연락처에게 메시지를 보내기를 원할 때.
- ✓LinkedIn의 대기 중인 연결 요청을 하나씩 확인하고 싶을 때.
- ✓브라우저를 통해 LinkedIn에 글을 작성하거나 게시하고 싶은 경우.
스킬 링크
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/linkedin-automation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 LinkedIn 대기 중인 연결 요청을 확인하고, 누가 기다리고 있는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 스크린샷을 찍고, 위치를 바탕으로 클릭할 지점을 고르고, 포커스된 입력란에 입력합니다. LinkedIn의 레이아웃은 자주 바뀌고 입력란을 숨기기도 하므로, 알려진 우회 방법을 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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:
browser_screenshot()— see the page visually- Pick the target's position from the image
browser_coords(image_x, image_y)→ get CSS pixelsbrowser_click_coordinate(css_x, css_y)— reaches shadow DOM, iframes, and React elements indifferentlybrowser_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 sleepwait_for_selectorwill 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
자주 묻는 질문
AI는 왜 페이지 선택자 대신 스크린샷을 사용하나요?
LinkedIn은 레이아웃을 자주 바꾸고 입력란을 숨기기도 하므로, 스크린샷에서 위치를 보고 클릭하는 방식이 더 안정적입니다.
어떤 LinkedIn 작업이 포함되나요?
프로필 메시지, 연결 요청 수락, 피드 게시물, 검색을 다룹니다.
까다로운 부분은 어떻게 처리하나요?
숨겨진 페이지 영역, 엄격한 스크립트 규칙, 입력한 글자를 버리는 편집기, 예상치 못한 브라우저 대화 상자를 처리합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 11k
- 순위
- #11811
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
browser-edge-cases
11k에이전트가 LinkedIn, X 같은 까다로운 사이트나 스크립트가 많은 페이지에서 실패하는 브라우저 자동화를 고치도록 돕습니다.
hive.browser-automation
11k에이전트가 hive-browser 도구로 내 Chrome 브라우저를 제어하도록 가르칩니다. 스크린샷과 클릭을 사용합니다.
hive.colony-progress-tracker
11k에이전트가 작업을 맡고 단계와 점검 내용을 공유 데이터베이스에 기록하도록 돕습니다. 작업이 진행되는 동안 추적됩니다.
hive.context-preservation
11k에이전트가 긴 도구 결과에서 핵심 사실을 메모로 저장해, 오래된 세부 내용이 기억에서 지워지기 전에 보존하도록 돕습니다.