Pdf lowercase skill
将 PDF 文件的内容转换为小写 (PDF to Lowercase)From its SKILL.md
npx -y skills add wangwei1237/agent-skills --skill pdf-lowercase-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `python3 scripts/pdf_lowercase.py <输入文件路径> <输出文件路径>`.
SKILL.md
1.2 KB, 291 tokens by cl100k_base, as published. Nobody here has run it
PDF Case Converter Skill
Description
这是一个用于处理 PDF 文件的工具,专门用于将 PDF 中的文本内容转换为小写。它通过调用本地的 Python 脚本来完成转换。
Instructions
当用户请求将某个 PDF 文件的内容转换为小写时,请遵循以下步骤:
- 检查文件路径:确认用户提供的输入文件路径存在。
- 构建输出路径:如果用户没有指定输出路径,默认在原文件名后加上
_lower后缀(例如input.pdf->input_lower.pdf)。 - 执行脚本:
在当前文件所在的目录下,使用
Bash工具运行以下命令:python3 scripts/pdf_lowercase.py <输入文件路径> <输出文件路径> - 验证结果:脚本执行完成后,检查输出文件是否生成成功,并向用户报告结果。
Examples
User: "把 document.pdf 里的字都变成小写。"
Assistant: (Executing Bash from this file's directory) python3 scripts/pdf_lowercase.py document.pdf document_lower.pdf
What ships with it: 3 files
7.2 KB alongside SKILL.md, 1 of them executable
scripts/
- pdf_lowercase.pyruns4.6 KB
tests/
- skill_cases.yaml1.2 KB
- LICENSE.txt1.4 KB