mindrally avatar

Puppeteer Automation

This one gives you solid Puppeteer patterns for browser automation in Node.js. It covers the essentials: launching browsers with the right args, navigation with proper wait strategies, element selection and interaction, screenshot and PDF generation, plus network interception for blocking resources or monitoring API calls. The code examples are clean async/await throughout, with actual error handling and retry logic instead of happy path nonsense. The waiting strategies section is especially useful since that's where most automation scripts break in production. Good for web scraping, testing, or any headless Chrome workflow where you need reliable patterns instead of figuring out waitForSelector options from scratch every time.

skills.sh installs
1.9K
GitHub stars
302
last updated
Aug 21, 2026

Install

$ npx -y skills add mindrally/skills --skill puppeteer-automation --agent claude-code

Installs into .claude/skills of the current project.

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']
  });

Sponsors

Details

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

More from mindrally/skills

All 240
1nvidia avatartilegym-adding-cutile-kernelnvidia/skillsAdd a new cuTile GPU kernel operator to TileGym. Covers dispatch registration in ops.py, cuTile backend implementation, __init__.py exports, test creation, and 1.9Kskills.sh installs
2vercel avatardevelop-ai-functions-examplevercel/aiDevelop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support, demonstra1.9Kskills.sh installs
3anthropics avatarbusiness-pulseanthropics/knowledge-work-pluginsProduces a one-page cross-functional business snapshot for SMB owners — cash position (QuickBooks), sales trend (PayPal/Square), pipeline movement (HubSpot), th1.9Kskills.sh installs
4nvidia avatarnemo-rl-docsnvidia/skillsDocumentation conventions for NeMo-RL. Covers docs/index.md updates and docstring format. Do NOT use for: bug fixes, test fixes, dependency bumps, refactoring, 1.8Kskills.sh installs
5capawesome-team avatarionic-angularcapawesome-team/skillsGuides the agent through Angular-specific patterns for Ionic app development. Covers project structure, standalone vs NgModule architecture detection, Angular R1.8Kskills.sh installs
6github avatargtm-product-led-growthgithub/awesome-copilotBuild self-serve acquisition and expansion motions. Use when deciding PLG vs sales-led, optimizing activation, driving freemium conversion, building growth equa1.8Kskills.sh installs