template-to-md

Convert PDF, Word, TXT, HTML, RTF, and TeX inputs into Markdown.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/xyh169/AI-Resume-Generator-Skill-AI-skill --skill template-to-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: template-to-md
Source: https://github.com/xyh169/AI-Resume-Generator-Skill-AI-skill/tree/main/resume-pipeline/1-template-to-md
Command: npx skills add https://github.com/xyh169/AI-Resume-Generator-Skill-AI-skill --skill template-to-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypandoc, pymupdf4llm, pymupdf, pdfplumber, docx, python-docx, bs4, beautifulsoup4, chardet, and includes scripts (resource) components.

What problem does it solve?

This Skill converts messy, multi-format inputs (PDF, DOCX, TXT, HTML, RTF, TEX) into a clean {OUTPUT_DIR}/raw_content.md that Stage 2 can consume, eliminating manual extraction and formatting bottlenecks.

Core Features & Use Cases

  • Automatic dependency installation, retry, and downgrade/fallback strategies to guarantee a successful conversion.
  • Support for multiple source formats (PDF, DOCX, TXT, HTML, RTF, TEX) and preservation of basic structure (headings, paragraphs, tables where possible).
  • Clear separation of concerns: Stage 1 handles parsing and raw content generation, leaving Stage 2 to rewrite and Stage 3 to render.

Quick Start

Use the Stage 1 Agent to convert an input file or folder into {OUTPUT_DIR}/raw_content.md.

Frequently Asked Questions about template-to-md

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

FAQPage Schema
How do I convert PDF and Word documents to Markdown automatically?

To convert PDF and Word documents to Markdown automatically, this tool parses inputs using per-format converters and outputs a clean raw_content.md file. It handles dependency installation and structure preservation to eliminate manual formatting.

What is the best way to extract text from messy PDFs and HTML files for document processing?

The best way to extract text from messy PDFs and HTML files is using a conversion tool with retry and fallback strategies. This ensures robust error handling and guarantees a non-empty Markdown output even from complex or degraded source documents.

Does this document conversion tool support TEX and RTF inputs?

Yes, this document conversion tool supports TEX and RTF inputs alongside PDF, DOCX, TXT, and HTML. It applies per-format converters to parse these source files and generate a Stage 2-ready Markdown file.

How do I handle missing dependencies when converting documents to Markdown?

To handle missing dependencies when converting documents to Markdown, this tool features automatic installation alongside retry and downgrade strategies. This robust error handling guarantees successful conversion without manual package management.

Why does PDF to Markdown conversion fail and how can fallback strategies help?

PDF to Markdown conversion often fails due to complex layouts or missing dependencies, but fallback strategies using alternative parsers like pymupdf and pdfplumber ensure extraction. This guarantees a non-empty raw_content.md output despite parsing errors.