Pdf form filling
[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.From the repository description
npx -y skills add cxcscmu/SkillLearnBench --skill pdf-form-fillingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.9 KB, 480 tokens by cl100k_base, as published. Nobody here has run it
name: pdf-form-filling description: How to programmatically fill PDF forms with fillable fields. Use this skill whenever you need to fill a PDF that has fillable form fields (checkboxes, text fields, etc.).
PDF Form Filling Skill
This skill provides a structured workflow for filling PDF forms that contain fillable fields.
Workflow
-
Extract Field Information: Use the
extract_form_field_info.pyscript to get a JSON representation of all fillable fields in the PDF.python3 /root/.agents/skills/pdf/scripts/extract_form_field_info.py <input.pdf> <field_info.json> -
Analyze Fields (Optional but Recommended): Convert the PDF to images to visually map field IDs to the form's labels if the field IDs are not descriptive.
python3 /root/.agents/skills/pdf/scripts/convert_pdf_to_images.py <input.pdf> <output_directory> -
Prepare Field Values: Create a
field_values.jsonfile containing the values for each field you want to fill. Format:[ { "field_id": "field_name", "description": "Short description", "page": 1, "value": "Value to fill" } ]- Checkboxes: Use the
checked_value(often/Yesor/On) orunchecked_value(often/Off). - Radio Groups: Use the specific
valuefromradio_options. - Text Fields: Provide the string to be entered.
- Checkboxes: Use the
-
Fill the Form: Run the
fill_fillable_fields.pyscript to generate the filled PDF.python3 /root/.agents/skills/pdf/scripts/fill_fillable_fields.py <input.pdf> <field_values.json> <output.pdf>
Field Value Mapping Table
| Type | How to fill |
|---|---|
| text | Direct string value |
| checkbox | Use checked_value from info |
| radio_group | Use one of the radio_options values |
| choice | Use one of the choice_options values |
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.