PDF Compression Tool (‘nano-pdf’): Edit specific PDF pages using Natural Language

Introduction

The common approach to changing a title or fixing a typo on a specific page in a PDF is to open Acrobat, WPS, or InDesign, locate the page, and then modify the text box. When a document only requires one or two minor changes, using a full set of typesetting software often feels like overkill, and it is easy to encounter formatting issues again during the export process.

The following introduces the Natural Language PDF Page Editor on SkillHub (coordinate @org-b6kzcl68/nano-pdf, often referred to as PDF slimming / nano-pdf related skills). It encapsulates the nano-pdf command-line capabilities within an Agent: you provide the PDF and natural language modification instructions, and the skill executes text-level edits page by page. It handles page number basis differences and output self-checks, aiming to turn “minor changes to one page” into a deliverable PDF without redoing the entire document.

What is this

One-sentence positioning: A lightweight Agent Skill based on the nano-pdf CLI that edits specified pages of a PDF according to natural language instructions.

Maintenance and Source: Categorized as office-efficiency on SkillHub, marked as enterprise source, and published by Chongqing Tanguang Network Media Co., Ltd.; the current page version is 1.0.0. The skill tag is requires_api_key=false, meaning it does not rely on additional API Key configuration.

What problem it solves: When a user provides a PDF and describes modification requirements in natural language, it performs text-level modifications such as title replacement or subtitle typo correction on a specific page; it is suitable for office scenarios involving “quick minor changes without redoing the whole document.” Typical triggers mentioned in the official description include: PDF editing, nano-pdf, natural language PDF modification, page modification, change title, fix typo, command-line editing.

SkillHub Page: https://www.skillhub.cn/skills/org-b6kzcl68/nano-pdf
Skill Package URL: https://api.skillhub.cn/zcwl/nano-pdf

Core Features

The following capabilities are derived from the official SkillHub introduction, with no extrapolation:

  1. Page-based editing: Under a single command logic, modifications are applied to a specific page of the PDF rather than re-typesetting the entire book.
  2. Natural language driven: The modification intent is described in natural language (e.g., changing a title, fixing a subtitle typo), and the skill translates this into operations on the nano-pdf side.
  3. Page number basis hints: Built-in explanations for the difference between 0-based and 1-based page numbers, reducing the common mistake of “editing the wrong page.”
  4. Output self-check: The skill requires a self-check on the exported result to facilitate direct delivery, rather than just generating intermediate files.

The skill is designed for minor text changes within a page; capabilities such as layout re-typesetting, batch OCR, or merging/splitting are not promised in the official materials. Usage should be planned with the expectation of “single page, text-level.”

Installation and Enablement

The installation process follows the general SkillHub documentation; this skill page explicitly requires the installation coordinate @org-b6kzcl68/nano-pdf.

1. Confirm skillhub CLI

First, check if the CLI exists on your local machine:

command -v skillhub && skillhub --version

If it is not installed, you can execute the official installation script (the full installation includes default Skills; add --cli-only if only the CLI is needed):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install the nano-pdf skill to the current Agent’s skills directory

SkillHub requires that during installation, --dir must point to the actual skills directory read by the current Agent; installing to the default ./skills/ might not be recognized.

skillhub install @org-b6kzcl68/nano-pdf --dir <your Agent skills directory>

Common paths (excerpted from SkillHub installation documentation; select one based on the client you actually use):

Client skills directory example
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Gemini CLI ~/.gemini/skills/

After installation, restart or refresh the skill list according to the conventions of your Agent so that SKILL.md is loaded.

3. Underlying nano-pdf CLI

The skill description is based on the nano-pdf command-line tool. The official Skill page does not list a separate system-level installation command for nano-pdf; if the Agent reports that nano-pdf is not found when executing, you need to install the CLI yourself on your local machine according to the nano-pdf project documentation before allowing the skill to call it. The skill itself does not take over the package management responsibility for this CLI.

Typical Usage

The official materials do not provide shell examples for verbatim copying, but they clarify the reproducible workflow form. You can collaborate with the Agent following these steps:

  1. Prepare input: Provide the path to the PDF to be modified (or a file accessible by the Agent) and clearly write the modification content in natural language, such as “Change the main title of page 3 to…” or “Change a certain character in the subtitle of page 2 to…”.
  2. Clear page numbers: Specify whether you consider the page number to be 1-based or 0-based; the skill will verify this combined with built-in basis difference hints to avoid editing the adjacent page.
  3. Limit scope: Focus on single page, text-level modifications at a time; complex layouts or cross-page changes are not within the officially promised scope.
  4. Verify output: Perform the output self-check required by the skill, open the exported PDF to confirm whether the text and typos on the target page have been corrected, and then use it for external sending or archiving.

In the conversation, you can directly use the trigger contexts listed officially, such as “Use nano-pdf to change the title of page N of the PDF” or “Modify a typo on a certain page of a PDF with natural language,” so that the Agent selects this skill.

Applicable Scenarios and Notes

Who it is for

  • Office workers, operations staff, and technical writers who need to quickly fix the text on one page and do not want to open a full typesetting workflow for a small typo.
  • Users already working in environments that support Skills (like Cursor, Claude Code, Codex) and hope to condense “PDF + Natural Language” into a fixed workflow.

Limitations and Notes

  • Editing Granularity: Officially emphasizes text-level modifications such as titles, subtitles, and typos; does not mention support for image replacement, form fields, encryption cracking, etc.
  • Page Numbers: Be sure to align with the skill’s 0/1-based habits; before changing a page, confirm verbally or in text which canvas “page N” refers to.
  • Dependency Chain: Agent Skill + Local nano-pdf CLI; the skill cannot be implemented without the CLI.
  • Extension Suite: The page footer mentions that a larger office document workflow can be obtained through the publisher’s guidance; this is a different product level from this skill’s single-page editing, so distinguish them as needed.

SkillHub Public Data (subject to the page): Rating 100000, approximately 2683 downloads; specific numbers are subject to back-end updates.

Conclusion

The Natural Language PDF Page Editor (@org-b6kzcl68/nano-pdf) condenses nano-pdf’s single-page text editing into a skill that Agents can repeatedly call: describe intent in natural language, modify by page, and account for page number basis and export self-checks. If your pain point is “I only want to change the text on one page of a PDF and don’t want to open typesetting software,” you can install this skill from SkillHub and ensure the local nano-pdf CLI is available.

  • SkillHub: https://www.skillhub.cn/skills/org-b6kzcl68/nano-pdf
  • Skill Package: https://api.skillhub.cn/zcwl/nano-pdf
  • General Installation Guide: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye