SkillsGrove
SkillsGrove/Office documents/swarmclawai/swarmclaw/nano-pdf

nano-pdf

Installation

$npx skills add https://github.com/swarmclawai/swarmclaw --skill nano-pdf
$git clone --depth 1 https://github.com/swarmclawai/swarmclaw.git /tmp/swarmclaw && mkdir -p ~/.claude/skills && cp -r /tmp/swarmclaw/skills/nano-pdf ~/.claude/skills/nano-pdf
Please install this Agent Skill for me: https://github.com/swarmclawai/swarmclaw/tree/ed38ba5329c20e48c03b4a4028f4a76a1a75e2d1/skills/nano-pdf — read its SKILL.md and scripts first, and only install it into my skills folder once you have confirmed it is safe.

Summary

Original description · MITEdit or create PDFs with natural-language instructions using the nano-pdf CLI. Use when asked to make a PDF, edit a PDF, add pages, change text in a PDF, or convert content to PDF format.
The SKILL.md below is reproduced from swarmclawai/swarmclaw (commit ed38ba5) under the MIT license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright 2026 SwarmClaw Contributors. License: LICENSE. Only the instructions file is shown; see the original repository for any scripts.

nano-pdf

Use nano-pdf to apply edits to a specific page in a PDF using a natural-language instruction.

Quick Start

nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle"

Creating a New PDF

nano-pdf create output.pdf "Create a one-page summary of quarterly results with a header, bullet points, and a footer"

Usage in SwarmClaw

When a user asks to create or edit a PDF:

  1. Check if nano-pdf is installed: which nano-pdf
  2. If not installed, install via uv tool install nano-pdf or pip install nano-pdf
  3. Run the appropriate command
  4. Report the output file path to the user

Notes

  • Page numbers are 0-based or 1-based depending on the tool's version; if the result looks off by one, retry with the other.
  • Always sanity-check the output PDF before reporting success.
  • For multi-page edits, run separate commands per page.
View full license text (MIT)
MIT License

Copyright (c) 2026 SwarmClaw Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.