Agent skill

Md2pdf Export

by wentorai in wentorai/Research-Claw

Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension.

Custom licenceAuto-check: notesDocuments & Office

Install Md2pdf Export

skills CLI
$ npx skills add wentorai/Research-Claw --skill md2pdf-export -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/Research-Claw md2pdf-export --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/Research-Claw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/md2pdf-export .claude/skills/md2pdf-export && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
md2pdf-export
GitHub stars
858
Token cost
~2.1k tokens
SKILL.md length
568 words
Files
7 (incl. scripts, references)
Skills in repo
29
Repo updated
First seen
Licence
Custom licence

At a glance

Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension.

  • Works in 3 steps: Environment Check & Setup → Convert Markdown to HTML → Launch Headless Chrome & Export
  • The user asks to: export/convert/render markdown to PDF
  • SKILL.md covers Architecture Overview, Step 0: Environment Check &…, Step 1: Convert Markdown to HTML and Step 2: Launch Headless Chrome…, plus 5 more sections
  • Runs JavaScript and Shell scripts from its folder; calls node, bash and apt-get; reaches raw.githubusercontent.com

What it does

Md2pdf Export is an agent skill from wentorai/Research-Claw. Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension. Use this skill whenever the user asks to: export/convert/render markdown to PDF or image, generate a printable document from .md files, create publication-ready PDFs from markdown, set up a markdown-to-PDF pipeline, or install/configure the Node.js + Puppeteer + Chrome environment needed for headless rendering. Also trigger when the user mentions "md2pdf"…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/puppeteer-config.md`, `references/themes.md` and `scripts/md2pdf.js`).

It sits in Documents & Office, covering Markdown and PDF. It works with Puppeteer, Node.js and Visual Studio Code. The repository describes itself as: In the AI era, why can't everyone be a Principal Investigator?

When your agent uses it

  • The user asks to: export/convert/render markdown to PDF
  • Generate a printable document from .md files
  • Create publication-ready PDFs from markdown
  • Set up a markdown-to-PDF pipeline

Example prompts

  • “md2pdf”
  • “markdown export”
  • “puppeteer PDF”
  • “/md2pdf-export”

Requirements

  • Node.js
  • A Bash shell
  • Docker

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Environment Check & Setup
  2. Convert Markdown to HTML
  3. Launch Headless Chrome & Export

What it can do on your machine

Read from SKILL.md and the folder at commit 5015be7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (JavaScript and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • bash
    • apt-get
    • curl
    • nvm
    • npm
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • raw.githubusercontent.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Md2pdf Export loads about 2.1k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 188 tokens; SKILL.md has 568 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~188
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePipes a well-known installer script into a shellSKILL.md:62
    curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
  • NoteRuns commands with sudoSKILL.md:71
    sudo apt-get update && sudo apt-get install -y \

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 568 words (~2,137 tokens).

“The conversion pipeline mirrors Markdown Preview Enhanced's chromeExport():”

— opening of SKILL.md by wentorai, Custom licence
name
md2pdf-export

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references) in skills/md2pdf-export of wentorai/Research-Claw.

  • SKILL.md
  • references/puppeteer-config.md
  • references/themes.md
  • scripts/md2pdf.js
  • scripts/package-lock.json
  • scripts/package.json
  • scripts/setup-env.sh

Open the folder on GitHubat commit 5015be7

Compare with similar skills

Md2pdf Export next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Md2pdf Export compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Md2pdf Export this skillwentorai/Research-Claw858—~2.1kAutomated safety check: NotesCustom licence
Markdown PRD to HTML Rendererowainlewis/blueprint412—~1.3kAutomated safety check: PassMIT
Lov Any2pdflovstudio/any2pdf211—~2.4kAutomated safety check: NotesMIT
PullmdAeternaLabsHQ/pullmd486—~2.6kAutomated safety check: PassAGPL-3.0
MineruNebutra/MinerU-Skill122—~1.4kAutomated safety check: PassMIT
Markdown Exporterbowenliang123/markdown-exporter2711 repos~5.3kAutomated safety check: PassApache-2.0

Similar skills

  • Markdown PRD to HTML Renderer

    owainlewis/blueprint

    Converts a complete Markdown PRD or technical design into one verified, static HTML reading page without changing what it says.

    412 GitHub stars~1.3k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Lov Any2pdf

    lovstudio/any2pdf

    Convert Markdown documents to professionally typeset PDF files with reportlab.

    211 GitHub stars~2.4k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check: notes
  • Pullmd

    AeternaLabsHQ/pullmd

    Read any web page, document, or YouTube video as clean Markdown using PullMD.

    486 GitHub stars~2.6k tokensUpdated 17 days ago
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~1.4k tokensUpdated 14 days ago
    Documents & OfficeAuto-check passed
  • Markdown Exporter

    bowenliang123/markdown-exporter

    Convert Markdown text to DOCX, PPTX, XLSX, PDF, PNG, SVG, HTML, IPYNB, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and etc files.

    271 GitHub starsUsed in 1 repo~5.3k tokens
    Documents & OfficeAuto-check passed
  • Markdown Paged Guide

    BigStrongSun/ccswitchmulti

    Render Markdown manuals into polished per-page PNG images and PDF deliverables.

    121 GitHub stars~589 tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed

More from wentorai/Research-Claw

All 29 skills in this repo
  • Claude Code

    wentorai/Research-Claw

    Reference for using Claude Code CLI to handle complex coding tasks.

    858 GitHub stars~742 tokensUpdated 1 mo ago
    Auto-check passed
  • Building Screening Rubrics

    wentorai/Research-Claw

    Collaboratively build and refine paper screening rubrics through brainstorming, test-driven development, and iterative feedback

    858 GitHub starsUsed in 3 repos~4.5k tokens
    Auto-check passed
  • Codex CLI

    wentorai/Research-Claw

    Reference for using OpenAI Codex CLI to handle complex coding tasks.

    858 GitHub stars~684 tokensUpdated 1 mo ago
    Auto-check passed
  • Cleaning Up Research Sessions

    wentorai/Research-Claw

    Safely remove intermediate files from completed research sessions while preserving important data

    858 GitHub starsUsed in 3 repos~2.9k tokens
    Auto-check passed
  • Opencode CLI

    wentorai/Research-Claw

    Reference for using OpenCode CLI to handle complex coding tasks.

    858 GitHub stars~734 tokensUpdated 1 mo ago
    Auto-check: notes
  • Sci Papers Downloder

    wentorai/Research-Claw

    Search academic papers (OpenAlex no-key by default, or Scopus with a built-in key) and download full-text PDFs concurrently — OA direct link → Unpaywall → Sci-Hub fallback (on by default).

    858 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Md2pdf Export

What does Md2pdf Export do?

Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension. Md2pdf Export is an agent skill from wentorai/Research-Claw. Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension.

When should I use Md2pdf Export?

Md2pdf Export fits situations like: the user asks to: export/convert/render markdown to PDF; generate a printable document from .md files; create publication-ready PDFs from markdown; set up a markdown-to-PDF pipeline.

How do I install Md2pdf Export in Claude Code?

Run `npx skills add wentorai/Research-Claw --skill md2pdf-export -a claude-code`. Or copy the skill folder (skills/md2pdf-export in wentorai/Research-Claw) into .claude/skills/md2pdf-export in your project. Claude Code loads it when a task matches its description.

How do I install Md2pdf Export in Codex?

Run `npx skills add wentorai/Research-Claw --skill md2pdf-export -a codex`. Or copy the skill folder (skills/md2pdf-export in wentorai/Research-Claw) into .agents/skills/md2pdf-export in your project. Codex loads it when a task matches its description.

Can I use Md2pdf Export in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/Research-Claw --skill md2pdf-export -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/md2pdf-export, .gemini/skills/md2pdf-export, .github/skills/md2pdf-export and .opencode/skills/md2pdf-export in your project.

What does Md2pdf Export need to run?

Going by SKILL.md and its folder, Md2pdf Export needs JavaScript and a shell for the scripts in its folder and the command-line tools its instructions call (node, bash, apt-get, curl, nvm and npm). Our summary lists: Node.js; A Bash shell; Docker.

Does Md2pdf Export access the network?

SKILL.md names 1 domain. In commands or code: raw.githubusercontent.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Md2pdf Export safe to install?

Our automated static check of SKILL.md found notes only (pipes a well-known installer script into a shell; runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Md2pdf Export use?

Md2pdf Export has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Md2pdf Export use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Md2pdf Export?

Skills that share tags, products or a category with Md2pdf Export: Markdown PRD to HTML Renderer (owainlewis/blueprint, 412 stars), Lov Any2pdf (lovstudio/any2pdf, 211 stars), Pullmd (AeternaLabsHQ/pullmd, 486 stars) and Mineru (Nebutra/MinerU-Skill, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Md2pdf Export?

wentorai (a GitHub user) maintains it in wentorai/Research-Claw, which has 858 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on August 20, 2026.

Source: wentorai/Research-Claw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.