Agent skill

PDF Compressor

by minicoohei in minicoohei/ai-agent-camp

大きなPDFファイルを圧縮するスキル。ファイルサイズを最大98%削減. An agent skill from minicoohei/ai-agent-camp.

No licenceAuto-check passedDocuments & Office

Install PDF Compressor

skills CLI
$ npx skills add minicoohei/ai-agent-camp --skill pdf-compressor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install minicoohei/ai-agent-camp pdf-compressor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/minicoohei/ai-agent-camp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pdf-compressor .claude/skills/pdf-compressor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pdf-compressor
GitHub stars
347
Token cost
~544 tokens
SKILL.md length
161 words
Files
5 (incl. scripts)
Skills in repo
37
Repo updated
First seen
Licence
None found

At a glance

大きなPDFファイルを圧縮するスキル。ファイルサイズを最大98%削減. An agent skill from minicoohei/ai-agent-camp.

  • Works in 4 steps: Convert PDF pages to images at specified… → Resize images to target width… → Compress as JPEG with quality setting → …
  • Tasks that involve PDF
  • SKILL.md covers Workflow, Usage, Parameters and Quality Presets, plus 3 more sections
  • Runs Python scripts from its folder; calls python, brew and apt-get

What it does

PDF Compressor is an agent skill from minicoohei/ai-agent-camp. 大きなPDFファイルを圧縮するスキル。ファイルサイズを最大98%削減。 「PDFを圧縮して」「PDFを軽くして」「ファイルサイズを小さくして」等のリクエストで発動。

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `SKILL.en.md`, `SKILL.es.md` and `agents/openai.yaml`).

It sits in Documents & Office, covering PDF. The repository describes itself as: AI Agent Camp — non-engineer-friendly AI agent training curriculum. Lessons, skills, commands, and hooks for Claude Code, Cursor, and Codex.

When your agent uses it

  • Tasks that involve PDF

Example prompts

  • “/pdf-compressor”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Convert PDF pages to images at specified DPI
  2. Resize images to target width (maintaining aspect ratio)
  3. Compress as JPEG with quality setting
  4. Rebuild PDF from compressed images

What it can do on your machine

Read from SKILL.md and the folder at commit 048ba4c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • brew
    • apt-get

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PDF Compressor loads about 544 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 161 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~544

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 161 words (~544 tokens).

“Compress PDF files by converting pages to optimized images and rebuilding the PDF.”

— opening of SKILL.md by minicoohei
name
pdf-compressor
triggers
PDFを圧縮して, PDFを軽くして, ファイルサイズを小さくして, pdf-compressor, PDF compress, PDFが重い

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (scripts) in skills/pdf-compressor of minicoohei/ai-agent-camp.

  • SKILL.md
  • SKILL.en.md
  • SKILL.es.md
  • agents/openai.yaml
  • scripts/compress.py

Open the folder on GitHubat commit 048ba4c

Compare with similar skills

PDF Compressor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PDF Compressor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PDF Compressor this skillminicoohei/ai-agent-camp347—~544Automated safety check: PassNone
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
GenOffice Document CLIgenspark-ai/genoffice8.9k—~19kAutomated safety check: PassApache-2.0
Harness Book Best Practicewquguru/harness-books3.2k—~4.1kAutomated safety check: PassNone
Bookforge Korean Ebook PDF Makergongnyang/bookforge3141 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    8.9k GitHub stars~19k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Harness Book Best Practice

    wquguru/harness-books

    Best practices for working on the Harness books repo. An agent skill from wquguru/harness-books.

    3.2k GitHub stars~4.1k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • Produces book-style Korean ebook PDFs from a topic or finished manuscript, with six design styles, real book parts and quality-check gates before output.

    314 GitHub starsUsed in 1 repo~1.7k tokens
    Documents & OfficeAuto-check passed
  • Instrument Data To Allotrope

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.

    274 GitHub starsUsed in 2 repos~2.7k tokens
    Documents & OfficeAuto-check passed

