Skip to content
Back to skills

Pdf Compressor

ASecurity

Compresses a given PDF file to reduce its size.

  • 21 stars
  • 0 votes
  • 1 copy
  • 17 views
  • Added September 7, 2026
designshell

Security analysis

A100/100

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

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill pdf-compressor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf Compressor?

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

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

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_compressor
description: "Compresses a given PDF file to reduce its size."
version: "1.0.0"
runtime: shell
entrypoint: "uv run src/main.py"

inputs:
  - name: pdf_path
    type: string
    description: "The absolute path to the PDF file to be compressed."
    required: true
  - name: compression_level
    type: integer
    description: "Compression level (1=Low, 2=Medium, 3=High). Defaults to 2."
    required: false
    default: 2

output:
  type: json
  description: "JSON object containing compression success status and data like the compressed file path, original size, and compressed size."
---

# PDF Compressor Skill

This skill is designed to compress a PDF file to reduce its size using standard optimization parameters. It is powered by PyMuPDF and offers three tunable compression levels depending on the user's needs.

## Usage Guide
When using this skill to compress a PDF, you should provide the `pdf_path` (absolute path to the target PDF) and optionally the `compression_level` (from 1 to 3). The skill will return the output path of the newly created compressed PDF.

- **Level 1 (Low)**: Basic compression, fastest.
- **Level 2 (Medium)**: Optimized compression, balanced speed and file size reduction (Default).
- **Level 3 (High)**: Deep optimization for maximum file size reduction.

Files in this skill

  • README.md2 KB
  • SKILL.md1.3 KB
  • pyproject.toml396 B
  • src/__init__.py26 B
  • src/compressor.py2.1 KB
  • src/main.py2.2 KB
  • src/models.py950 B
  • src/utils.py726 B

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 design →

Comments

Loading comments…

Newsletter

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