document-converter

Convert text and structured data between document formats using Python, pandoc, and openpyxl.

15|3|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/moonlight-lupin/agent-skills --skill document-converter-moonlight-lupin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-converter
Source: https://github.com/moonlight-lupin/agent-skills/tree/main/productivity/document-converter
Command: npx skills add https://github.com/moonlight-lupin/agent-skills --skill document-converter-moonlight-lupin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, openpyxl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The Document Converter skill helps automate the process of converting document and data formats, enabling efficient document conversion for tasks that involve handling various file formats.

Core Features & Use Cases

  • Cross-format Conversion: Offers comprehensive document and data conversion, supporting popular formats such as Markdown, HTML, CSV, JSON, YAML, TOML, and others.
  • Automation for Workflow Efficiency: Saves time on file format conversion in administrative tasks and automated data workflows.
  • Use Case: A writer or content editor might use this skill to convert a Markdown document to PDF for a final review, or a data analyst to convert JSON data to CSV for spreadsheet analysis.

Quick Start

Convert a Markdown document to HTML with the following command:

python scripts/convert.py --input notes.md --from markdown --to html --output notes.html

Frequently Asked Questions about document-converter

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

FAQPage Schema
How do I convert a Markdown document to HTML using Python?

To convert a Markdown document to HTML, run the conversion script with Python by specifying the input file, source format, target format, and output path. This automated document conversion requires Python and pandoc to process the text formatting and generate the final HTML file.

Can I use openpyxl to convert JSON data to CSV for spreadsheet analysis?

Yes, you can convert JSON data to CSV for spreadsheet analysis by using Python's standard library alongside openpyxl. This document conversion approach automates data manipulation workflows, transforming structured data into a format suitable for spreadsheet review and analysis.

What file formats are supported for automated document conversion?

Automated document conversion supports popular formats including Markdown, HTML, CSV, JSON, YAML, and TOML. This cross-format capability allows efficient text and structured data transformation using Python, pandoc, and openpyxl to handle various file types.

Do I need pandoc installed to transform documents between different formats?

Yes, you need pandoc installed to perform certain document conversions. Alongside Python and the openpyxl library, pandoc acts as a required dependency to automate the format transformation process for workflows involving text and structured data manipulation.

What is the best way to automate file format conversion for administrative tasks?

The best way to automate file format conversion for administrative tasks is using a Python-based script that leverages pandoc and openpyxl. This approach streamlines workflow efficiency by programmatically handling document formatting and data manipulation across multiple supported formats.

Are there limitations when converting YAML to TOML using Python's standard library?

Limitations when converting YAML to TOML depend on the specific dependencies required for the transformation. While Python's standard library handles basic data manipulation, complex structured data conversions may require additional tools like pandoc to ensure accurate format transformation without data loss.