[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75EFPXD10F7XTP5023BZ474":3,"skill-same:01M75EFPXD10F7XTP5023BZ474":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75EFPXD10F7XTP5023BZ474","ds160-autofill",null,"javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclulessboy\u002Fds160-autofill\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ds160-autofill\ndescription: Automate filling of US nonimmigrant visa DS-160 forms using CDP for element location, CSV data source for user information, LLM assistance for complex cases (captcha, missing elements), and session persistence for resume capability. Use when user needs to: (1) Fill DS-160 visa application forms automatically, (2) Resume filling an interrupted DS-160 application, (3) Handle captcha and complex form elements with LLM assistance. Supports Chinese input with automatic translation to English.\n---\n\n# DS-160 Auto-fill Skill\n\nThis skill automates the filling of US nonimmigrant visa DS-160 forms by combining:\n- CDP (Chrome DevTools Protocol) for fast element location\n- CSV data source for user information\n- LLM assistance for complex cases (captcha, missing elements)\n- Session persistence for resume capability\n- Chinese to English translation for user input\n\n## Quick Start\n\n### Starting a New Application\n\n1. **Provide CSV data**: User must provide a CSV file with their personal information (use `ds160-user-info.csv` as template)\n\n2. **Open DS-160 website**: Use `browser` tool to open `https:\u002F\u002Fceac.state.gov\u002Fgenniv\u002F` with profile `openclaw`\n\n3. **Initialize session**: Load and execute `scripts\u002Fds160-filler.js` to parse mappings and CSV\n\n4. **Start filling**: Begin with the home page, handle captcha with LLM, then proceed page by page\n\n### Resuming an Application\n\n1. **Load existing session**: Check `ds160\u002Fds160-session.json` for saved Application ID\n\n2. **Open application**: Use the saved Application ID to resume on DS-160 website\n\n3. **Continue filling**: Load CSV from saved location and continue from last page\n\n## Core Workflow\n\n### Step 1: Prepare Data\n\n**Always check if session exists first:**\n```javascript\n\u002F\u002F Read ds160\u002Fds160-session.json\n\u002F\u002F If exists → Resume mode\n\u002F\u002F If not → New application mode\n```\n\n**New application mode:**\n- Ask user for CSV file path or content\n- Save CSV to `ds160\u002Fds160-user-info.csv` using `write` tool\n- Initialize session data in `ds160\u002Fds160-session.json`:\n  ```json\n  {\n    \"applicationId\": null,\n    \"securityQuestion\": null,\n    \"securityAnswer\": null,\n    \"currentPageIndex\": 0,\n    \"completedPages\": [],\n    \"startDate\": \"2026-02-06T21:00:00Z\"\n  }\n  ```\n\n**Resume mode:**\n- Load CSV from `ds160\u002Fds160-user-info.csv`\n- Load session from `ds160\u002Fds160-session.json`\n- Report current progress to user\n\n### Step 2: Initialize Browser\n\n```javascript\n\u002F\u002F Open browser with openclaw profile\nbrowser_start: { profile: \"openclaw\", targetUrl: \"https:\u002F\u002Fceac.state.gov\u002Fgenniv\u002F\" }\n\n\u002F\u002F For resume mode, add Application ID to URL\n\u002F\u002F Example: https:\u002F\u002Fceac.state.gov\u002FGenNIV\u002FCommon\u002FConfirmApplicationID.aspx\n```\n\n### Step 3: Fill Current Page\n\n**For each page in sequence:**\n\n1. **Snapshot page** to understand current state:\n   ```javascript\n   browser_snapshot: { refs: \"role\", profile: \"openclaw\" }\n   ```\n\n2. **Load mappings** from `references\u002Fds160-elements.yaml`\n\n3. **Execute fill logic** using `browser act` with evaluate:\n   ```javascript\n   \u002F\u002F Load ds160-filler.js\n   \u002F\u002F Call fillPage(page, currentUrl, userData, yamlData)\n   ```\n\n4. **Handle results**:\n   - **Success**: Continue to next page\n   - **Needs LLM assistance**: Call LLM and retry\n   - **Needs user input**: Save progress and pause\n\n### Step 4: Handle Special Cases\n\n**Captcha:**\n- Take screenshot of captcha area\n- Use `image` tool to analyze captcha\n- Fill captcha code via browser evaluate\n\n**Missing element:**\n- Call LLM with page snapshot\n- Ask LLM to locate element and provide alternative selector\n- Retry fill operation\n\n**Translation needed:**\n- Call LLM with field context and Chinese value\n- Ask LLM to translate to appropriate English value\n- Update CSV and retry fill operation\n\n**Missing user data:**\n- Identify which field is missing\n- Report to user with field name and description\n- **Important**: Save current page using browser evaluate before pausing\n- Wait for user to provide data\n\n### Step 5: Save Progress & Continue\n\n**After completing a page:**\n\n1. **Update session data**:\n   ```json\n   {\n     \"applicationId\": \"AA00FBLCQP\",\n     \"securityQuestion\": \"What is the given name of your mother's mother?\",\n     \"securityAnswer\": \"LiMei\",\n     \"currentPageIndex\": 5,\n     \"completedPages\": [\"home\", \"security_question\", \"personal_1\", \"personal_2\"],\n     \"startDate\": \"2026-02-06T21:00:00Z\"\n   }\n   ```\n\n2. **Save to file**: `write(ds160\u002Fds160-session.json, JSON.stringify(sessionData))`\n\n3. **Report progress to user**:\n   - Current page completed\n   - Next page name\n   - Application ID\n   - Security question\u002Fanswer (first time only)\n   - Overall progress (X\u002FY pages)\n\n4. **Click \"Continue\" button** to proceed to next page\n\n## Data Structures\n\n### CSV Format\n\nThe CSV must have these columns:\n1. `页面` - Page name\n2. `字段名称` - Field identifier (matches YAML `name` field)\n3. `英文说明` - English description\n4. `中文说明` - Chinese description\n5. `必填` - Required? (是\u002F否)\n6. `示例值` - Example value\n7. `用户填写` - **User-provided value** (this is what gets filled)\n\n**Important**: Users can provide values in Chinese. The script includes a built-in translation dictionary for common fields (gender, marital status, countries, etc.). For fields not in the dictionary, LLM will be called for translation automatically.\n\n### YAML Structure\n\nEach page in `ds160-elements.yaml` contains:\n- `page_id`: Unique page identifier\n- `page_name`: Human-readable page name\n- `url`: Page URL pattern\n- `elements`: Array of form elements with:\n  - `id`: Element ID\n  - `name`: Field identifier (matches CSV)\n  - `type`: Element type (text, select, radio, checkbox, button)\n  - `label`: English label\n  - `label_cn`: Chinese label\n  - `required`: Is required?\n  - `options`: Available options (for select)\n  - `group`: Radio group name\n\n## Error Handling\n\n### Element Not Found\n\n**Symptoms**: `fillPage` returns `needsLLM: true`\n\n**Action**:\n1. Take page snapshot\n2. Call LLM with:\n   - Current URL\n   - Element information (id, name, type)\n   - Page HTML snippet\n   - Ask LLM to analyze and provide alternative selector\n3. Retry with LLM-suggested selector\n\n### Translation Needed\n\n**Symptoms**: `fillPage` returns `needsTranslation: true`\n\n**Action**:\n1. Call LLM with translation context:\n   - Field name and description (EN\u002FCN)\n   - Field type and available options\n   - Original Chinese value\n   - Ask LLM to translate to appropriate English value for the field\n2. Update CSV with translated value\n3. Retry fill operation with translated value\n\n**Example LLM prompt for translation**:\n```\nI need to translate this Chinese value for a DS-160 form field:\n\nField: ${elementName}\nType: ${elementType}\nEnglish label: ${label}\nChinese label: ${label_cn}\nChinese value: \"${originalValue}\"\n\nAvailable options (if select): ${options}\n\nPlease provide the correct English value for this field. Consider:\n- The field type and context\n- Available options (if applicable)\n- Standard DS-160 terminology\n\nReturn only the English value, no explanation.\n```\n\n### Data Missing\n\n**Symptoms**: `fillPage` returns `needsUserInput: true`\n\n**Action**:\n1. **CRITICAL**: Save current page before pausing:\n   ```javascript\n   \u002F\u002F Find and click \"Save\" button\n   browser_act: {\n     request: { kind: \"click\", ref: \"save_button\" }\n   }\n   ```\n2. Report missing field to user:\n   - Field name (English and Chinese)\n   - Description\n   - Whether it's required\n3. Update CSV with new data using `write` tool\n4. Resume filling\n\n### Captcha\n\n**Symptoms**: Captcha image detected on page\n\n**Action**:\n1. Take screenshot of captcha area\n2. Use `image` tool:\n   ```javascript\n   image: {\n     image: \"\u002Fpath\u002Fto\u002Fcaptcha.png\",\n     prompt: \"What is the code shown in this captcha? Return only the code characters.\"\n   }\n   ```\n3. Fill captcha field via browser evaluate\n4. Submit form\n\n## Page Sequence\n\nThe pages are filled in this order:\n\n1. **home** - Start application, select location, handle captcha\n2. **security_question** - Confirm Application ID, set security question\n3. **personal_1** - Personal information (name, gender, DOB)\n4. **personal_2** - Nationality, other nationalities, IDs\n5. **travel** - Travel purpose, dates, who is paying\n6. **travel_companions** - People traveling with you\n7. **previous_us_travel** - Previous US visits\n8. **address_phone** - Current address and phone\n9. **passport** - Passport information\n10. **us_contact** - US point of contact\n11. **family_relatives** - Family information\n12. **work_education** - Work and education history\n13. **security_background** - Security questions\n\n## Progress Reporting\n\n**Report to user after each page:**\n\n```\n✓ Completed: Personal Information 1\n📄 Next: Personal Information 2\n🆔 Application ID: AA00FBLCQP\n🔐 Security Question: What is the given name of your mother's mother?\n🔑 Answer: LiMei\n📊 Progress: 3\u002F13 pages completed\n```\n\n**Include in every report:**\n- Application ID (once obtained)\n- Security question and answer (once generated)\n- Current progress (X\u002FY pages)\n- Next page name\n\n## LLM Integration\n\n### When to Call LLM\n\n1. **Captcha detection**: Always use LLM to read captcha\n2. **Element not found**: When multiple locator strategies fail\n3. **Translation needed**: When user provides Chinese value not in built-in dictionary\n4. **Complex elements**: For elements that require understanding context\n5. **Validation errors**: When form submission fails with unclear reason\n\n### LLM Prompts\n\n**For element location:**\n```\nI need to find this form element on a DS-160 page:\n- Element ID: {elementId}\n- Field name: {fieldName}\n- Element type: {elementType}\n- Current URL: {url}\n\nPlease analyze the page and provide:\n1. The correct way to locate this element (CSS selector or JavaScript)\n2. Any visible labels or text associated with it\n```\n\n**For captcha:**\n```\nPlease read the captcha code from this image. Return only the code characters, no explanation.\n```\n\n## Translation Dictionary\n\nThe script includes a built-in translation dictionary for common Chinese values. This covers:\n\n**Gender**:\n- 男\u002F男性 → MALE\n- 女\u002F女性 → FEMALE\n\n**Marital Status**:\n- 已婚 → MARRIED\n- 未婚 → SINGLE\n- 离异 → DIVORCED\n- 丧偶 → WIDOWED\n- 合法分居 → LEGALLY SEPARATED\n- 事实婚姻 → COMMON LAW MARRIAGE\n- 民事结合 → CIVIL UNION\u002FDOMESTIC PARTNERSHIP\n\n**Yes\u002FNo**:\n- 是\u002F有\u002F是，有 → Yes\n- 否\u002F没有\u002F否，没有 → No\n\n**Countries**:\n- 中国 → CHINA\n- 美国 → USA\n- 英国 → UNITED KINGDOM\n- 日本 → JAPAN\n- 韩国 → KOREA, SOUTH\n\n**Visa Types**:\n- 旅游\u002F商务\u002F商务\u002F旅游 → B1\u002FB2\n- 学生 → F1\n- 访问学者 → J1\n- 工作 → H1B\n\n**Payment**:\n- 自己\u002F自费 → SELF\n- 公司 → OTHER COMPANY\n- 其他人 → OTHER PERSON\n\n**Relationship (US Point of Contact)**:\n- 朋友 → Friend\n- 亲戚 → Relative\n- 同事 → Colleague\n- 配偶 → Spouse\n- 同学 → Classmate\n- 其他 → Other\n\n**Other Values**:\n- 不适用\u002F不，不适用 → Does Not Apply\n\n**For values not in this dictionary**, LLM will be automatically called for translation.\n\n## Session Persistence\n\n**Session file location**: `ds160\u002Fds160-session.json`\n\n**Session data structure**:\n```json\n{\n  \"applicationId\": \"AA00FBLCQP\",\n  \"securityQuestion\": \"What is the given name of your mother's mother?\",\n  \"securityAnswer\": \"LiMei\",\n  \"currentPageIndex\": 5,\n  \"completedPages\": [\"home\", \"security_question\", \"personal_1\", \"personal_2\", \"travel\", \"travel_companions\"],\n  \"startDate\": \"2026-02-06T21:00:00Z\",\n  \"lastUpdated\": \"2026-02-06T21:30:00Z\"\n}\n```\n\n**When to save session:**\n- After completing each page\n- Before pausing for user input\n- After receiving Application ID\n- After setting security question\u002Fanswer\n\n## Browser Automation Notes\n\n**Always use `openclaw` profile** to maintain session across pages.\n\n**Use `browser act` with `evaluate` for form filling**:\n- More reliable than individual click\u002Ftype actions\n- Can execute complex JavaScript\n- Better error handling\n\n**Use `browser snapshot` before each page**:\n- Check page state\n- Identify dynamic elements\n- Verify page loaded correctly\n\n## Testing Checklist\n\nBefore using this skill with real data:\n\n- [ ] Test element location on each page type\n- [ ] Verify CSV parsing with sample data\n- [ ] Test captcha handling with LLM\n- [ ] Verify session save\u002Fload functionality\n- [ ] Test resume from middle of application\n- [ ] Verify \"Save\" button clicking works before pauses\n- [ ] Test with various element types (text, select, radio, checkbox)\n- [ ] Verify progress reporting format\n- [ ] Test Chinese to English translation\n\n## Example Usage\n\n**User says**: \"Help me fill DS-160 form with my data in this.csv\"\n\n**Agent workflow**:\n1. Load SKILL.md (this file)\n2. Check for existing session\n3. Save CSV to ds160\u002Fds160-user-info.csv\n4. Initialize session\n5. Open browser to DS-160\n6. Fill page by page\n7. Report progress after each page\n8. Handle errors with LLM or user input\n9. Save progress and continue\n\n**User says**: \"Continue filling my DS-160 form\"\n\n**Agent workflow**:\n1. Load SKILL.md\n2. Load existing session\n3. Open browser to DS-160 with Application ID\n4. Load CSV from saved location\n5. Continue from last page\n6. Report progress\n7. Complete remaining pages\n\n## Files Reference\n\n- **scripts\u002Fds160-filler.js** - Core automation logic (run via browser evaluate)\n- **references\u002Fds160-elements.yaml** - Element mappings (read-only)\n- **references\u002Fds160-user-info.csv** - User data template (copy to workspace)\n- **ds160\u002Fds160-session.json** - Session persistence (auto-created)\n- **ds160\u002Fds160-user-info.csv** - Active user data (auto-created)\n\n## Important Notes\n\n- **NEVER submit the final form** - this is for automation\u002Ftesting only\n- **Always save before pausing** - prevents data loss\n- **Report progress frequently** - at least every page\n- **Keep Application ID secure** - it's sensitive information\n- **Use fake data for testing** - don't use real personal info\n- **Chinese input is supported** - use built-in dictionary or LLM for translation\n","# DS-160 Auto-fill Skill\n\nThis skill automates the filling of US nonimmigrant visa DS-160 forms by combining:\n- CDP (Chrome DevTools Protocol) for fast element location\n- CSV data source for user information\n- LLM assistance for complex cases (captcha, missing elements)\n- Session persistence for resume capability\n- Chinese to English translation for user input\n\n## Quick Start\n\n### Starting a New Application\n\n1. **Provide CSV data**: User must provide a CSV file with their personal information (use `ds160-user-info.csv` as template)\n\n2. **Open DS-160 website**: Use `browser` tool to open `https:\u002F\u002Fceac.state.gov\u002Fgenniv\u002F` with profile `openclaw`\n\n3. **Initialize session**: Load and execute `scripts\u002Fds160-filler.js` to parse mappings and CSV\n\n4. **Start filling**: Begin with the home page, handle captcha with LLM, then proceed page by page\n\n### Resuming an Application\n\n1. **Load existing session**: Check `ds160\u002Fds160-session.json` for saved Application ID\n\n2. **Open application**: Use the saved Application ID to resume on DS-160 website\n\n3. **Continue filling**: Load CSV from saved location and continue from last page\n\n## Core Workflow\n\n### Step 1: Prepare Data\n\n**Always check if session exists first:**\n```javascript\n\u002F\u002F Read ds160\u002Fds160-session.json\n\u002F\u002F If exists → Resume mode\n\u002F\u002F If not → New application mode\n```\n\n**New application mode:**\n- Ask user for CSV file path or content\n- Save CSV to `ds160\u002Fds160-user-info.csv` using `write` tool\n- Initialize session data in `ds160\u002Fds160-session.json`:\n  ```json\n  {\n    \"applicationId\": null,\n    \"securityQuestion\": null,\n    \"securityAnswer\": null,\n    \"currentPageIndex\": 0,\n    \"completedPages\": [],\n    \"startDate\": \"2026-02-06T21:00:00Z\"\n  }\n  ```\n\n**Resume mode:**\n- Load CSV from `ds160\u002Fds160-user-info.csv`\n- Load session from `ds160\u002Fds160-session.json`\n- Report current progress to user\n\n### Step 2: Initialize Browser\n\n```javascript\n\u002F\u002F Open browser with openclaw profile\nbrowser_start: { profile: \"openclaw\", targetUrl: \"https:\u002F\u002Fceac.state.gov\u002Fgenniv\u002F\" }\n\n\u002F\u002F For resume mode, add Application ID to URL\n\u002F\u002F Example: https:\u002F\u002Fceac.state.gov\u002FGenNIV\u002FCommon\u002FConfirmApplicationID.aspx\n```\n\n### Step 3: Fill Current Page\n\n**For each page in sequence:**\n\n1. **Snapshot page** to understand current state:\n   ```javascript\n   browser_snapshot: { refs: \"role\", profile: \"openclaw\" }\n   ```\n\n2. **Load mappings** from `references\u002Fds160-elements.yaml`\n\n3. **Execute fill logic** using `browser act` with evaluate:\n   ```javascript\n   \u002F\u002F Load ds160-filler.js\n   \u002F\u002F Call fillPage(page, currentUrl, userData, yamlData)\n   ```\n\n4. **Handle results**:\n   - **Success**: Continue to next page\n   - **Needs LLM assistance**: Call LLM and retry\n   - **Needs user input**: Save progress and pause\n\n### Step 4: Handle Special Cases\n\n**Captcha:**\n- Take screenshot of captcha area\n- Use `image` tool to analyze captcha\n- Fill captcha code via browser evaluate\n\n**Missing element:**\n- Call LLM with page snapshot\n- Ask LLM to locate element and provide alternative selector\n- Retry fill operation\n\n**Translation needed:**\n- Call LLM with field context and Chinese value\n- Ask LLM to translate to appropriate English value\n- Update CSV and retry fill operation\n\n**Missing user data:**\n- Identify which field is missing\n- Report to user with field name and description\n- **Important**: Save current page using browser evaluate before pausing\n- Wait for user to provide data\n\n### Step 5: Save Progress & Continue\n\n**After completing a page:**\n\n1. **Update session data**:\n   ```json\n   {\n     \"applicationId\": \"AA00FBLCQP\",\n     \"securityQuestion\": \"What is the given name of your mother's mother?\",\n     \"securityAnswer\": \"LiMei\",\n     \"currentPageIndex\": 5,\n     \"completedPages\": [\"home\", \"security_question\", \"personal_1\", \"personal_2\"],\n     \"startDate\": \"2026-02-06T21:00:00Z\"\n   }\n   ```\n\n2. **Save to file**: `write(ds160\u002Fds160-session.json, JSON.stringify(sessionData))`\n\n3. **Report progress to user**:\n   - Current page completed\n   - Next page name\n   - Application ID\n   - Security question\u002Fanswer (first time only)\n   - Overall progress (X\u002FY pages)\n\n4. **Click \"Continue\" button** to proceed to next page\n\n## Data Structures\n\n### CSV Format\n\nThe CSV must have these columns:\n1. `页面` - Page name\n2. `字段名称` - Field identifier (matches YAML `name` field)\n3. `英文说明` - English description\n4. `中文说明` - Chinese description\n5. `必填` - Required? (是\u002F否)\n6. `示例值` - Example value\n7. `用户填写` - **User-provided value** (this is what gets filled)\n\n**Important**: Users can provide values in Chinese. The script includes a built-in translation dictionary for common fields (gender, marital status, countries, etc.). For fields not in the dictionary, LLM will be called for translation automatically.\n\n### YAML Structure\n\nEach page in `ds160-elements.yaml` contains:\n- `page_id`: Unique page identifier\n- `page_name`: Human-readable page name\n- `url`: Page URL pattern\n- `elements`: Array of form elements with:\n  - `id`: Element ID\n  - `name`: Field identifier (matches CSV)\n  - `type`: Element type (text, select, radio, checkbox, button)\n  - `label`: English label\n  - `label_cn`: Chinese label\n  - `required`: Is required?\n  - `options`: Available options (for select)\n  - `group`: Radio group name\n\n## Error Handling\n\n### Element Not Found\n\n**Symptoms**: `fillPage` returns `needsLLM: true`\n\n**Action**:\n1. Take page snapshot\n2. Call LLM with:\n   - Current URL\n   - Element information (id, name, type)\n   - Page HTML snippet\n   - Ask LLM to analyze and provide alternative selector\n3. Retry with LLM-suggested selector\n\n### Translation Needed\n\n**Symptoms**: `fillPage` returns `needsTranslation: true`\n\n**Action**:\n1. Call LLM with translation context:\n   - Field name and description (EN\u002FCN)\n   - Field type and available options\n   - Original Chinese value\n   - Ask LLM to translate to appropriate English value for the field\n2. Update CSV with translated value\n3. Retry fill operation with translated value\n\n**Example LLM prompt for translation**:\n```\nI need to translate this Chinese value for a DS-160 form field:\n\nField: ${elementName}\nType: ${elementType}\nEnglish label: ${label}\nChinese label: ${label_cn}\nChinese value: \"${originalValue}\"\n\nAvailable options (if select): ${options}\n\nPlease provide the correct English value for this field. Consider:\n- The field type and context\n- Available options (if applicable)\n- Standard DS-160 terminology\n\nReturn only the English value, no explanation.\n```\n\n### Data Missing\n\n**Symptoms**: `fillPage` returns `needsUserInput: true`\n\n**Action**:\n1. **CRITICAL**: Save current page before pausing:\n   ```javascript\n   \u002F\u002F Find and click \"Save\" button\n   browser_act: {\n     request: { kind: \"click\", ref: \"save_button\" }\n   }\n   ```\n2. Report missing field to user:\n   - Field name (English and Chinese)\n   - Description\n   - Whether it's required\n3. Update CSV with new data using `write` tool\n4. Resume filling\n\n### Captcha\n\n**Symptoms**: Captcha image detected on page\n\n**Action**:\n1. Take screenshot of captcha area\n2. Use `image` tool:\n   ```javascript\n   image: {\n     image: \"\u002Fpath\u002Fto\u002Fcaptcha.png\",\n     prompt: \"What is the code shown in this captcha? Return only the code characters.\"\n   }\n   ```\n3. Fill captcha field via browser evaluate\n4. Submit form\n\n## Page Sequence\n\nThe pages are filled in this order:\n\n1. **home** - Start application, select location, handle captcha\n2. **security_question** - Confirm Application ID, set security question\n3. **personal_1** - Personal information (name, gender, DOB)\n4. **personal_2** - Nationality, other nationalities, IDs\n5. **travel** - Travel purpose, dates, who is paying\n6. **travel_companions** - People traveling with you\n7. **previous_us_travel** - Previous US visits\n8. **address_phone** - Current address and phone\n9. **passport** - Passport information\n10. **us_contact** - US point of contact\n11. **family_relatives** - Family information\n12. **work_education** - Work and education history\n13. **security_background** - Security questions\n\n## Progress Reporting\n\n**Report to user after each page:**\n\n```\n✓ Completed: Personal Information 1\n📄 Next: Personal Information 2\n🆔 Application ID: AA00FBLCQP\n🔐 Security Question: What is the given name of your mother's mother?\n🔑 Answer: LiMei\n📊 Progress: 3\u002F13 pages completed\n```\n\n**Include in every report:**\n- Application ID (once obtained)\n- Security question and answer (once generated)\n- Current progress (X\u002FY pages)\n- Next page name\n\n## LLM Integration\n\n### When to Call LLM\n\n1. **Captcha detection**: Always use LLM to read captcha\n2. **Element not found**: When multiple locator strategies fail\n3. **Translation needed**: When user provides Chinese value not in built-in dictionary\n4. **Complex elements**: For elements that require understanding context\n5. **Validation errors**: When form submission fails with unclear reason\n\n### LLM Prompts\n\n**For element location:**\n```\nI need to find this form element on a DS-160 page:\n- Element ID: {elementId}\n- Field name: {fieldName}\n- Element type: {elementType}\n- Current URL: {url}\n\nPlease analyze the page and provide:\n1. The correct way to locate this element (CSS selector or JavaScript)\n2. Any visible labels or text associated with it\n```\n\n**For captcha:**\n```\nPlease read the captcha code from this image. Return only the code characters, no explanation.\n```\n\n## Translation Dictionary\n\nThe script includes a built-in translation dictionary for common Chinese values. This covers:\n\n**Gender**:\n- 男\u002F男性 → MALE\n- 女\u002F女性 → FEMALE\n\n**Marital Status**:\n- 已婚 → MARRIED\n- 未婚 → SINGLE\n- 离异 → DIVORCED\n- 丧偶 → WIDOWED\n- 合法分居 → LEGALLY SEPARATED\n- 事实婚姻 → COMMON LAW MARRIAGE\n- 民事结合 → CIVIL UNION\u002FDOMESTIC PARTNERSHIP\n\n**Yes\u002FNo**:\n- 是\u002F有\u002F是，有 → Yes\n- 否\u002F没有\u002F否，没有 → No\n\n**Countries**:\n- 中国 → CHINA\n- 美国 → USA\n- 英国 → UNITED KINGDOM\n- 日本 → JAPAN\n- 韩国 → KOREA, SOUTH\n\n**Visa Types**:\n- 旅游\u002F商务\u002F商务\u002F旅游 → B1\u002FB2\n- 学生 → F1\n- 访问学者 → J1\n- 工作 → H1B\n\n**Payment**:\n- 自己\u002F自费 → SELF\n- 公司 → OTHER COMPANY\n- 其他人 → OTHER PERSON\n\n**Relationship (US Point of Contact)**:\n- 朋友 → Friend\n- 亲戚 → Relative\n- 同事 → Colleague\n- 配偶 → Spouse\n- 同学 → Classmate\n- 其他 → Other\n\n**Other Values**:\n- 不适用\u002F不，不适用 → Does Not Apply\n\n**For values not in this dictionary**, LLM will be automatically called for translation.\n\n## Session Persistence\n\n**Session file location**: `ds160\u002Fds160-session.json`\n\n**Session data structure**:\n```json\n{\n  \"applicationId\": \"AA00FBLCQP\",\n  \"securityQuestion\": \"What is the given name of your mother's mother?\",\n  \"securityAnswer\": \"LiMei\",\n  \"currentPageIndex\": 5,\n  \"completedPages\": [\"home\", \"security_question\", \"personal_1\", \"personal_2\", \"travel\", \"travel_companions\"],\n  \"startDate\": \"2026-02-06T21:00:00Z\",\n  \"lastUpdated\": \"2026-02-06T21:30:00Z\"\n}\n```\n\n**When to save session:**\n- After completing each page\n- Before pausing for user input\n- After receiving Application ID\n- After setting security question\u002Fanswer\n\n## Browser Automation Notes\n\n**Always use `openclaw` profile** to maintain session across pages.\n\n**Use `browser act` with `evaluate` for form filling**:\n- More reliable than individual click\u002Ftype actions\n- Can execute complex JavaScript\n- Better error handling\n\n**Use `browser snapshot` before each page**:\n- Check page state\n- Identify dynamic elements\n- Verify page loaded correctly\n\n## Testing Checklist\n\nBefore using this skill with real data:\n\n- [ ] Test element location on each page type\n- [ ] Verify CSV parsing with sample data\n- [ ] Test captcha handling with LLM\n- [ ] Verify session save\u002Fload functionality\n- [ ] Test resume from middle of application\n- [ ] Verify \"Save\" button clicking works before pauses\n- [ ] Test with various element types (text, select, radio, checkbox)\n- [ ] Verify progress reporting format\n- [ ] Test Chinese to English translation\n\n## Example Usage\n\n**User says**: \"Help me fill DS-160 form with my data in this.csv\"\n\n**Agent workflow**:\n1. Load SKILL.md (this file)\n2. Check for existing session\n3. Save CSV to ds160\u002Fds160-user-info.csv\n4. Initialize session\n5. Open browser to DS-160\n6. Fill page by page\n7. Report progress after each page\n8. Handle errors with LLM or user input\n9. Save progress and continue\n\n**User says**: \"Continue filling my DS-160 form\"\n\n**Agent workflow**:\n1. Load SKILL.md\n2. Load existing session\n3. Open browser to DS-160 with Application ID\n4. Load CSV from saved location\n5. Continue from last page\n6. Report progress\n7. Complete remaining pages\n\n## Files Reference\n\n- **scripts\u002Fds160-filler.js** - Core automation logic (run via browser evaluate)\n- **references\u002Fds160-elements.yaml** - Element mappings (read-only)\n- **references\u002Fds160-user-info.csv** - User data template (copy to workspace)\n- **ds160\u002Fds160-session.json** - Session persistence (auto-created)\n- **ds160\u002Fds160-user-info.csv** - Active user data (auto-created)\n\n## Important Notes\n\n- **NEVER submit the final form** - this is for automation\u002Ftesting only\n- **Always save before pausing** - prevents data loss\n- **Report progress frequently** - at least every page\n- **Keep Application ID secure** - it's sensitive information\n- **Use fake data for testing** - don't use real personal info\n- **Chinese input is supported** - use built-in dictionary or LLM for translation\n",{},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fclulessboy\u002Fds160-autofill",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill ds160-autofill",{"tool":38,"command":39},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill ds160-autofill",{"tool":41,"command":42},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill ds160-autofill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclulessboy\u002Fds160-autofill\u002FSKILL.md",true,[],[47,55,62,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":54},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":54},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":54},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":54},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":54},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]