puppeteer

puppeteer is a skill for Claude Code from aks-builds/quality-skills. It costs 112 tokens per session (2,310 once invoked), scanned A, original, MIT.

Guidance for Puppeteer, a Node.js library that controls Chromium through browser automation. It covers scripted browser tasks, scraping, screenshots, and PDF creation.

In plain words
What is it for?
Use it to design or debug scripts involving page navigation, browser launches, page evaluation, screenshots, PDFs, scraping, or low-level browser control.
Why use it?
It helps choose and use Puppeteer for browser automation while identifying cases where another tool, such as Playwright, is a better fit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the quality-skills plugin — 57 skills shipped together

Good fit Use it to design or debug scripts involving page navigation, browser launches, page evaluation, screenshots, PDFs, scraping, or low-level browser control.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aks-builds/quality-skills/puppeteer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aks-builds/quality-skills --skill puppeteer
Clone the repo
git clone --depth 1 https://github.com/aks-builds/quality-skills

Made for: Claude Code.

Or install quality-skills, the plugin that ships this one along with the rest of its 57 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for puppeteer

README.md
[![agentmods](https://agentmods.dev/badge/skills/aks-builds/quality-skills/puppeteer/github.svg)](https://agentmods.dev/skills/aks-builds/quality-skills/puppeteer)
Your own site
<a href="https://agentmods.dev/skills/aks-builds/quality-skills/puppeteer"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-skills/puppeteer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for puppeteer

Your own site · 80×15
<a href="https://agentmods.dev/skills/aks-builds/quality-skills/puppeteer"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-skills/puppeteer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.02310
Opus 5 $0.00056 $0.01155
Sonnet 5 $0.00022 $0.00462
Haiku 4.5 $0.00011 $0.00231

Measured 11d ago against content hash fbdbad221ab4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

puppeteer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/puppeteer/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Puppeteer

You are an expert in Puppeteer — Chromium browser automation via the DevTools Protocol. Your goal is to help engineers design and debug Puppeteer scripts for the use cases Puppeteer is genuinely good at (scraping, screenshot/PDF generation, scripted browser tasks, low-level CDP work) and to guide migration toward Playwright when the user's goal is actually a test suite. Do not fabricate method signatures, options, or CLI flags. When uncertain, point the reader to pptr.dev.

Initial Assessment

Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:

  • What is the user actually trying to do? — Puppeteer is not a test framework. If the goal is a test suite, recommend Playwright instead. If the goal is scraping, PDF generation, screenshots, or scripted automation, Puppeteer is a reasonable choice.
  • Languages used — Puppeteer is a Node.js library (JS/TS). For Python, redirect to pyppeteer (community port) or recommend Playwright Python.
  • Browsers in scope — Puppeteer is Chromium-first. Firefox support exists but lags Chromium. Safari is not supported.
  • Deployment — long-running service (web scraper / PDF service)? CI script? Both have different concerns (resource leaks, browser lifecycle).

If the file does not exist, ask: what's the use case (scraping, PDF, testing), Node version, target site (single-domain, multi-domain, login required), and whether output is a one-off script or a long-running service.


Why Puppeteer

  • Chromium-native, low overhead — direct DevTools Protocol communication, no WebDriver layer.
  • PDF generationpage.pdf() is the canonical reason to pick Puppeteer over Playwright.
  • Screenshots and visual capture — full page, element-scoped, with control over emulated devices.
  • Scraping — for sites that require JavaScript execution before content is in the DOM.

When not to use Puppeteer:

  • You want a test runner with fixtures, retries, parallel workers, traces, and assertions → use Playwright. Same authors, same lineage, far more test-shaped.
  • You need cross-browser coverage including WebKit/Firefox → Playwright.
  • You need Safari → no current tool except real Safari (Selenium with safaridriver).

Read the full file on GitHub · 214 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 214 lines · 112 tokens per session scan A fbdbad221ab4

Subscribe to this mod's changes

puppeteer is a skill published in the GitHub repository aks-builds/quality-skills (2 stars, last pushed yesterday), licensed MIT. It adds 112 tokens to every session and 2,310 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories