Playwright pdf snapshot
Skill baronguyen001/ai-automation-skills/skills/playwright-pdf-snapshot
8 production-tested Claude skills: automation, Gemini cost/structured output, OSS bounty scouting, ML validation.
npx -y skills add baronguyen001/ai-automation-skills --skill playwright-pdf-snapshotAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Render any URL to a headless PDF or PNG snapshot with Playwright and no committed cookies. Use when the user asks to archive a page, capture a dashboard/report, make a PDF snapshot, or save a page screenshot for downstream review.
SKILL.md
2.1 KB, as published. Nobody here has run it
Playwright PDF Snapshot
Use this skill when a script needs a browser-rendered artifact from a URL: a PDF report, a full-page PNG, or a dashboard capture. The helper runs Chromium headless through Playwright, accepts optional extra headers from the caller, and does not ship cookies or credentials.
When to invoke
- User says: "save this page as PDF", "capture a PNG snapshot", "archive the dashboard", "render this report URL".
- The page needs browser rendering rather than a raw HTTP download.
When NOT to invoke
- The URL is a static file that can be downloaded directly.
- The page requires a persisted login session; use [[playwright-login-session]] first and keep state files gitignored.
Concrete example
User input:
Render the public report URL to both a PDF and a PNG after the run finishes.
Output:
# Copy assets/snapshot.py into your project, then:
from snapshot import snapshot
paths = snapshot("https://example.com/report", out_dir="artifacts", name="report")
print(paths)
Install Playwright in the target project with pip install playwright and python -m playwright install chromium. Do not commit cookies, storage state, or private headers.
Pattern to apply
- Use headless Chromium and wait for network idle or a specific selector before capturing.
- Save both PDF and PNG only when the downstream workflow needs both.
- Keep auth out of this helper; pass public URLs or combine with a local, gitignored Playwright state file.
- Use stable filenames so artifact upload steps can find them.
- Pair with object storage when snapshots need to survive the local run.
Reference: assets/snapshot.py.
Source
Distilled from production use across the author's automation projects. v1.0.0. See also: [[playwright-login-session]], [[s3-uploader]], [[csv-report-writer]].
→ Build the full runnable bot with Trawlkit.
Gives 0 of the 12 instructions most pdf office docs skills give
Counted across 635 of the 690 authors here whose files we hold, read 2026-08-06
- extract text using pdfplumberin 92 of 635, across 25 files
- create PDFs using reportlabin 83 of 635, across 16 files
- read FORMS.md to fill out PDF formsin 80 of 635, across 13 files
- OCR scanned PDFs using pytesseractin 77 of 635, across 10 files
- merge or split PDFs using qpdfin 70 of 635, across 3 files
- use Excel formulas instead of hardcoded calculated valuesin 68 of 635, across 12 files
- unpack edit xml and repack existing documentsin 63 of 635, across 8 files
- document sources for hardcoded valuesin 61 of 635, across 9 files
- write minimal python code without unnecessary commentsin 59 of 635, across 7 files
- run the recalculation script after adding or modifying formulasin 58 of 635, across 6 files
- fix all identified formula errors and recalculatein 58 of 635, across 6 files
- format years as text stringsin 57 of 635, across 5 files
Said here and by no other author read
- copy the snapshot helper into the project
- use headless Chromium
- save both PDF and PNG only when needed
- pass public URLs
- use stable filenames for artifacts
- upload snapshots to object storage
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.