跳到正文
Skillpedia
自动化81k · #1577

browser-form-fill

它能做什么

这项技能指导智能体用你提供的数值填写网页表单,把每个字段名称对应到页面上正确的输入框。适合需要反复提交同一表单的人。

适用场景

  • ✓当你需要多次填写同一张网页表单时。
  • ✓当表单字段固定,并且已有保存的对应关系时。
  • ✓当你希望把新表单的字段对应关系保存下来以备后用时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-form-fill/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-form-fill/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Open a recorded session via browser-record.
  2. Resolve selectors:
    • Template path (--template <name>): pull {field_name → selector} from browser-templates.
    • Snapshot path: call browser_snapshot, walk the accessibility tree, match each input's accessible name / label to the field map keys.
  3. AIDefence PII gate: every value in the field map passes aidefence_has_pii before any keystroke; record pii_in_form: true in the session manifest. Do not record the values themselves in the trajectory; record only the field names + a redacted placeholder.
  4. Fill with browser_fill / browser_type / browser_select / browser_check per input type.
  5. Submit if --submit: locate the submit button via the snapshot, browser_click, then browser_wait for navigation.
  6. 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:...}"
    
  7. Verify post-submit state if a verification snippet was provided in the field map's _assert key.

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 than browser_fill (sets value programmatically). Record which one was used in the trajectory step.
  • Multi-step forms are a sequence of browser-form-fill invocations; 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能