rune-doc-processor

Generate and parse PDF, DOCX, XLSX, PPTX, and CSV office documents.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/dangvu008/VietTruyen --skill rune-doc-processor-dangvu008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rune-doc-processor
Source: https://github.com/dangvu008/VietTruyen/tree/main/.agents/skills/rune-doc-processor
Command: npx skills add https://github.com/dangvu008/VietTruyen --skill rune-doc-processor-dangvu008

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating or reading office documents like PDFs, spreadsheets, and slide decks requires picking the right library, writing boilerplate code, and verifying output — this Skill handles that entire workflow as a reusable document format utility. ## Core Features & Use Cases - Document Generation: Produce PDF, DOCX, XLSX, PPTX, CSV, and HTML files from markdown, data objects, or templates using libraries like Puppeteer, ExcelJS, and pptxgenjs. - Document Parsing: Extract structured content (sheets, rows, slides, pages) from uploaded office files into consistent JSON output. - Use Case: A marketing workflow needs a PDF report from markdown content — this Skill renders the markdown to HTML, converts it via Puppeteer, and verifies the output file exists and is valid. ## Quick Start Ask the agent to generate a PDF report from your markdown file, or to parse an uploaded XLSX spreadsheet into structured JSON data.

Frequently Asked Questions about rune-doc-processor

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

FAQPage Schema
How do I generate a PDF from markdown in Node.js?

Convert markdown to HTML with the marked library, then render it to PDF using Puppeteer's page.pdf() method with A4 format and margins. This HTML-intermediate strategy gives the best layout fidelity for styled documents.

What library should I use to create XLSX files in JavaScript?

ExcelJS is the recommended library for generating XLSX files in Node.js. It supports column headers, styled header rows with bold fonts and fill colors, and writing workbooks directly to disk.

How do I choose between Node.js and Python document libraries?

Detect the project language from context: use Node.js libraries (ExcelJS, pptxgenjs, docx) for Node projects and Python libraries (openpyxl, python-docx, python-pptx) for Python projects. If unclear, default to Node.js for its wider ecosystem.

Why does PDF generation fail without a headless browser?

Puppeteer requires a Chromium binary to render HTML to PDF, which may be missing in some environments. If Chromium is unavailable, fall back to jsPDF for direct PDF generation without a browser dependency.

What happens when parsing a malformed or corrupt office file?

Parse mode handles malformed files gracefully by reporting errors instead of crashing. Extracted content is returned as structured JSON with format-specific fields like sheets for XLSX or slides for PPTX.