Skip to content
Back to skills

Pdf Generator

ASecurity

Use when the user wants to turn plain text (notes, a report, a letter, generated content) into a PDF file saved on disk.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongo

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add OyadotAI/keel --skill pdf-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdf Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oyadotai-pdf-generator/badge)](https://www.skillsdirectory.com/skills/oyadotai-pdf-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pdf-generator
metadata:
  generated-by: keel
description: "Use when the user wants to turn plain text (notes, a report, a letter, generated content) into a PDF file saved on disk."
---

# PDF Generator

Writes plain text, with an optional bold title, into a paginated US Letter PDF. Uses only the Python standard library.

## How to run

```
python3 .claude/skills/pdf-generator/scripts/run.py '{"text": "First paragraph.\n\nSecond paragraph goes here.", "title": "Weekly Report", "output_path": "out/report.pdf"}'
```

Inputs:
- `text` (required): the body text. Newlines are kept, and long lines wrap automatically.
- `title` (optional): a bold heading on page 1, also saved as the PDF's document title.
- `output_path` (optional, default `document.pdf`): where the file is written. Missing parent folders are created.
- `font_size` (optional, 6–72, default 11).

Output is one line of JSON:

```
{"path": "/abs/path/out/report.pdf", "pages": 1, "bytes": 1432}
```

On failure it prints `{"error": "..."}` and exits with code 1.

## Environment variables

None.

## When to use

Use this skill when the user asks for text to be saved as a PDF. If the user wants a summary or rewrite, write that text yourself first, then pass the finished text in. The skill uses plain Helvetica only, so there are no images, tables, or Markdown styling. Characters outside Latin-1 (such as emoji or CJK) show up as `?`, so tell the user about this if their text contains them. Afterwards, report the returned `path` to the user.

Files in this skill

  • SKILL.md1.5 KB
  • schema.json760 B
  • scripts/run.py3.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.