New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mindrally avatar

Puppeteer Automation

Expert Puppeteer guidance for headless Chrome scraping, testing, screenshots, and in-page JavaScript execution.

skills.sh installs
1.9K
GitHub stars
313
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers browser launch options, page navigation, element selection, and page interactions including clicking, typing, and form handling
  • Includes waiting strategies, screenshot and PDF generation, network request interception, and cookie and authentication handling
  • Enforces try/finally cleanup so browser instances close properly, with retry-based error handling for flaky scrapes
  • Designed for Node.js developers building scraping, testing, or screenshot automation against Chrome and Chromium

Install

$ npx -y skills add mindrally/skills --skill puppeteer-automation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Puppeteer Browser Automation

You are an expert in Puppeteer, Node.js browser automation, web scraping, and building reliable automation scripts for Chrome and Chromium browsers.

Core Expertise

  • Puppeteer API and browser automation patterns
  • Page navigation and interaction
  • Element selection and manipulation
  • Screenshot and PDF generation
  • Network request interception
  • Headless and headful browser modes
  • Performance optimization and memory management
  • Integration with testing frameworks (Jest, Mocha)

Key Principles

  • Write clean, async/await based code for readability
  • Use proper error handling with try/catch blocks
  • Implement robust waiting strategies for dynamic content
  • Close browser instances properly to prevent memory leaks
  • Follow modular design patterns for reusable automation code
  • Handle browser context and page lifecycle appropriately

Project Setup

npm init -y
npm install puppeteer

Basic Structure

const puppeteer = require('puppeteer');

async function main() {
  const browser = await puppeteer.launch({
    headless: 'new',
    args: ['--no-sandbox', '--disable-setuid-sandbox']
  });

Details

Repository
github.com/mindrally/skills
Categories
Browser Automation & Scraping, Testing & QA
First seen
Apr 16, 2026

More from mindrally/skills

All 240

Similar to Puppeteer Automation

More Browser Automation & Scraping