browser-form-fill
它能做什么
这项技能指导智能体用你提供的数值填写网页表单,把每个字段名称对应到页面上正确的输入框。适合需要反复提交同一表单的人。
适用场景
- ✓当你需要多次填写同一张网页表单时。
- ✓当表单字段固定,并且已有保存的对应关系时。
- ✓当你希望把新表单的字段对应关系保存下来以备后用时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-form-fill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用我的姓名、公司和电子邮件填写这个网站上的联系表单,先不要提交。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体从已保存的模板或页面布局中找到对应的输入框,检查数值是否含有个人信息,填写每个字段;只有在你要求时才提交。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Browser Form Fill
Fill a form using a structured field map ({"first_name": "Ada", "company": "..."}). When a browser-templates entry exists for the host, use it to resolve field names → CSS selectors automatically; otherwise resolve via the page accessibility snapshot.
When to use
- Submitting a known form (signup, contact, checkout) where field names are stable.
- Re-using a stored template for a recurring submission.
- Authoring a new template for a site by recording the resolved selectors.
Steps
- Open a recorded session via
browser-record. - Resolve selectors:
- Template path (
--template <name>): pull{field_name → selector}frombrowser-templates. - Snapshot path: call
browser_snapshot, walk the accessibility tree, match each input's accessible name / label to the field map keys.
- Template path (
- AIDefence PII gate: every value in the field map passes
aidefence_has_piibefore any keystroke; recordpii_in_form: truein the session manifest. Do not record the values themselves in the trajectory; record only the field names + a redacted placeholder. - Fill with
browser_fill/browser_type/browser_select/browser_checkper input type. - Submit if
--submit: locate the submit button via the snapshot,browser_click, thenbrowser_waitfor navigation. - Persist the template if a new mapping was discovered:
npx -y @claude-flow/cli@latest memory store --namespace browser-templates \ --key "<host>:<form-name>" \ --value "{field_map:{...}, submit_selector:..., post_submit_url_pattern:...}" - Verify post-submit state if a verification snippet was provided in the field map's
_assertkey.
Caveats
- Trajectory steps for fills MUST redact values. The PII gate is the contract.
- For inputs that require typing simulation (e.g., autocomplete reactions), use
browser_type(simulates keystrokes) rather thanbrowser_fill(sets value programmatically). Record which one was used in the trajectory step. - Multi-step forms are a sequence of
browser-form-fillinvocations; chain them via the same session id. - If the form has a CAPTCHA, surface the request to the user — do not attempt to bypass.
常见问题
它会自己提交表单吗?
只有在你要求提交时才会。否则它只填写字段,然后停止。
我的数值会保存在日志里吗?
这项技能说明,它只记录字段名称和已脱敏的占位符,不记录具体数值。
它能学会新表单吗?
可以。这项技能可以保存它发现的对应关系,以便下次更容易填写。
详情
作者的原始描述
Fill a web form by mapping field-name → value, with optional template lookup from browser-templates for known forms
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1577
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。