Skip to content
Agentmart
Submit a tool

create-pdf

Convert Markdown files into professionally formatted PDF documents.

Skill by anoochit

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/anoochit-create-pdf

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Convert Markdown files into professionally formatted PDF documents. Use this skill whenever the user asks to "convert to pdf", "create pdf", "print markdown", "generate a pdf", or wants to export any Markdown content as a shareable document — even if they just say "save this as a file I can print" or "make a PDF version of this."

Use cases: documents, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/create-pdf

What's inside

Skill name
create-pdf
Description
Convert Markdown files into professionally formatted PDF documents. Use this skill whenever the user asks to "convert to pdf", "create pdf", "print markdown", "generate a pdf", or wants to export any Markdown content as a shareable document — even if they just say "save this as a file I can print" or "make a PDF version of this."
License
MIT
Instructions
41 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • generate_pdf.cjs
  • generate_pdf.cjs · scripts/

SKILL.md (first lines)

---
name: create-pdf
description: Convert Markdown files into professionally formatted PDF documents. Use this skill whenever the user asks to "convert to pdf", "create pdf", "print markdown", "generate a pdf", or wants to export any Markdown content as a shareable document — even if they just say "save this as a file I can print" or "make a PDF version of this."
---

# create-pdf

This skill provides a standardized workflow for converting Markdown documents into beautifully formatted PDF files using a bundled Node.js script powered by `md-to-pdf`.

## Prerequisites

The `generate_pdf.cjs` script requires `md-to-pdf` to be installed globally. Check and install in one step:

```bash
npm list -g md-to-pdf || npm install -g md-to-pdf
```

## Quick Start

Run the bundled generation script with the path to the target Markdown file:

```bash
node workspace/.skills/create-pdf/scripts/generate_pdf.cjs path/to/your_file.md
```

The script automatically:
1. Validates the file path.
2. Applies a clean, professional CSS stylesheet (typography, margins, code block formatting).
3. Sets appropriate print margins.
4. Saves the PDF to the same directory as the input file, with a `.pdf` extension.

## Workflow

1. **Check dependencies:** Run the prerequisite install command above before anything else.
2. **Verify the file exists:** Confirm the target `.md` file is accessible before running the script.
3. **Execute the script:** Run `generate_pdf.cjs` with the correct path.
4. **Confirm output:** The script prints `Success: PDF generated at path/to/your_file.pdf` on completion. If this line doesn't appear, treat it as a failure and surface the error to the user.
5. **Notify the user:** Share the path to the generated PDF so they can open or print it.

## Troubleshooting

* **`md-to-pdf` not found:** Run `npm install -g md-to-pdf` and retry.
* **Script exits without printing success:** Check stderr for the underlying error — most commonly a bad file path or unsupported Markdown syntax.
* **Styling looks off:** The bundled stylesheet handles standard Markdown. If the source file uses non-standard extensions (e.g. raw HTML, custom directives), output may vary.
* **Output location unclear:** The PDF always lands in the same directory as the input `.md` file — there is no output path argument. Move the file afterward if a different destination is needed.

From anoochit/nami-core, MIT.

More from anoochit/nami-core

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Jun 10, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from anoochit

Cite this page

create-pdf skill. Agent Mart. https://agentmart.dev/skills/anoochit-create-pdf (last updated 2026-10-24)