Synthèse automatique
Pilote un navigateur Chrome headless via Midscene en agissant uniquement à partir de captures d'écran, sans DOM ni libellés d'accessibilité.
Points forts
- Interaction basée uniquement sur la vision : fonctionne sur les canvas, le shadow DOM et les piles techniques non standard
- La session navigateur persiste entre les appels CLI, ce qui permet d'enchaîner des workflows multi-étapes sans perdre l'état
- Boucle une-action-à-la-fois : l'agent lit la capture avant de décider de l'étape suivante
- Invocation simple via npx, seuls les identifiants d'un modèle visuel sont à fournir
Limites
- Nécessite un modèle de vision configuré (Gemini, Qwen3-VL, Doubao…) via variables d'environnement ou .env, sans solution par défaut
- Chaque commande prend environ une minute : les scénarios longs sont lents et coûteux en tokens
- L'exécution en arrière-plan et l'enchaînement de commandes sont explicitement interdits, donc pas de parallélisme
- Ne conserve pas les sessions connectées ni les onglets existants de l'utilisateur (renvoi vers Chrome Bridge)
À utiliser lorsqu'il faut ouvrir une page, extraire des données, remplir un formulaire ou vérifier une interface dans un navigateur neuf, sans écrire de sélecteurs DOM.
À éviter si la tâche exige la session connectée de l'utilisateur ou ses onglets existants, ou si la vitesse prime sur la robustesse visuelle.
Analyse de sécurité
PrudenceThe skill is a legitimate browser-automation wrapper around Midscene.js/Puppeteer. It uses powerful tooling (Bash, npx, headless Chrome, outbound network) but for its stated purpose, with explicit, readable commands and no destructive, exfiltrating, or obfuscated instructions. The main residual risks are ordinary for this class of tool: runtime npm dependency trust, screenshots and page content flowing to a third-party vision model, and an API key stored in env/.env. Hence 'caution' rather than 'safe' or 'risky'.
- •Declares Bash and executes `npx @midscene/web@1` — invokes an npm package downloaded at runtime (supply-chain trust in @midscene/web and its dependencies) with full shell access.
- •Automation is driven by a third-party vision model: page screenshots (potentially containing logged-in content, PII, tokens visible on screen) are sent to the configured external model API, and every `act` prompt is executed by that model.
- •Requires storing `MIDSCENE_MODEL_API_KEY` in environment or a `.env` file in the working directory, which the skill encourages; risk of key exposure in cwd artifacts/logs.
- •Launches a persistent background headless Chrome session across CLI calls; combined with 'click/type anything visible', it can perform authenticated actions (form submits, purchases) on the user's behalf.
- •No destructive filesystem commands, no curl|sh piping, no obfuscated/base64 payloads, no attempt to disable agent safety checks — behavior is transparent and purpose-scoped to browsing.
Exemples
Open https://news.ycombinator.com, take a screenshot, and extract the titles and point counts of the top 10 stories as a table.Go to our staging contact page, fill in the name, email and message fields with test data, submit the form, and take a screenshot of the confirmation.Open the checkout page, verify that the promo code field and the total price are visible, and screenshot the result so I can confirm the fix.name: Browser Automation description: | Vision-driven browser automation using Midscene. Operates entirely from screenshots — no DOM or accessibility labels required. Can interact with all visible elements on screen regardless of technology stack.
Opens a new browser tab for each target URL via Puppeteer (headless Chrome).
Use this skill when the user wants to:
- Browse, navigate, or open web pages
- Scrape, extract, or collect data from websites
- Fill out forms, click buttons, or interact with web elements
- Verify, validate, or test frontend UI behavior
- Take screenshots of web pages
- Automate multi-step web workflows
- Run browser automation or check website content
Powered by Midscene.js (https://midscenejs.com) allowed-tools:
- Bash
Browser Automation
CRITICAL RULES — VIOLATIONS WILL BREAK THE WORKFLOW:
- Never run midscene commands in the background. Each command must run synchronously so you can read its output (especially screenshots) before deciding the next action. Background execution breaks the screenshot-analyze-act loop.
- Run only one midscene command at a time. Wait for the previous command to finish, read the screenshot, then decide the next action. Never chain multiple commands together.
- Allow enough time for each command to complete. Midscene commands involve AI inference and screen interaction, which can take longer than typical shell commands. A typical command needs about 1 minute; complex
actcommands may need even longer.- Always report task results before finishing. After completing the automation task, you MUST proactively summarize the results to the user — including key data found, actions completed, screenshots taken, and any relevant findings. Never silently end after the last automation step; the user expects a complete response in a single interaction.
Automate web browsing using npx @midscene/web@1. Launches a headless Chrome via Puppeteer that persists across CLI calls — no session loss between commands. Each CLI command maps directly to an MCP tool — you (the AI agent) act as the brain, deciding which actions to take based on screenshots.
When to Use
Use this skill when:
- The user wants to browse or navigate to a specific URL
- You need to scrape, extract, or collect data from websites
- You want to verify or test frontend UI behavior
- The user wants screenshots of web pages
If you need to preserve login sessions or work with the user's existing browser tabs, use the Chrome Bridge Automation skill instead.
Prerequisites
Midscene requires models with strong visual grounding capabilities. The following environment variables must be configured — either as system environment variables or in a .env file in the current working directory (Midscene loads .env automatically):
MIDSCENE_MODEL_API_KEY="your-api-key"
MIDSCENE_MODEL_NAME="model-name"
MIDSCENE_MODEL_BASE_URL="https://..."
MIDSCENE_MODEL_FAMILY="family-identifier"
Example: Gemini (Gemini-3-Flash)
MIDSCENE_MODEL_API_KEY="your-google-api-key"
MIDSCENE_MODEL_NAME="gemini-3-flash"
MIDSCENE_MODEL_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
MIDSCENE_MODEL_FAMILY="gemini"
Example: Qwen3-VL
MIDSCENE_MODEL_API_KEY="your-openrouter-api-key"
MIDSCENE_MODEL_NAME="qwen/qwen3-vl-235b-a22b-instruct"
MIDSCENE_MODEL_BASE_URL="https://openrouter.ai/api/v1"
MIDSCENE_MODEL_FAMILY="qwen3-vl"
Example: Doubao Seed 1.6
MIDSCENE_MODEL_API_KEY="your-doubao-api-key"
MIDSCENE_MODEL_NAME="doubao-seed-1-6-250615"
MIDSCENE_MODEL_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
MIDSCENE_MODEL_FAMILY="doubao-vision"
Commonly used models: Doubao Seed 1.6, Qwen3-VL, Zhipu GLM-4.6V, Gemini-3-Pro, Gemini-3-Flash.
If the model is not configured, ask the user to set it up. See Model Configuration for supported providers.
Commands
Connect to a Web Page
npx @midscene/web@1 connect --url https://example.com
Take Screenshot
npx @midscene/web@1 take_screenshot
After taking a screenshot, read the saved image file to understand the current page state before deciding the next action.
Perform Action
Use act to interact with the page and get the result. It autonomously handles all UI interactions internally — clicking, typing, scrolling, hovering, waiting, and navigating — so you should give it complex, high-level tasks as a whole rather than breaking them into small steps. Describe what you want to do and the desired effect in natural language:
# specific instructions
npx @midscene/web@1 act --prompt "click the Login button and fill in the email field with 'user@example.com'"
npx @midscene/web@1 act --prompt "scroll down and click the Submit button"
# or target-driven instructions
npx @midscene/web@1 act --prompt "click the country dropdown and select Japan"
Disconnect
Disconnect from the page but keep the browser running:
npx @midscene/web@1 disconnect
Close Browser
Close the browser completely when finished:
npx @midscene/web@1 close
Workflow Pattern
The browser persists across CLI calls via a background Chrome process. Follow this pattern:
- Connect to a URL to open a new tab
- Take screenshot to see the current state, make sure the page is loaded.
- Execute action using
actto perform the desired action or target-driven instructions. - Close the browser when done (or disconnect to keep it for later)
- Report results — summarize what was accomplished, present key findings and data extracted during the task, and list any generated files (screenshots, logs, etc.) with their paths
Best Practices
- Always connect first: Navigate to the target URL with
connect --urlbefore any interaction. - Be specific about UI elements: Instead of
"the button", say"the blue Submit button in the contact form". - Use natural language: Describe what you see on the page, not CSS selectors. Say
"the red Buy Now button"instead of"#buy-btn". - Handle loading states: After navigation or actions that trigger page loads, take a screenshot to verify the page has loaded.
- Close when done: Use
closeto shut down the browser and free resources. - Never run in background: Every midscene command must run synchronously — background execution breaks the screenshot-analyze-act loop.
- Batch related operations into a single
actcommand: When performing consecutive operations within the same page, combine them into oneactprompt instead of splitting them into separate commands. For example, "fill in the email and password fields, then click the Login button" should be a singleactcall, not three. This reduces round-trips, avoids unnecessary screenshot-analyze cycles, and is significantly faster. - Always report results after completion: After finishing the automation task, you MUST proactively present the results to the user without waiting for them to ask. This includes: (1) the answer to the user's original question or the outcome of the requested task, (2) key data extracted or observed during execution, (3) screenshots and other generated files with their paths, (4) a brief summary of steps taken. Do NOT silently finish after the last automation command — the user expects complete results in a single interaction.
Example — Dropdown selection:
npx @midscene/web@1 act --prompt "click the country dropdown and select Japan"
npx @midscene/web@1 take_screenshot
Example — Form interaction:
npx @midscene/web@1 act --prompt "fill in the email field with 'user@example.com' and the password field with 'pass123', then click the Log In button"
npx @midscene/web@1 take_screenshot
Troubleshooting
Connection Failures
- Ensure Chrome/Chromium is installed on the system (Puppeteer downloads its own by default).
- Check that no firewall blocks local Chrome debugging ports.
API Key Errors
- Check
.envfile containsMIDSCENE_MODEL_API_KEY=<your-key>. - Verify the key is valid for the configured model provider.
Timeouts
- Web pages may take time to load. After connecting, take a screenshot to verify readiness before interacting.
- For slow pages, wait briefly between steps.
Screenshots Not Displaying
- The screenshot path is an absolute path to a local file. Use the Read tool to view it.
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-mm5t8baj/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-mm5t8baj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/browser-automation-mm5t8baj/download' --output '.skill-downloads/browser-automation-mm5t8baj/SKILL.md.part' && mv '.skill-downloads/browser-automation-mm5t8baj/SKILL.md.part' '.skill-downloads/browser-automation-mm5t8baj/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.
Extrait original : Prerequisites
Midscene requires models with strong visual grounding capabilities. The following environment variables must be configured — either as system environment variables or in a .env file in the current working directory (Midscene loads .env automatically):
MIDSCENE_MODEL_API_KEY="your-api-key"
MIDSCENE_MODEL_NAME="model-name"
MIDSCENE_MODEL_BASE_URL="https://..."
MIDSCENE_MODEL_FAMILY="family-identifier"
Example: Gemini (Gemini-3-Flash)
MIDSCENE_MODEL_API_KEY="your-google-api-key"
MIDSCENE_MODEL_NAME="gemini-3-flash"
MIDSCENE_MODEL_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
MIDSCENE_MODEL_FAMILY="gemini"
Example: Qwen3-VL
MIDSCENE_MODEL_API_KEY="your-openrouter-api-key"
MIDSCENE_MODEL_NAME="qwen/qwen3-vl-235b-a22b-instruct"
MIDSCENE_MODEL_BASE_URL="https://openrouter.ai/api/v1"
MIDSCENE_MODEL_FAMILY="qwen3-vl"
Example: Doubao Seed 1.6
MIDSCENE_MODEL_API_KEY="your-doubao-api-key"
MIDSCENE_MODEL_NAME="doubao-seed-1-6-250615"
MIDSCENE_MODEL_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
MIDSCENE_MODEL_FAMILY="doubao-vision"
Commonly used models: Doubao Seed 1.6, Qwen3-VL, Zhipu GLM-4.6V, Gemini-3-Pro, Gemini-3-Flash.
If the model is not configured, ask the user to set it up. See Model Configuration for supported providers.
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
Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.
Mode 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-mm5t8baj/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.