hive.linkedin-automation
O que ela faz
Esta skill dá a uma IA passos testados para tarefas comuns no LinkedIn no seu navegador. É para pessoas que querem ajuda com mensagens, pedidos de conexão ou publicações sem fazer cada clique à mão.
Quando usar
- ✓Quando você quer que a IA envie uma mensagem para um contato no LinkedIn.
- ✓Quando você quer revisar os pedidos de conexão pendentes no LinkedIn.
- ✓Quando você quer escrever ou publicar um post no LinkedIn pelo navegador.
Link da skill
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/linkedin-automation/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Revise os meus pedidos de conexão pendentes no LinkedIn e me diga quem está esperando.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA tira uma captura de tela, escolhe o ponto de clique pela posição e digita no campo em foco. Ela usa soluções conhecidas para o layout do LinkedIn, que muda com frequência e oculta campos.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Por que a IA usa capturas de tela em vez de seletores da página?
O LinkedIn muda o layout com frequência e oculta campos, então clicar pela posição em uma captura é mais confiável.
Quais tarefas do LinkedIn são cobertas?
A skill cobre mensagens no perfil, aceitação de pedidos de conexão, posts no feed e busca.
Quais partes complicadas ela trata?
Trata seções ocultas da página, regras rígidas de script, editores que descartam o texto digitado e diálogos inesperados do navegador.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 11 mil
- Posição no ranking
- #11811
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
browser-edge-cases
11 milAjuda seu agente a corrigir automações de navegador que falham em sites complicados, como LinkedIn, X ou páginas com muitos scripts.
hive.browser-automation
11 milEnsina seu agente a controlar o seu próprio Chrome com a ferramenta hive-browser, usando capturas de tela e cliques.
hive.colony-progress-tracker
11 milAjuda seu agente a reivindicar tarefas e registrar seus passos e verificações em um banco de dados compartilhado, para que o trabalho seja acompanhado enquanto avança.
hive.context-preservation
11 milAjuda seu agente a salvar fatos importantes de resultados longos de ferramentas em anotações, antes que detalhes antigos sejam removidos da sua memória.
Skills parecidas
knowledge-automation
394 milAjuda seu agente a configurar uma tarefa recorrente que traz conteúdo novo para o seu Knowledge vault em uma agenda e a verificar se ela roda.
knowledge-source-ingest
394 milAjuda seu agente a manter o Knowledge vault atualizado com itens novos de canais de chat, feeds ou caixas de e-mail, sem adicionar de novo o que já existe.
benchmark
280 milAjuda seu agente a medir a velocidade e a performance do código. É útil para garantir que as coisas estão rápidas e para encontrar problemas de lentidão.