agentleFS
mrslbtmrslbt/pdf-it/SKILL.md

SKILL.md

Skill2 starsChanged 6 months agoMITView on GitHub

Convert a Claude session, research artifact, or markdown blob into a designed PDF: cover page, auto-generated table of contents, styled body, page-numbered footer. One tool call. Trigger on any of the following (or close variations): This skill requires the pdf-it-mcp MCP server. If it is not connected, prompt the user to install and connect it first (see Setup below). Do NOT fall back to Chrome headless (--print-to-pdf), cupsfilter, wkhtmltopdf, pandoc, or LaTeX. Those bypass the cover, TOC, page-break, and embedded-font…

  • Installs packages

200 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 119 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do NOT fall back to Chrome headless (--print-to-pdf), cupsfilter, wkhtmltopdf, pandoc, or LaTeX.

    line 23
  2. Distinctive:

    plain: No cover, no TOC. Dense, clean body.

    line 50
  3. Distinctive:

    Ask for a title if not obvious from context.

    line 55
  4. Very specific:

    Call generate_pdf with the content and any available metadata.

    line 56
  5. Distinctive:

    Do not ask for author unless the user has mentioned their name earlier in the conversation.

    line 58

“Common” is measured: kept by at least 6 in 10 of the 119 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

pdf-it

Convert a Claude session, research artifact, or markdown blob into a designed PDF: cover page, auto-generated table of contents, styled body, page-numbered footer. One tool call.

When to use this skill

Trigger on any of the following (or close variations):

  • "save this as PDF"
  • "export as PDF"
  • "make a PDF report from this"
  • "turn this into a PDF"
  • "generate a PDF"
  • "/pdf"
  • "create a report"
  • "I want a PDF of this research"
  • "PDF this"

How to use

This skill requires the pdf-it-mcp MCP server. If it is not connected, prompt the user to install and connect it first (see Setup below).

Do NOT fall back to Chrome headless (--print-to-pdf), cupsfilter, wkhtmltopdf, pandoc, or LaTeX. Those bypass the cover, TOC, page-break, and embedded-font logic this server provides. If generate_pdf errors, fix the input and retry. Don't switch tools.

Basic usage

generate_pdf({
  content: "<markdown content>",
  title: "<document title>",
  author: "<author name>"
})

The PDF saves to ~/Documents/pdf-it/{slug}-{timestamp}.pdf and the path is returned.

Parameters

ParameterRequiredDescription
contentYesMarkdown string to convert
titleNoShown on cover page and footer
authorNoShown on cover page
output_pathNoCustom output path. Absolute (/Users/...) or tilde-prefixed (~/Desktop/x.pdf) both work
templateNoresearch-report (default) or plain

Templates

  • research-report: Cover page with title/author/date, auto-generated table of contents from H1/H2 headings, styled body, page-numbered footer. Best for research, summaries, briefings, and reports.
  • plain: No cover, no TOC. Dense, clean body. Best for short notes and single-page documents.

Behavior

  1. Collect the content to convert. This may be the current conversation, a file the user has provided, or content they paste.
  2. Ask for a title if not obvious from context.
  3. Call generate_pdf with the content and any available metadata.
  4. Return the output path to the user.
  5. Do not ask for author unless the user has mentioned their name earlier in the conversation.

Example interaction

User: Save this as a PDF Claude: Generating PDF with the research-report template… (calls generate_pdf) Claude: Done. Your PDF is at ~/Documents/pdf-it/my-research-2026-06-07T14-30-00.pdf

Setup

Install the MCP server

npm install -g pdf-it-mcp

Or run on demand with npx -y pdf-it-mcp.

Add to your client config

Claude Desktop, Claude Code, Cursor, Cline, Continue, Zed, and Goose all use the same shape:

{
  "mcpServers": {
    "pdf-it": {
      "command": "npx",
      "args": ["-y", "pdf-it-mcp"]
    }
  }
}

For Claude Code specifically:

claude mcp add pdf-it -- npx -y pdf-it-mcp

Requirements

  • Node.js 20 or newer.
  • Nothing else to install. The renderer (@react-pdf/renderer) and all fonts (Newsreader, JetBrains Mono, DM Sans) ship inside the package.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.