| name | fill-california-small-claims-form-sc-100 |
| title | Fill California Small Claims Form SC-100 |
| description | Use this skill to fill the California Small Claims Court form (SC-100) with plaintiff and defendant information, case details, and amounts. Requires actual field names from the PDF — run Extract PDF Form Field Names skill first. |
| author | cxcscmu |
| author_url | https://github.com/cxcscmu/SkillLearnBench/tree/main/skills/b3-teacher-feedback-claude-haiku-4-5/court-form-filling/run3_Fill-California-Small-Claims-Form-SC-100 |
| license | MIT |
| version | 0.1.0 |
| execution_mode | open |
| jurisdiction | us |
| practice | litigation |
| language | en |
Fill California Small Claims Form SC-100
Purpose
Populate the SC-100 form with case information including plaintiff/defendant details, addresses, phone/email, claim amount, and case description.
Prerequisites
- Run "Extract PDF Form Field Names" skill first to get actual field names
- Have case details: names, addresses, phone, email, amount, dates, description
Implementation
import pdfrw
from datetime import datetime
def fill_sc100_form(pdf_blank_path, pdf_output_path, case_data):
"""
Fill SC-100 form with case information.
Args:
pdf_blank_path: Path to blank SC-100 PDF
pdf_output_path: Path to save filled PDF
case_data: Dictionary with all case information
"""
template = pdfrw.PdfReader(pdf_blank_path)
field_mapping = {
'plaintiff_name': case_data.get('plaintiff_name', ''),
'plaintiff_street': case_data.get('plaintiff_street', ''),
'plaintiff_city': case_data.get('plaintiff_city', ''),
'plaintiff_state': case_data.get('plaintiff_state', ''),
'plaintiff_zip': case_data.get('plaintiff_zip', ''),
'plaintiff_phone': case_data.get('plaintiff_phone', ''),
'plaintiff_email': case_data.get('plaintiff_email', ''),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
: case_data.get(, ),
}
field_name, field_value field_mapping.items():
update_field(template, field_name, field_value)
pdfrw.PdfWriter().write(pdf_output_path, template)
()
():
value:
page pdf_template.pages:
annotations = page.get()
annotations:
annotation annotations:
annotation[] == :
field = annotation.get()
field:
clean_field_name = field[:-] field.startswith() field
clean_field_name == field_name:
annotation.update(
AP=,
AS=pdfrw.objects.PdfName(value) value [, , , ] ,
V=
)
()
case_data = {
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
}
fill_sc100_form(, , case_data)