playwrightpdf
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "playwrightpdf" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-94931f50e741335179c06e732497f49cb4c0d43ad04741e1c0122ef96c3d418e. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/playwright-pdf-export-automation before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generate headless PDFs from web pages using Playwright's chromium.launch() API, with customization via Playwright's page.pdf() options. Supports A4/Letter paper sizes, header/footer templates, and margin configuration through Playwright's PDFOptions.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "Playwright PDF 导出自动化"
slug: "playwright-pdf-export-automation"
version: "1.0.0"
displayName: "Playwright PDF 导出自动化"
summary: "使用 Playwright 的 chromium.launch() API 从网页自动进行无头 PDF 生成,支持自定义的 page.pdf() 选项。支持 A4/Letter 尺寸、页眉/页脚模板以及通过 Playwright 的 PDFOptions 接口配置边距。"
license: "MIT"
description: "使用 Playwright 的 chromium.launch() API 从网页自动进行无头 PDF 生成,支持自定义的 page.pdf() 选项。支持 A4/Letter 尺寸、页眉页脚模板以及通过 Playwright 的 PDFOptions 接口配置边距。"
github_stars: 86409
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Browser Automation"
framework: "Claude Code"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 86409
npm_package: "playwright"
npm_weekly_downloads: 47883561Playwright PDF 导出自动化
Automates headless PDF generation from web pages using the Playwright chromium.launch() API with custom page.pdf() options. Supports A4/Letter sizing, header/footer templates, and configurable margins via Playwright's PDFOptions interface.
Installation
Use the upstream install or setup path that matches your environment:
- npm install -g @playwright/cli@latest
- npm i playwright
Requirements and caveats from upstream:
Basic usage or getting-started notes:
-
bash
-
Optionally install skills for richer agent integration:
-
playwright-cli install --skills
-
Extracted from upstream docs: https://raw.githubusercontent.com/microsoft/playwright/HEAD/README.md
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Playwright 无头 PDF 生成功能,满足网页转 PDF 的常见需求
- 支持自定义页面选项、A4/Letter 尺寸、页眉页脚模板和边距配置,功能较为全面
Highlights
- description 明确描述了核心功能,包含关键触发词如 'Playwright'、'chromium.launch()'、'page.pdf()' 等
- 触发词覆盖合理,边界清晰,能有效区分其他 Skill
Areas to improve
-
缺少详细步骤和端到端示例 Reported severity: Major
文档仅包含 Installation 和 Basic usage 部分,缺少详细的 Phase/步骤划分、端到端示例和明确的出口条件
Recommendation: 建议添加详细的操作步骤、完整的端到端示例以及明确的出口条件,帮助用户更好地理解和使用该 Skill
Highlights
- frontmatter 完整,包含必要的元数据信息
- 提供了 npm 安装命令和基础使用说明
Areas to improve
-
主要异常未处理 Reported severity: Major
未覆盖主要异常情况(如网络错误、页面加载失败、PDF 生成失败等),也未提及不可逆操作的确认机制
Recommendation: 建议添加异常处理机制,覆盖网络错误、页面加载失败、PDF 生成失败等常见异常情况,并为不可逆操作添加确认机制
Highlights
- 工具来源明确(Playwright),参数正确
- 提供了基础的安装和使用说明
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 28, 29
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- playwright.dev
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.