Extracts text and structures from PDFs, retaining LaTeX equations and formatting in Markdown.

Install

mkdir -p .claude/skills/marker && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2569" && unzip -o skill.zip -d .claude/skills/marker && rm skill.zip

Installs to .claude/skills/marker

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Convert PDF documents to Markdown using marker_single. Use when Claude needs to extract text content from PDFs while preserving LaTeX formulas, equations, and document structure. Ideal for academic papers and technical documents containing mathematical notation.
262 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Convert PDF to Markdown
  • Preserve LaTeX formulas
  • Maintain document structure
  • Configure conversion timeouts
  • Manage temporary output files

How it works

It uses the marker_single CLI to parse PDF content, specifically targeting the extraction of text and mathematical notation into Markdown format.

Inputs & outputs

You give it
PDF file path
You get back
Markdown text content

When to use marker

  • Converting research papers to markdown
  • Extracting formulas from PDFs
  • Digitizing technical documents

About this skill

Marker PDF-to-Markdown Converter

Convert PDFs to Markdown while preserving LaTeX formulas and document structure. Uses the marker_single CLI from the marker-pdf package.

Dependencies

  • marker_single on PATH (pip install marker-pdf if missing)
  • Python 3.10+ (available in the task image)

Quick Start

from scripts.marker_to_markdown import pdf_to_markdown

markdown_text = pdf_to_markdown("paper.pdf")
print(markdown_text)

Python API

  • pdf_to_markdown(pdf_path, *, timeout=600, cleanup=True) -> str
    • Runs marker_single --output_format markdown --disable_image_extraction
    • cleanup=True: use a temp directory and delete after reading the Markdown
    • cleanup=False: keep outputs in <pdf_stem>_marker/ next to the PDF
    • Exceptions: FileNotFoundError if the PDF is missing, RuntimeError for marker failures, TimeoutError if it exceeds the timeout
  • Tips: bump timeout for large PDFs; set cleanup=False to inspect intermediate files

Command-Line Usage

# Basic conversion (prints markdown to stdout)
python scripts/marker_to_markdown.py paper.pdf

# Keep temporary files
python scripts/marker_to_markdown.py paper.pdf --keep-temp

# Custom timeout
python scripts/marker_to_markdown.py paper.pdf --timeout 600

Output Locations

  • cleanup=True: outputs stored in a temporary directory and removed automatically
  • cleanup=False: outputs saved to <pdf_stem>_marker/; markdown lives at <pdf_stem>_marker/<pdf_stem>/<pdf_stem>.md when present (otherwise the first .md file is used)

Troubleshooting

  • marker_single not found: install marker-pdf or ensure the CLI is on PATH
  • No Markdown output: re-run with --keep-temp/cleanup=False and check stdout/stderr saved in the output folder

When not to use it

  • Non-technical documents without formulas
  • Documents requiring OCR for images

Prerequisites

marker-pdf packagePython 3.10+

Limitations

  • Requires marker-pdf installation
  • May require timeout adjustments for large files

How it compares

It is specialized for technical documents and LaTeX preservation, unlike general-purpose PDF text extractors.

Compared to similar skills

marker side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
marker (this skill)226moReviewBeginner
ml-paper-writing486moReviewAdvanced
notion-research-documentation56moNo flagsIntermediate
nsfc-research-content-writer44moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

ml-paper-writing

davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.

4897

notion-research-documentation

openai

Research across Notion and synthesize into structured documentation; use when gathering info from multiple Notion sources to produce briefs, comparisons, or reports with citations.

551

nsfc-research-content-writer

huangwb8

为 NSFC 正文"(二)研究内容"写作/重构,并同步编排"特色与创新"和"三年年度研究计划",输出可直接落到 LaTeX 模板的三个 extraTex 文件。适用于用户要写/改"研究内容、研究目标、关键科学问题、技术路线、创新点、三年计划/里程碑"等场景。

425

search-company-knowledge

atlassian

Search across company knowledge bases (Confluence, Jira, internal docs) to find and explain internal concepts, processes, and technical details. When Claude needs to: (1) Find or search for information about systems, terminology, processes, deployment, authentication, infrastructure, architecture, or technical concepts, (2) Search internal documentation, knowledge base, company docs, or our docs, (3) Explain what something is, how it works, or look up information, or (4) Synthesize information from multiple sources. Searches in parallel and provides cited answers.

211

ideate

liveloveapp

Capture and document a new idea in this repo. Use when the user says things like "help me brainstorm", "I have an idea", or "let's capture this for the future" and wants it recorded in `design/ideas/` with a summary, supporting research (repo context + web if useful), and a sketch.

12

consolidate-knowledge-base

gsemet

Interactively review the OKF knowledge base to detect contradictions between Findings, mark contradicted/superseded Findings, propose Experiments to resolve open questions, and propose promotions of converged Findings into stable Concept/Structure/Principle documents. Every mutation is confirmed by

00

Search skills

Search the agent skills registry