binary-factory

Generate DOCX, XLSX, and PDF documents from structured data using HTML templates.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Oscar-Ivan-Salas/PILi_Quarts_Doc --skill binary-factory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: binary-factory
Source: https://github.com/Oscar-Ivan-Salas/PILi_Quarts_Doc/tree/main/PILi_Quarts_V3.0/.agent/skills/binary-factory
Command: npx skills add https://github.com/Oscar-Ivan-Salas/PILi_Quarts_Doc --skill binary-factory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Binary Factory addresses the challenge of producing professional-grade documents (DOCX, XLSX, PDF) from structured data, eliminating manual, error-prone assembly across formats.

Core Features & Use Cases

  • HTML template-driven document generation: fills templates located in resources/templates to produce DOCX, XLSX, and PDF outputs.
  • Deterministic, mirror-based rendering: ensures what appears in HTML is reflected in the final binary.
  • Safe orchestration and contracts: uses the backend's N04_Binary_Factory module and models.py to govern communication and formatting.
  • Use case: Generate a multi-format client quote or project report from a single data payload.

Quick Start

Provide a structured payload with client details, items, and totals to the binary_factory engine to generate a formatted DOCX, XLSX, or PDF document.

Frequently Asked Questions about binary-factory

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

FAQPage Schema
How do I generate PDF and DOCX documents from structured data?

You generate PDF and DOCX documents by providing a structured payload containing client details and items to a template-driven generation engine. The engine fills HTML templates to produce high-fidelity DOCX, XLSX, or PDF files.

What is HTML template-driven document generation?

HTML template-driven document generation is the process of populating HTML templates with structured data to produce native DOCX, XLSX, and PDF files. It uses deterministic, mirror-based rendering to ensure the final binary output matches the HTML design.

Can I use HTML templates to create client quotes and project reports in multiple formats?

Yes, you can use HTML templates to create client quotes and project reports in multiple formats. A single structured data payload can generate high-fidelity DOCX, XLSX, and PDF documents, eliminating manual assembly across formats.

How do I ensure formatting contracts are enforced during document generation?

Formatting contracts are enforced during document generation through safe orchestration using backend models and dedicated generation modules. These govern communication and formatting to ensure deterministic, mirror-based rendering of the final output.

What are the limitations of using HTML templates for binary document generation?

A limitation of using HTML templates for binary document generation is the reliance on strict backend contracts and predefined templates in specific resource directories. Deviating from these structured payloads or template locations may break the deterministic rendering process.