.github/skills/chrome-cdp/SKILL.md
# SKILL: chrome-cdp ## Dominio Automatización de Google Chrome vía Chrome DevTools Protocol (CDP). Lanzar Chrome con depuración remota, controlar tabs, ejecutar JavaScript, navegar, hacer clic y escribir texto en páginas web. --- ## Scripts disponibles (en `.codex-agent/`) | Script | Propósito | |--------|-----------| | `start_chrome_cdp.ps1` | Lanzar Chrome con `--remote-debugging-port` | | `chrome_cdp.ps1` | Controlar Chrome: tabs, JS, eventos | --- ## Lanzar Chrome con CDP ```powershel
npx skillsauth add javiertarazon/agente-codex .github/skills/chrome-cdpInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatización de Google Chrome vía Chrome DevTools Protocol (CDP). Lanzar Chrome con depuración remota, controlar tabs, ejecutar JavaScript, navegar, hacer clic y escribir texto en páginas web.
.codex-agent/)| Script | Propósito |
|--------|-----------|
| start_chrome_cdp.ps1 | Lanzar Chrome con --remote-debugging-port |
| chrome_cdp.ps1 | Controlar Chrome: tabs, JS, eventos |
# Puerto por defecto: 9222
.\.codex-agent\start_chrome_cdp.ps1
# Puerto y URL personalizados
.\.codex-agent\start_chrome_cdp.ps1 -Port 9222 -Url "https://github.com"
Perfil de usuario para CDP: D:\BootRescue\chrome-codex-profile
(fallback: C:\BootRescue\chrome-codex-profile)
Respuesta de éxito:
{"status":"ok","browser":"Chrome/...","protocol":"1.3","debug_port":9222}
chrome_cdp.ps1).\.codex-agent\chrome_cdp.ps1 -Action tabs
.\.codex-agent\chrome_cdp.ps1 -Action title -TabMatch "GitHub"
.\.codex-agent\chrome_cdp.ps1 -Action eval `
-TabMatch "github.com" `
-Expression "document.title"
.\.codex-agent\chrome_cdp.ps1 -Action navigate `
-TabMatch "GitHub" `
-Url "https://github.com/javiertarazon/agente-codex"
.\.codex-agent\chrome_cdp.ps1 -Action click `
-TabMatch "GitHub" `
-Selector "#submit-button"
.\.codex-agent\chrome_cdp.ps1 -Action type `
-TabMatch "GitHub" `
-Selector "input[name='q']" `
-Text "openclaw agent"
| Parámetro | Tipo | Default | Descripción |
|-----------|------|---------|-------------|
| -Action | string | tabs | Acción a ejecutar |
| -Port | int | 9222 | Puerto CDP de Chrome |
| -TabMatch | string | — | Regex para filtrar tab por título o URL |
| -Expression | string | — | Código JS para -Action eval |
| -Selector | string | — | Selector CSS para click/type |
| -Text | string | — | Texto para -Action type |
| -Url | string | — | URL para -Action navigate |
# 1. Lanzar Chrome con CDP
.\.codex-agent\start_chrome_cdp.ps1 -Port 9222 -Url "https://example.com"
# 2. Verificar que Chrome está disponible
$tabs = .\.codex-agent\chrome_cdp.ps1 -Action tabs
$tabs | ConvertFrom-Json
# 3. Navegar y manipular
.\.codex-agent\chrome_cdp.ps1 -Action navigate -Url "https://target.com"
.\.codex-agent\chrome_cdp.ps1 -Action click -Selector "#login-btn"
.\.codex-agent\chrome_cdp.ps1 -Action type -Selector "#username" -Text "javie"
# 4. Extraer datos con JS
$result = .\.codex-agent\chrome_cdp.ps1 -Action eval `
-Expression "JSON.stringify(Array.from(document.querySelectorAll('h1')).map(e=>e.textContent))"
| Síntoma | Causa | Solución |
|---------|-------|----------|
| Connection refused :9222 | Chrome no iniciado | Ejecutar start_chrome_cdp.ps1 |
| No page tabs found | Solo tabs de extensiones | Abrir una URL normal en Chrome |
| No tab matched pattern | Regex sin coincidencia | Verificar con -Action tabs primero |
| Chrome no instalado | Path no encontrado | Verificar C:\Program Files\Google\Chrome\Application\chrome.exe |
risk: lowrisk: lowrisk: mediumrisk: highdevelopment
# SKILL: windows-admin ## Dominio Administración elevada de Windows: servicios, pagefile, Windows Update, BCD, EFI, drivers AHCI, WinRE, registro del sistema y operaciones `RunAs`. --- ## Scripts disponibles (en `.codex-agent/`) | Script | Propósito | Riesgo | |--------|-----------|--------| | `windows_light_admin.ps1` | Optimizar SO: pagefile, servicios bloat, bloqueo de WU | `high` | | `boot_remediation_admin.ps1` | Reparar BCD, drivers AHCI, respaldar EFI, habilitar WinRE | `high` | | `ru
tools
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
tools
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
development
# SKILL: task-tracker ## Dominio Gestión completa de la cola de tareas del workspace. Crear, actualizar, cerrar tareas en `.codex-agent/tasks.yaml` y registrar cada acción en `.codex-agent/audit-log.jsonl`. Mantener `.codex-agent/RESUME.md` actualizado para reanudación de sesión. --- ## Archivos del plano de control | Archivo | Propósito | |---------|-----------| | `.codex-agent/tasks.yaml` | Cola de tareas con estado, riesgo y pasos | | `.codex-agent/audit-log.jsonl` | Registro inmutable de