Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/coderwanfeng/python-office/add_img_waternpx skills add CoderWanFeng/python-office --skill add_img_watergit clone --depth 1 https://github.com/CoderWanFeng/python-officeWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00029 | $0.00360 |
| Opus 5 | $0.00015 | $0.00180 |
| Sonnet 5 | $0.00006 | $0.00072 |
| Haiku 4.5 | $0.00003 | $0.00036 |
Grade A, and why
add_img_water scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
add_img_water Skill
给 PDF 文件添加图片水印
功能描述
向 PDF 文件添加图片作为水印。
所属分类
office/skills/pdf/add_img_water/
调用方式
from skills.pdf import add_img_water
add_img_water(
input_file='./test.pdf',
mark_file='./watermark.png',
output_file='./with_watermark.pdf'
)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
input_file |
str | 否 | - | 输入 PDF 文件路径 |
mark_file |
str | 否 | - | 水印图片文件路径 |
output_file |
str | 否 | - | 输出 PDF 文件路径 |
pdf_file_in |
str | 否 | - | [已弃用] 请使用 input_file |
pdf_file_mark |
str | 否 | - | [已弃用] 请使用 mark_file |
pdf_file_out |
str | 否 | - | [已弃用] 请使用 output_file |
返回值
None
使用示例
from skills.pdf import add_img_water
add_img_water(
input_file='./report.pdf',
mark_file='./logo.png',
output_file='./with_watermark.pdf'
)
原始函数
office.api.pdf.add_img_water
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 59 lines · 29 tokens per session scan A 0f77b4adf966
add_img_water is a skill published in the GitHub repository CoderWanFeng/python-office (1,348 stars, last pushed 13d ago), licensed Apache-2.0. It adds 29 tokens to every session and 360 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
Read, extract (text/tables), create, merge/split/rotate, watermark, encrypt, fill, and render-to-image .pdf files. Use whenever the user uploads a .pdf or asks to produce, edit, or pull data out of one.
cli-anything-wps
WPS Office CLI — JSON数据驱动PPT自动生成 + 命令行操控WPS文字/表格/演示文稿.
docx
Read, create, and convert Microsoft Word (.docx) documents — extract text and tables, build reports from markdown/JSON, and export to PDF.
Read and create PDF documents — extract text (and per-page text) from a PDF to JSON/markdown, and render markdown/plain text into a new PDF.
nano-pdf
Use when the user asks to edit a PDF and the local nano-pdf CLI is available.
foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.