yq-pdf-generator for Openclaw

An efficient skill for converting web content, slides, and HTML documents into beautifully styled PDFs via deployed previews and optimized print styling.

tianheihei002
v1.0.0
May 31, 2026
0
628
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install yq-pdf-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install yq-pdf-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is yq-pdf-generator?

yq-pdf-generator is a specialized utility designed for AI coding agents to convert HTML files, presentation decks, or web URLs into high-quality PDF documents. Instead of relying on heavy, unstable server-side headless browsers like Playwright, this skill deploys the HTML with native @media print styles, enabling users to export pixel-perfect PDFs locally via their browser's print dialog (Ctrl+P/Cmd+P).

By leveraging the native rendering power of the user's browser, this skill bypasses server-side limitations, fully preserves complex CSS layouts, and ensures long-term availability of generated links. It is one of the most reliable Openclaw Skills for handling documents, slide decks, and dark-themed visual roadmaps without losing styling details.

yq-pdf-generator Use Cases

  • HTML Document Conversion: Convert web-based documentation or reports directly into printable PDF files.
  • Slide Decks & Presentations: Export custom presentation slides designed in HTML with layout and pagination preserved.
  • Learning Roadmaps & Visual Guides: Render interactive maps or visual learning guides containing dark themes and deep styles cleanly to PDF.
  • Client-Side Secure PDF Generation: Avoid exposing sensitive HTML documents to server-side PDF renderers by utilizing client-side printing.

How yq-pdf-generator Works

  1. HTML Preparation: The system compiles the target HTML content and embeds @media print CSS rules, saving it to /workspace/dist/index.html.
  2. Static Deployment: The compiled site is deployed using the deploy tool to generate a publicly accessible preview URL.
  3. User-Triggered Export: The AI agent provides the deployment URL along with standard print instructions (such as selecting 'Save as PDF' and enabling 'Background graphics').
  4. Local Rendering: The user opens the link and presses Ctrl+P (or Cmd+P on macOS) to cleanly print the rendered page locally with fully preserved dark themes.

yq-pdf-generator Setup

To integrate this skill into your environment, prepare the target deployment directory structure and ensure the deployment tool is available.

# Step 1: Create the distribution directory
mkdir -p /workspace/dist

# Step 2: Copy your target HTML source into the distribution folder
cp /workspace/source_file.html /workspace/dist/index.html

# Step 3: Trigger deployment
deploy --dist_dir /workspace/dist --project_name "Your Project Name"

Ensure that your HTML templates include print-specific styling rules to retain correct coloring and layout.

yq-pdf-generator Data Schema & Taxonomy

The skill maintains files in a temporary deployment directory for static hosting before clean conversion:

Path Description Retention
/workspace/dist/index.html The active HTML payload containing inline CSS styling and @media print configurations. Overwritten each run
/workspace/dist/assets/ (Optional) Locally referenced assets, fonts, or images. Persistent per deployment
/workspace/source_file.html Original raw user-provided HTML backup. User-defined path

yq-pdf-generator Advanced Features

  • Preserved Dark Theme Support: Includes built-in dark background @media print overrides ensuring backgrounds don't turn white during local printing.
  • Multi-Agent Deployment Compatibility: Built to integrate with other Openclaw Skills for seamless file handoffs and pipeline automations.
  • Zero Server-Side GUI Overhead: Completely avoids unstable headless browser configurations by utilizing native user-agent layout engines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*