Agent skill

Marker

by benchflow-ai in benchflow-ai/skillsbench

Convert PDF documents to Markdown using markersingle. An agent skill from benchflow-ai/skillsbench.

Apache-2.0Auto-check passedDocuments & Office

Install Marker

skills CLI
$ npx skills add benchflow-ai/skillsbench --skill marker -a claude-code

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

GitHub CLI
$ gh skill install benchflow-ai/skillsbench marker --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/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks/latex-formula-extraction/environment/skills/marker .claude/skills/marker && 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
marker
GitHub stars
1.8k
Token cost
~520 tokens
SKILL.md length
159 words
Files
2 (incl. scripts)
Skills in repo
180
Repo updated
First seen
Licence
Apache-2.0

At a glance

Convert PDF documents to Markdown using markersingle. An agent skill from benchflow-ai/skillsbench.

  • Claude needs to extract text content from PDFs while preserving LaTeX formulas
  • SKILL.md covers Dependencies, Quick Start, Python API and Command-Line Usage, plus 2 more sections
  • Runs Python scripts from its folder; calls python and pip
  • Document structure

What it does

Marker is an agent skill from benchflow-ai/skillsbench. Convert PDF documents to Markdown using markersingle. 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.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/marker_to_markdown.py`).

It sits in Documents & Office, covering PDF, LaTeX and Markdown. It works with LaTeX. The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.

When your agent uses it

  • Claude needs to extract text content from PDFs while preserving LaTeX formulas
  • Document structure

Example prompts

  • “/marker”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9a1f4dd. 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 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    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

Marker loads about 520 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 159 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~520

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 passed

The automated check found no risky patterns in SKILL.md.

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

The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 159 words, ~520 tokens.

Download SKILL.mdSave it as .claude/skills/marker/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
marker
description
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.

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

python
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

bash
# 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

© benchflow-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in tasks/latex-formula-extraction/environment/skills/marker of benchflow-ai/skillsbench.

  • SKILL.md
  • scripts/marker_to_markdown.py

Open the folder on GitHubat commit 9a1f4dd

Compare with similar skills

Marker 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.

Marker compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Marker this skillbenchflow-ai/skillsbench1.8k—~520Automated safety check: PassApache-2.0
Md To PDF Academicwentorai/research-plugins2981 repos~1.8kAutomated safety check: NotesMIT
MineruNebutra/MinerU-Skill122—~504Automated safety check: PassMIT
Lecture To Mdysyecust/lecture-to-notes269—~3.9kAutomated safety check: PassCustom licence
Chinese Copyright Applicationokooo5km/Skills4U183—~2.8kAutomated safety check: NotesMIT
Z Md To PDFtjxj/z-skills545—~711Automated safety check: PassMIT

Similar skills

  • Md To PDF Academic

    wentorai/research-plugins

    Convert Markdown to publication-quality PDF with LaTeX math rendering

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Documents & OfficeAuto-check: notes
  • Mineru

    Nebutra/MinerU-Skill

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

    122 GitHub stars~504 tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Lecture To Md

    ysyecust/lecture-to-notes

    把课堂视频(本地或 B 站/YouTube)、文字稿、课件三者(任意组合)整理成一份详细的中文 Markdown 课堂笔记,输出按课程标题命名的 {titlename}.md(首行为 文档标题)+ 相对路径图片。Markdown 工作流,与上游 lecture-to-notes 的 LaTeX/PDF 输出并行存在;上游 skill 完全不动。触发词:markdown 笔记、md 笔记、视频转…

    269 GitHub stars~3.9k tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed
  • 中国软件著作权申请材料生成工具。申请表直接输出 Markdown 提交,源程序/用户手册/设计说明书三份生成 LaTeX 并编译为 PDF。自动分析项目代码,生成四份材料(前后各30页共60页源程序、含页眉页脚的用户手册和设计说明书、Markdown…

    183 GitHub stars~2.8k tokensUpdated today
    Documents & OfficeAuto-check: notes
  • Z Md To PDF

    tjxj/z-skills

    将 Markdown、Obsidian 笔记、技术文章、白皮书或长文排成中文 PDF。用户说“转成 PDF”“Markdown 转 PDF”“md 转 pdf”“排版成电子书”“生成指定风格 PDF”“一次生成多种风格”“学术风/书籍风/报告风”,或要编译 my-girlfriend-jingtian-latex 项目时,都应使用本…

    545 GitHub stars~711 tokensUpdated 15 days ago
    Documents & OfficeAuto-check passed
  • Md To PDF

    Mathews-Tom/armory

    Convert Markdown to styled PDFs with Mermaid diagrams, LaTeX/KaTeX math, tables, and code highlighting.

    327 GitHub stars~2.4k tokensUpdated yesterday
    Documents & OfficeAuto-check passed

More from benchflow-ai/skillsbench

All 180 skills in this repo
  • Lean4 Memories

    benchflow-ai/skillsbench

    This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…

    1.8k GitHub stars~3.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Senior Data Engineer

    benchflow-ai/skillsbench

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.

    1.8k GitHub stars~5.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Ac Branch Pi Model

    benchflow-ai/skillsbench

    AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.

    1.8k GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Civ6lib

    benchflow-ai/skillsbench

    Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • D3 Visualization

    benchflow-ai/skillsbench

    Build deterministic, verifiable data visualizations with D3.js (v6).

    1.8k GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Dc Power Flow

    benchflow-ai/skillsbench

    DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~717 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Marker

What does Marker do?

Convert PDF documents to Markdown using markersingle. An agent skill from benchflow-ai/skillsbench. Marker is an agent skill from benchflow-ai/skillsbench. Convert PDF documents to Markdown using markersingle.

When should I use Marker?

Marker fits situations like: Claude needs to extract text content from PDFs while preserving LaTeX formulas; document structure.

How do I install Marker in Claude Code?

Run `npx skills add benchflow-ai/skillsbench --skill marker -a claude-code`. Or copy the skill folder (tasks/latex-formula-extraction/environment/skills/marker in benchflow-ai/skillsbench) into .claude/skills/marker in your project. Claude Code loads it when a task matches its description.

How do I install Marker in Codex?

Run `npx skills add benchflow-ai/skillsbench --skill marker -a codex`. Or copy the skill folder (tasks/latex-formula-extraction/environment/skills/marker in benchflow-ai/skillsbench) into .agents/skills/marker in your project. Codex loads it when a task matches its description.

Can I use Marker 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 benchflow-ai/skillsbench --skill marker -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/marker, .gemini/skills/marker, .github/skills/marker and .opencode/skills/marker in your project.

What does Marker need to run?

Going by SKILL.md and its folder, Marker needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does Marker access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Marker safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. 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 Marker use?

Marker is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Marker use?

About 520 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Marker?

Skills that share tags, products or a category with Marker: Md To PDF Academic (wentorai/research-plugins, 298 stars), Mineru (Nebutra/MinerU-Skill, 122 stars), Lecture To Md (ysyecust/lecture-to-notes, 269 stars) and Chinese Copyright Application (okooo5km/Skills4U, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Marker?

benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,832 GitHub stars. The repository holds 180 skills in this directory. The repository was last updated on July 23, 2026.

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