Claude Code
bentopdf ships a first-class Claude Code skill. Once installed, you can ask Claude to convert files to PDF and it will use bentopdf under the hood.
Install the skill
Section titled “Install the skill”The fastest way is via the skills CLI:
npx skills add lokkju/bentopdf-sh -a claude-codeThis clones the skill from the skills/to-pdf/ directory in this repository into your Claude Code skills directory (~/.claude/skills/to-pdf/).
Manual install (plugin)
Section titled “Manual install (plugin)”Alternatively, install the full Claude Code plugin, which includes the skill plus plugin metadata:
# Copy the plugin directory into your Claude plugins foldercp -r .claude-plugin ~/.claude/plugins/bentopdfOr add it to your project’s .claude/ directory for project-scoped access.
What the skill does
Section titled “What the skill does”When active, Claude will recognise requests like:
- “Convert report.docx to PDF”
- “Turn these slides into a PDF”
- “Make a PDF from all the markdown files in this directory”
Claude translates those into bentopdf to-pdf commands and runs them in your terminal.
Example prompts
Section titled “Example prompts”Convert the file at ~/Downloads/quarterly-report.docx to PDF and put it on my Desktop.Convert all the .md files in ./docs to PDF, output them to ./pdfs/.I have a bunch of screenshots in ./screenshots — merge them into a single PDF.Trigger phrases
Section titled “Trigger phrases”The skill activates on any of:
- “convert * to pdf” / “make * a pdf”
- “export * as pdf”
- “pdf from *”
- Anything involving
bentopdfdirectly
Availability check
Section titled “Availability check”The skill checks that bentopdf is available before running. If not found, it suggests installing via npm install -g bentopdf-sh.