Agent Skills
› swarmclawai/swarmclaw
› nano-pdf
nano-pdf
GitHub基于自然语言指令编辑或创建PDF的工具,支持修改特定页面内容、生成新文档及格式转换。
Trigger Scenarios
用户要求创建PDF
用户要求编辑PDF内容
用户要求将内容转换为PDF
Install
npx skills add swarmclawai/swarmclaw --skill nano-pdf -g -y
SKILL.md
Frontmatter
{
"name": "nano-pdf",
"metadata": {
"openclaw": {
"emoji": "📄",
"install": [
{
"id": "uv",
"bins": [
"nano-pdf"
],
"kind": "uv",
"label": "Install nano-pdf (uv)",
"package": "nano-pdf"
}
],
"requires": {
"bins": [
"nano-pdf"
]
}
}
},
"description": "Edit 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."
}
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:
- Check if
nano-pdfis installed:which nano-pdf - If not installed, install via
uv tool install nano-pdforpip install nano-pdf - Run the appropriate command
- 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.
Version History
- ed38ba5 Current 2026-07-24 16:56


