chrome-devtools
Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.
How to use
Zainstaluj zależności systemowe. Na Linux/WSL przejdź do folderu
.claude/skills/chrome-devtools/scriptsi uruchom./install-deps.sh, który automatycznie wykryje system i zainstaluje wymagane biblioteki. Na macOS i Windows ten krok pomiń — zależności są już wbudowane w Chrome.Zainstaluj zależności Node.js. W tym samym folderze uruchom
npm install, aby pobrać Puppeteera, debug i yargs.Opcjonalnie zainstaluj ImageMagick do automatycznej kompresji screenshotów. Na macOS użyj
brew install imagemagick, na Ubuntu/Debian/WSL użyjsudo apt-get install imagemagick. Bez niego screenshoty większe niż 5MB mogą się nie załadować w Claude.Przetestuj instalację. Uruchom
node navigate.js --url https://example.com— powinieneś otrzymać JSON z potwierdzeniem, URL-em i tytułem strony.Używaj dostępnych skryptów do automatyzacji.
navigate.jsotwiera strony,screenshot.jsrobi zrzuty ekranu,click.jsklika elementy,fill.jswypełnia pola formularza. Wszystkie skrypty znajdują się w folderzescriptsi zwracają wyniki w JSON.Zawsze sprawdź bieżący katalog (
pwd) przed uruchomieniem skryptów, aby upewnić się, że pracujesz w odpowiednim folderze.