report-generation

Generate structured PDF reports from CSV, JSON, or SQL data.

364|53|Updated May 9, 2026
One-click install
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill report-generation-cosmicstack-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: report-generation
Source: https://github.com/cosmicstack-labs/mercury-agent-skills/tree/main/categories/pdf-generation/report-generation
Command: npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill report-generation-cosmicstack-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

You need to convert scattered data, charts, and narrative content into consistent, well-formatted PDF reports without spending days manually formatting documents.

Core Features & Use Cases

  • End-to-end PDF report pipeline: Builds a structured report from metadata, section configuration, and source data, producing a branded PDF output.
  • Template-driven, professional layout: Uses an HTML template (with styling, cover page, executive summary, tables, charts, and captions) rendered into a PDF.
  • Charts and tables from data: Generates charts (e.g., bar/line/pie) and embeds them alongside dynamically rendered tables and callout boxes.
  • Use Case: Create a quarterly business report by combining KPI tables, revenue trend charts, and executive narrative into a single shareable PDF for stakeholders.

Quick Start

Ask your agent: generate a structured PDF report from the file data/q4_metrics.csv using the report template and sections shown in the report-generation skill, and save the output as q4-performance-analysis.pdf.

Frequently Asked Questions about report-generation

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

FAQPage Schema
How do I generate a PDF report from CSV or JSON data automatically?

To generate a PDF report from CSV or JSON, this skill renders an HTML template with Jinja-style placeholders via a WeasyPrint pipeline, producing a structured PDF output with embedded charts, formatted tables, and an executive summary from your raw data inputs.

Can I embed charts and tables into a templated PDF document?

Yes, you can embed charts and tables into a templated PDF document. The skill generates bar, line, and pie charts from your source data and renders them alongside dynamically formatted tables and callout boxes within a branded HTML template.

What's the best way to create a stakeholder-ready executive summary from XLSX files?

The best way to create a stakeholder-ready executive summary from XLSX files is to define a coherent section schema and report metadata, then use the skill's template-driven layout to render narrative content, KPI tables, and charts into a polished PDF.

Does the report generation pipeline require a specific template structure?

Yes, the report generation pipeline requires a coherent section schema and metadata fields to ensure consistent document properties. It uses an HTML template with Jinja-style placeholders to map configuration and source data into structured report sections.

How do I convert SQL or API-derived data into a formatted PDF report?

You can convert SQL or API-derived data into a formatted PDF by feeding the extracted content into the skill as source data, which then processes it through the WeasyPrint-based rendering pipeline to produce a shareable PDF document with cover pages and captions.

What are the limitations of using WeasyPrint for data-to-pdf conversion?

A key limitation of using WeasyPrint for data-to-pdf conversion is that it requires a coherent HTML template structure and properly defined metadata fields; without a consistent section schema, the rendering pipeline cannot produce a properly formatted PDF document.