Synthèse automatique
Automatise un navigateur Chromium sans interface via la CLI agent-browser, permettant la navigation, l'interaction avec les éléments, le remplissage de formulaires, l'extraction de contenu et les captures d'écran.
Points forts
- Utilise la recherche sémantique par rôle, texte, libellé, placeholder ou testid, évitant les sélecteurs CSS fragiles.
- Fournit un arbre d'accessibilité avec des références d'éléments, idéal pour les agents IA.
- Couvre un large éventail d'interactions : clics, saisie, formulaires, glisser-déposer, conditions d'attente.
- Une seule commande npx, sans code à écrire.
Limites
- Nécessite une installation initiale de Chromium via npx agent-browser install.
- Le navigateur headless peut être bloqué par les sites protégés par des anti-bots.
- Les sélecteurs et temporisations doivent parfois être ajustés pour les pages dynamiques.
Lorsqu'un agent doit interagir avec un site web réel pour tester un parcours, remplir un formulaire ou extraire du contenu nécessitant l'exécution de JavaScript.
Pour récupérer du HTML statique, préférez curl ; pour des scénarios complexes ou des performances poussées, des frameworks dédiés comme Playwright sont plus adaptés.
Analyse de sécurité
PrudenceThe skill provides legitimate and powerful browser automation capabilities, including JavaScript evaluation, network interception, storage access, and file uploads. While not inherently malicious, these features could be exploited by a malicious or compromised agent to access sensitive information or perform unintended actions, warranting caution.
- •The skill allows arbitrary JavaScript execution in the browser context via `eval <js>` and `eval -b <base64>`, which could be used to extract page data or manipulate the DOM beyond intended scope.
- •Commands to access cookies, local/session storage, and network interception (`network route`, `set credentials`) could expose sensitive data if used on untrusted sites.
- •The `upload` command may read local files, and the broad allowed-tool `Bash(npx agent-browser *)` permits any agent-browser subcommand, increasing the potential impact of misuse.
Exemples
Open https://example.com and take a full-page screenshot, saving it as example.pngGo to https://www.wikipedia.org, find the search input by placeholder, type 'Claude AI', press Enter, and get the title of the resulting page.Open https://news.ycombinator.com, snapshot the page, and count how many storylink links are visible.name: browser description: Automate browser interactions using agent-browser CLI — navigate, click, fill forms, scrape content, take screenshots, and more. argument-hint: <command> [args...] allowed-tools: Bash(npx agent-browser *)
Browser Automation with agent-browser
Control a headless Chromium browser via CLI commands. All commands are run with npx agent-browser <command>.
Setup (first time only)
npx agent-browser install
Navigation
| Command | Description |
|---|---|
| open <url> | Navigate to a URL |
| close | Close browser |
| tab | List open tabs |
| tab new [url] | Open new tab |
| tab <n> | Switch to tab n |
| tab close [n] | Close tab |
| window new | Open new browser window |
| frame <selector> | Switch to iframe |
| frame main | Return to main frame |
Page Inspection (use these to understand page structure)
| Command | Description |
|---|---|
| snapshot | Get accessibility tree with @e1, @e2 element refs (best for AI) |
| screenshot [path] | Capture screenshot |
| screenshot --full | Full page screenshot |
| screenshot --annotate | Screenshot with numbered element labels |
| get text <sel> | Extract text content |
| get html <sel> | Get innerHTML |
| get value <sel> | Get input value |
| get attr <sel> <attr> | Get element attribute |
| get title | Get page title |
| get url | Get current URL |
| get count <sel> | Count matching elements |
| get box <sel> | Get bounding box |
| get styles <sel> | Get computed styles |
| is visible <sel> | Check if element is visible |
| is enabled <sel> | Check if element is enabled |
| is checked <sel> | Check if checkbox is checked |
Clicking & Interaction
| Command | Description |
|---|---|
| click <sel> | Click an element |
| click <sel> --new-tab | Click, opening in new tab |
| dblclick <sel> | Double-click |
| hover <sel> | Hover over element |
| focus <sel> | Focus element |
| scroll <dir> [px] | Scroll up/down/left/right |
| scrollintoview <sel> | Scroll element into view |
| drag <src> <tgt> | Drag and drop |
Text Input
| Command | Description |
|---|---|
| fill <sel> <text> | Clear field and type text |
| type <sel> <text> | Type into focused element (appends) |
| keyboard type <text> | Type with real keystrokes |
| keyboard inserttext <text> | Insert text without key events |
| press <key> | Press a key (Enter, Tab, Control+a, etc.) |
| keydown <key> | Hold key down |
| keyup <key> | Release key |
Form Controls
| Command | Description |
|---|---|
| check <sel> | Check a checkbox |
| uncheck <sel> | Uncheck a checkbox |
| select <sel> <val> | Select dropdown option |
| upload <sel> <files> | Upload file(s) to input |
Semantic Find (locate elements by meaning, not CSS)
find role <role> <action> [value] # By ARIA role
find text <text> <action> # By visible text
find label <label> <action> [value] # By label
find placeholder <ph> <action> [value] # By placeholder
find alt <text> <action> # By alt text
find title <text> <action> # By title attribute
find testid <id> <action> [value] # By data-testid
find first <sel> <action> [value] # First match
find last <sel> <action> [value] # Last match
find nth <n> <sel> <action> [value] # Nth match
Actions: click, fill, type, hover, focus, check, uncheck, text
Options: --name <name> (filter by accessible name), --exact (exact match)
Examples:
npx agent-browser find role button click --name "Submit"
npx agent-browser find text "Sign In" click
npx agent-browser find label "Email" fill "user@example.com"
npx agent-browser find placeholder "Search..." fill "vinyl records"
Waiting
| Command | Description |
|---|---|
| wait <selector> | Wait for element to appear |
| wait <ms> | Wait N milliseconds |
| wait --text "text" | Wait for text to appear |
| wait --url "**/path" | Wait for URL pattern |
| wait --load networkidle | Wait for network idle |
| wait --fn "window.ready" | Wait for JS condition |
Cookies & Storage
| Command | Description |
|---|---|
| cookies | Get all cookies |
| cookies set <name> <val> | Set a cookie |
| cookies clear | Clear cookies |
| storage local | Get all localStorage |
| storage local <key> | Get localStorage key |
| storage local set <k> <v> | Set localStorage value |
| storage local clear | Clear localStorage |
| storage session | Same commands for sessionStorage |
Network Interception
| Command | Description |
|---|---|
| network route <url> | Intercept requests matching URL |
| network route <url> --abort | Block matching requests |
| network route <url> --body <json> | Mock response body |
| network unroute [url] | Remove intercept routes |
| network requests | View tracked requests |
| network requests --filter <pat> | Filter requests by pattern |
JavaScript Execution
| Command | Description |
|---|---|
| eval <js> | Run JavaScript in page context |
| eval -b <base64> | Run base64-encoded JS |
Browser Configuration
| Command | Description |
|---|---|
| set viewport <w> <h> | Set viewport size |
| set device <name> | Emulate device (e.g. "iPhone 14") |
| set media dark | Emulate dark color scheme |
| set media light | Emulate light color scheme |
| set offline on | Enable offline mode |
| set offline off | Disable offline mode |
| set geo <lat> <lng> | Set geolocation |
| set headers <json> | Set extra HTTP headers |
| set credentials <user> <pass> | Set HTTP basic auth |
Mouse Control
| Command | Description |
|---|---|
| mouse move <x> <y> | Move cursor to coordinates |
| mouse down [button] | Press mouse button |
| mouse up [button] | Release mouse button |
| mouse wheel <dy> [dx] | Scroll wheel |
State Persistence
| Command | Description |
|---|---|
| state save <path> | Save auth/session state |
| state load <path> | Load saved state |
| state list | List saved states |
| state clear [name] | Clear a saved state |
| state clear --all | Clear all saved states |
Debugging
| Command | Description |
|---|---|
| console | View console messages |
| errors | View uncaught exceptions |
| highlight <sel> | Visually highlight element |
| trace start [path] | Start trace recording |
| trace stop [path] | Stop and save trace |
| profiler start | Start CPU profiling |
| profiler stop [path] | Save profile |
| pdf <path> | Save page as PDF |
Comparison & Diffing
| Command | Description |
|---|---|
| diff snapshot | Compare current vs previous snapshot |
| diff snapshot --baseline <file> | Compare against saved file |
| diff screenshot --baseline <file> | Visual pixel comparison |
| diff url <a> <b> | Compare two URLs |
Typical Workflow
- Open a page:
open http://localhost:3000 - Inspect structure:
snapshot(returns element refs like@e1,@e2) - Interact using refs:
click @e3orfill @e5 "my text" - Verify results:
get text @e7orscreenshot - Close when done:
close
Selectors
Commands accept these selector types:
- Element refs from snapshot:
@e1,@e2, etc. (preferred for AI) - CSS selectors:
#id,.class,div > span - XPath:
//button[@type="submit"] - Semantic find: Use the
findcommand family above
Default Login Flow
When testing locally, log in first before performing authenticated browser actions:
- URL: http://localhost:3000/auth
- Use Supabase Auth (email/password)
Project-Specific Pages
Key pages to test in the MVP boilerplate:
| Page | URL | Notes |
|---|---|---|
| Landing | http://localhost:3000 | Sections: Navbar, Hero, Logos, Items, Stats, Pricing, FAQ, Cta, Footer |
| Sign In / Sign Up | http://localhost:3000/auth | Supabase Auth UI |
| Account | http://localhost:3000/account | Authenticated - user profile & subscription |
| Pricing | http://localhost:3000/#pricing | Stripe checkout integration |
Testing Dark Mode
# Toggle dark mode via the ModeToggle button in the navbar
npx agent-browser find role button click --name "Toggle theme"
# Or force via browser emulation
npx agent-browser set media dark
npx agent-browser set media light
Testing Responsive Design
# Mobile
npx agent-browser set viewport 375 812
# Tablet
npx agent-browser set viewport 768 1024
# Desktop
npx agent-browser set viewport 1440 900
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/browser-automation-with-agent-browser-msshyw0b' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/browser-automation-with-agent-browser-msshyw0b/download' --output '.skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md.part' && mv '.skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md.part' '.skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(npx agent-browser *)
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md' && test -s '.skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/browser' && cp -R '.skill-downloads/browser-automation-with-agent-browser-msshyw0b' '.claude/skills/browser'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/browser-automation-with-agent-browser-msshyw0b'openskills read 'browser-automation-with-agent-browser-msshyw0b'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/browser-automation-with-agent-browser-msshyw0b/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Comparaison de performances ClickHouse
Testing
Évaluez les résultats de tests de performance ClickHouse, analysez les régressions de PR, comparez avec l'historique et vérifiez la fiabilité des mesures.
Analyse des rapports de performance CI
Testing
Analyse les rapports de comparaison de performance CI pour une PR ClickHouse. Recoupe l'historique master pour distinguer les vraies régressions des tests instables.
Méthode Santa
Testing
Vérification adversarial multi-agents avec deux réviseurs indépendants. La sortie est vérifiée deux fois et corrigée itérativement jusqu'à ce que les deux acceptent avant publication.