用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill run2-pdf-skill-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 | run2_pdf-skill-form-filling |
| description | Fill PDF forms using the PDF skill's form-filling scripts and workflow |
The PDF skill provides specialized Python scripts for filling PDF forms that have fillable form fields. This is the recommended approach for working with AcroForm PDFs.
Before attempting to fill a form, verify the PDF has fillable fields:
python3 scripts/check_fillable_fields.py <pdf_file>
Extract all form fields and their metadata:
python3 scripts/extract_form_field_info.py <input.pdf> <output_field_info.json>
This creates a JSON file with all fields including:
field_id: Unique identifier for the field (use this in field_values.json)type: "text", "checkbox", "radio_group", or "choice"page: Page number (1-based)rect: Bounding box [left, bottom, right, top] in PDF coordinateschecked_value and unchecked_valueradio_options or choice_options with valuesCreate a JSON file with values for each field to fill:
[
{
"field_id": "SC-100[0].Page2[0].List1[0].Item1[0].PlaintiffName1[0]",
"description": "Plaintiff's name",
"page": 2,
"value": "John Smith"
},
{
"field_id": "SomeCheckboxField",
"description": "Agreement checkbox",
"page": 1,
"value": "/1" // Use the "checked_value" from field_info for checked checkboxes
},
{
"field_id": "RadioGroupField",
"description": "Choose option",
"page": 1,
"value": "/Yes" // Use one of the "value" entries from radio_options
}
]
Key Rules:
field_id: Must match exactly from field_info.json (case-sensitive)value: For text fields, use a string; for checkboxes/radio, use the checked_value or option valuepage: Must match the page number in field_info.jsondescription: Optional, but helpful for documentationRun the fill script to create the filled PDF:
python3 scripts/fill_fillable_fields.py <input.pdf> <field_values.json> <output.pdf>
The script will:
SC-100[0].Page2[0].List1[0].Item1[0].PlaintiffName1[0])checked_value when you want to check; omit the field or use unchecked_value to leave uncheckedradio_options listchoice_options listchecked_value (often "/1" or "/2")The scripts must be run from the /root/.claude/skills/pdf directory or with full paths:
cd /root/.claude/skills/pdf
python3 scripts/fill_fillable_fields.py /path/to/input.pdf /path/to/field_values.json /path/to/output.pdf