More from minicoohei/ai-agent-camp

All 37 skills in this repo
  • Exploratory Data Analysis

    minicoohei/ai-agent-camp

    200以上のファイル形式に対応した探索的データ分析(EDA)スキル. An agent skill from minicoohei/ai-agent-camp.

    347 GitHub stars~3.5k tokensUpdated yesterday
    Auto-check passed
  • Content Optimizer

    minicoohei/ai-agent-camp

    コンテンツのA/Bテスト・自己改善ループを支援するプランナースキル. An agent skill from minicoohei/ai-agent-camp.

    347 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check: notes
  • Video Editor

    minicoohei/ai-agent-camp

    TikTok/YouTube向け動画編集スキル。ffmpegでキャプション焼き込み、 Ken Burnsエフェクト、シーン結合、音声合成を行う。

    347 GitHub stars~756 tokensUpdated yesterday
    Auto-check passed
  • Article Writer

    minicoohei/ai-agent-camp

    テーマからアウトライン生成→文体プロファイル適用→Markdown記事出力を行う記事執筆スキル. An agent skill from minicoohei/ai-agent-camp.

    347 GitHub stars~990 tokensUpdated yesterday
    Auto-check passed
  • Banner Creator

    minicoohei/ai-agent-camp

    各種SNS・広告プラットフォーム向けのバナー/クリエイティブを生成するスキル. An agent skill from minicoohei/ai-agent-camp.

    347 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Check Inbox

    minicoohei/ai-agent-camp

    メールとSlackから返信すべき項目・タスクを抽出する統合型スキル. An agent skill from minicoohei/ai-agent-camp.

    347 GitHub stars~870 tokensUpdated yesterday
    Auto-check: notes

Questions about PDF Compressor

What does PDF Compressor do?

大きなPDFファイルを圧縮するスキル。ファイルサイズを最大98%削減. An agent skill from minicoohei/ai-agent-camp. PDF Compressor is an agent skill from minicoohei/ai-agent-camp.

When should I use PDF Compressor?

PDF Compressor fits situations like: tasks that involve PDF.

How do I install PDF Compressor in Claude Code?

Run `npx skills add minicoohei/ai-agent-camp --skill pdf-compressor -a claude-code`. Or copy the skill folder (skills/pdf-compressor in minicoohei/ai-agent-camp) into .claude/skills/pdf-compressor in your project. Claude Code loads it when a task matches its description.

How do I install PDF Compressor in Codex?

Run `npx skills add minicoohei/ai-agent-camp --skill pdf-compressor -a codex`. Or copy the skill folder (skills/pdf-compressor in minicoohei/ai-agent-camp) into .agents/skills/pdf-compressor in your project. Codex loads it when a task matches its description.

Can I use PDF Compressor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add minicoohei/ai-agent-camp --skill pdf-compressor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pdf-compressor, .gemini/skills/pdf-compressor, .github/skills/pdf-compressor and .opencode/skills/pdf-compressor in your project.

What does PDF Compressor need to run?

Going by SKILL.md and its folder, PDF Compressor needs Python for the scripts in its folder and the command-line tools its instructions call (python, brew and apt-get). Our summary lists: Python 3.

Does PDF Compressor access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is PDF Compressor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does PDF Compressor use?

No licence was found for PDF Compressor or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does PDF Compressor use?

About 544 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PDF Compressor?

Skills that share tags, products or a category with PDF Compressor: Markitdown (ImCa0/just-laws, 781 stars), Gzh Design (isjiamu/gzh-design-skill, 3.9k stars), GenOffice Document CLI (genspark-ai/genoffice, 8.9k stars) and Harness Book Best Practice (wquguru/harness-books, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PDF Compressor?

minicoohei (a GitHub user) maintains it in minicoohei/ai-agent-camp, which has 347 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 7, 2026.

Source: minicoohei/ai-agent-camp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.