agent-autofill-form-memory
Installation
SKILL.md
Agent Autofill form memory
Prepare, fill, and gate external form submissions using Agent Autofill's local metadata and scoped reads. Read references/record-contracts.md before calling write_records or update_record_scope.
1. Form-field preflight & retrieval
- Contextual & metadata preflight: Check
get_task_contextwhen confirmed bundles exist (mapping explicit components likestreet,city,postcode,country). Otherwise send visible field labels, required flags, stable locator hints (name,autocomplete,type,role),target_origin,purpose, and safe state flags (obscured,blocked,validation_error,task_specific,consent,page_default) tomatch_form_fields—never pass form values. - Act on
match_form_fieldsclassifications:matched/ambiguous: Use the value-free rankedcandidate_rows(group_summary,group_label,is_primary,matches_self_profile,recipient_initials,state,country,confidence,llm_guidance). Pick the top/clearest candidate from page context without pausing per field; ask one grouped question (e.g., home vs. work) only when genuinely tied. Keep address components within a singlegroup_id(list_profile_groups->request_profile_fields(..., group_id=...)).credential: Route throughmatch_credentials/request_credential(delivery="direct"or"extension").missing: Use Just-in-time capture below.consent/task_specific/page_default: Keep in current task state; never infertask_specificanswers from profile records or treatpage_defaultplaceholders as saved user data.transient/obstructed/validation_error: Never save OTPs/CAPTCHAs; report obstructions or validation errors without auto-accepting consent banners or transforming values blindly.
- Locate controls reliably: Prefer accessible labels and
name/autocomplete/type/roleattributes over generated DOM IDs. Filling browser fields is preparation and needs no extra prompt before typing.
2. Just-in-time capture for missing fields
Pause once at the missing ordinary field (or batch multiple missing ordinary fields together) with a single compact check-in offering use once, save to Agent Autofill, or skip: