用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill pdf-form-filling命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Handles reading, populating, and saving .docx files using the python-docx library. Use this skill for any tasks involving template filling or modifying Word documents.
Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
This skill includes search capability in 13F, such as fuzzy search a fund information using possibly inaccurate name, or fuzzy search a stock cusip info using its name.
基于 SOC 职业分类
正在显示 SKILL.md
| name | pdf-form-filling |
| description | Fill PDF form fields using pypdf library in Python, including text fields and checkboxes. |
When you need to programmatically fill in PDF forms (AcroForms) with text values and checkbox selections.
pip install pypdf
import pypdf
reader = pypdf.PdfReader('form.pdf')
fields = reader.get_fields()
for name, field in fields.items():
print(f"{name} | type={field.get('/FT')} | states={field.get('/_States_', [])}")
/FT = /Tx → text field/FT = /Btn → checkbox/button/_States_ shows valid values for checkboxes (e.g., ['/1', '/Off'])reader = pypdf.PdfReader('blank.pdf')
writer = pypdf.PdfWriter()
writer.append(reader)
# Build field data dict - keys are FULL field paths
field_data = {
"Form[0].Page1[0].TextField[0]": "value",
}
# For checkboxes, use the "on" state value from _States_ (e.g., '/1', '/2')
field_data["Form[0].Checkbox[0]"] = "/1" # checked
# Use '/Off' for unchecked (usually default)
# Update fields on specific pages
writer.update_page_form_field_values(writer.pages[page_idx], field_data)
with open('filled.pdf', 'wb') as f:
writer.write(f)
SC-100[0].Page2[0].List1[0].Item1[0].PlaintiffName1[0]update_page_form_field_values only updates fields present on the specified page/1 for first, /2 for second)/NeedAppearances if text doesn't display