kagen

Convert HTML documents to PDF using Chromium and Playwright.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/aarushlohit/TheRocketProject --skill kagen-aarushlohit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kagen
Source: https://github.com/aarushlohit/TheRocketProject/tree/main/rocket/external/shokunin/.pack/skills/kagen
Command: npx skills add https://github.com/aarushlohit/TheRocketProject --skill kagen-aarushlohit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, chromium, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of generating high-quality PDFs from Kami HTML templates, overcoming limitations of other tools on Windows.

Core Features & Use Cases

  • PDF Conversion: Converts HTML templates created in Kami to PDF format using Chromium and Playwright.
  • Compatibility: Ensures PDFs are compatible with various devices and platforms.
  • Use Case: Ideal for users who need to export documents from Kami to PDF for printing, archiving, or sharing.

Quick Start

Run the command npx playwright pdf "file:///path/to/doc.html" "output.pdf" to convert an HTML file to a PDF.

Frequently Asked Questions about kagen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert HTML to PDF using Playwright and Chromium?

To convert HTML to PDF using Playwright, run the command `npx playwright pdf "file:///path/to/doc.html" "output.pdf"` which uses Chromium to generate a high-quality PDF document from your HTML file.

Can I use Playwright for PDF conversion on Windows?

Yes, you can use Playwright for PDF conversion on Windows. This solution specifically overcomes limitations of other PDF conversion tools on Windows by using Chromium to ensure high-quality output and compatibility across devices.

What do I need to generate production-grade PDFs from Kami HTML templates?

To generate production-grade PDFs from Kami HTML templates, you need Node.js, Playwright, and the Chromium browser installed in your environment to execute the conversion scripts and render the output.

How does Chromium handle PDF conversion for HTML templates?

Chromium handles PDF conversion by rendering the HTML document exactly as it appears in a browser environment, ensuring that the resulting PDF maintains consistent layout, styling, and high-quality formatting across various platforms.

Is there a way to automate exporting Kami documents to PDF for archiving?

Yes, you can automate exporting Kami documents to PDF for archiving or printing by executing the Playwright PDF conversion command within your scripts to process the HTML templates and output the final PDF files.