Aller au contenu
Skillpedia
Agents11k · #11798

hive.browser-automation

Ce qu’il fait

Cette compétence explique comment l'IA exécute des tâches de navigation dans votre propre Chrome, grâce à un pont en ligne de commande. Elle s'adresse aux personnes qui veulent que leur IA travaille sur des sites où elles sont déjà connectées.

Quand l’utiliser

  • ✓Quand l'IA doit ouvrir des pages, cliquer ou remplir des formulaires dans votre Chrome.
  • ✓Quand vous voulez que l'IA travaille dans vos sessions déjà connectées.
  • ✓Quand une étape du navigateur échoue et que l'IA doit vérifier la page avec des captures d'écran.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/browser-automation/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je veux que mon Chrome ouvre l'onglet du site d'offres d'emploi et liste les nouvelles offres.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA envoie des commandes à un pont qui se rattache à votre Chrome en cours d'exécution. Elle prend des captures d'écran, clique aux coordonnées indiquées et lit les résultats. Elle ne lance ni ne ferme le navigateur elle-même.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

GCU Browser Automation

All GCU browser automation drives a real Chrome instance through the Beeline extension and Chrome DevTools Protocol (CDP). You drive it from the terminal: every command is hive-browser <command> ... --json, run through terminal_exec. Always pass --json so the result is machine-readable. That means clicks, keystrokes, and screenshots are processed by the actual browser's native hit testing, focus, and layout engines — not a synthetic event layer. Understanding this unlocks strategies that make hard sites easy.

Browser lifecycle & recovery — read this before "fixing" anything

The bridge attaches to the user's already-running Chrome via the extension. The browser is not yours: it holds the user's logged-in sessions and other agents' work, and the runtime — not you — owns the connection to it. Consequences:

  • There is nothing to "start." If no browser is connected, hive-browser setup --json tells you and gives the user install steps. Launching Chrome yourself (any google-chrome/chromium command, --remote-debugging-port, --user-data-dir, headless flags) is forbidden and blocked — it opens a browser the bridge can't see, often under the wrong profile.
  • There is no situation where killing the browser helps. Never use terminal tools to kill/pkill/killall Chrome, the bridge, or gcu processes. These commands are blocked, and attempting them breaks every agent sharing the connection. The same applies to the Hive desktop app and bridge_host.
  • A timeout is NOT a stuck browser. All hive-browser commands share one transport across all agents; one slow call (a heavy hive-browser evaluate on a big page) can make YOUR calls time out while the browser is perfectly healthy. The timeout message tells you whether the server passed its liveness check and whether recovery is already running — believe it.
  • Allowed recovery, in order: (1) wait ~30s and retry ONCE, with a smaller/simpler request — e.g. split a page-wide hive-browser evaluate sweep into chunked queries; (2) close YOUR OWN tabs with hive-browser tab close <T> --json and reopen; (3) report the failure (report_to_parent or your reporting channel) and move on to work that doesn't need the browser. Escalate to the user; never to the process table.
  • Keep heavy hive-browser evaluate scripts cheap: avoid innerText over thousands of nodes (each read forces layout). Prefer textContent, scope the selector, and paginate the sweep.

Targeting a specific Chrome profile / account

If your machine has more than one Chrome profile connected (different logged-in accounts), say which one to act in — if you omit it, the bridge falls back to the first-connected profile, which may be the wrong account. Pass --browser-profile <label> to hive-browser open (and hive-browser navigate / hive-browser script):

  • See every connected profile in hive-browser status --json / hive-browser setup --json — both return a connected_profiles list of {label, is_default, starred} for ALL connected Chrome profiles (not just the one you're using). That's how you discover the labels. (hive-browser status reflects ALL connections; don't conclude "only one profile" from the single profile label of your own context.)
  • The label is a connected profile label — the name shown in that profile's Hive extension side panel (or its auto 3-word id). If your task assigns you a profile (e.g. "your profile is acct-jpn"), pass exactly that.
  • Every command's JSON echoes the profile it actually used. Check it: if it doesn't match what you intended, you opened the wrong account. Stop and fix the label (don't proceed).
  • A label that isn't connected fails fast with the list of connected labels — bind to one of those.
  • With one profile connected (or one starred default), you can omit it. With several connected and no star, omitting it uses the first-connected profile — fine for single-account work, risky for multi-account, so pass the label when the account matters.

Working on LinkedIn?

For ANY LinkedIn flow, load hive.linkedin-core first — it owns the auth check, rate limits, stop protocol, reply-text policy, and DOM gotchas every LinkedIn script depends on. Then load the capability skill for the task: hive.linkedin-discovery (scans / People search), hive.linkedin-messaging (lk_send_to_message_url, reply, inbox), hive.linkedin-connect (lk_send_invite, post comments), or `h

Questions fréquentes

L'IA lance-t-elle un nouveau navigateur pour moi ?

Non. Elle se connecte au Chrome déjà ouvert et ne le lance ni ne le ferme.

Que se passe-t-il si le navigateur n'est pas connecté ?

La commande de configuration le signale et donne les étapes d'installation à suivre.

Pourquoi utilise-t-elle des captures d'écran ?

Les captures d'écran permettent à l'IA de voir la mise en page de la page afin de cliquer au bon endroit.

Détails

Description originale de l’auteur

Required before any hive-browser CLI command. The browser is driven from the terminal by running `hive-browser <command> ... --json` via terminal_exec — not via MCP tools. Teaches the browser lifecycle rules (the bridge attaches to the USER'S running Chrome — never kill or launch browser processes; timeouts are transport issues, not crashes), the screenshot + coordinate workflow (hive-browser interact with a fractional coordinate) that reaches shadow-DOM inputs selectors can't see, the viewport-fraction coordinate rule (not pixels), rich-text editor quirks ("send button stays disabled" failure

repo: aden-hive/hive

Popularité

Étoiles GitHub
11k
Position au classement
#11798
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires