Loading...
Loading...
Compare original and translation side by side
evaluate.tsstrategy.mdevaluate.tsstrategy.md/autobrowse --task google-flights
/autobrowse --task google-flights --iterations 10 --env remote
/autobrowse --tasks google-flights,amazon-add-to-cart
/autobrowse --all/autobrowse --task google-flights
/autobrowse --task google-flights --iterations 10 --env remote
/autobrowse --tasks google-flights,amazon-add-to-cart
/autobrowse --all
When the user drops a URL or free-form instruction instead of `--task <name>`:
- If an existing task in `${WORKSPACE}/tasks/` clearly matches the site/intent, use it.
- Otherwise, pick a short kebab-case name, create `${WORKSPACE}/tasks/<name>/task.md` from `${CLAUDE_SKILL_DIR}/references/example-task.md`, fill in the URL/goal based on what the user said, and proceed. Tell the user the chosen name in one line.
---
当用户传入URL或自由形式指令而非`--task <name>`时:
- 如果`${WORKSPACE}/tasks/`目录下已有与该网站/意图明确匹配的任务,则直接使用该任务。
- 否则,选择一个简短的短横线命名格式(kebab-case),从`${CLAUDE_SKILL_DIR}/references/example-task.md`复制模板创建`${WORKSPACE}/tasks/<name>/task.md`,根据用户输入填充URL和目标,然后继续执行。用一行文字告知用户所选的任务名称。
-----task <name>--tasks a,b,c--all--iterations N--env local|remote--task <name>--tasks a,b,c--all--iterations N--env local|remote~/.claude/skills/${CWD}/autobrowse/mkdir -p ./autobrowse/tasks ./autobrowse/traces ./autobrowse/reports./autobrowse/tasks/<task>/task.mdmkdir -p ./autobrowse/tasks/<task>
cp ${CLAUDE_SKILL_DIR}/references/example-task.md ./autobrowse/tasks/<task>/task.md~/.claude/skills/${CWD}/autobrowse/mkdir -p ./autobrowse/tasks ./autobrowse/traces ./autobrowse/reports./autobrowse/tasks/<task>/task.mdmkdir -p ./autobrowse/tasks/<task>
cp ${CLAUDE_SKILL_DIR}/references/example-task.md ./autobrowse/tasks/<task>/task.md
The skill source at `${CLAUDE_SKILL_DIR}` stays read-only — only `./autobrowse/` in CWD gets written to during training. Graduation (final step) writes a single file to `~/.claude/skills/<task>/SKILL.md`.
List available tasks:
```bash
ls ./autobrowse/tasks/
`${CLAUDE_SKILL_DIR}`下的技能源码保持只读状态——训练过程中仅对当前工作目录下的`./autobrowse/`进行写入操作。最终毕业环节(最后一步)会将单个文件写入`~/.claude/skills/<task>/SKILL.md`。
查看可用任务:
```bash
ls ./autobrowse/tasks/"You are running the autobrowse skill for task. Workspace:<name>(e.g.<absolute-path-to-workspace>). Run/path/to/project/autobrowseiterations of: evaluate → read trace → improve strategy.md → repeat. Use<N>. Pass--env <env>to every evaluate.mjs invocation. Follow the autobrowse loop instructions exactly.--workspace <workspace>When graduating, install the skill towith proper agentskills frontmatter (name + description). Do not just copy strategy.md — write a self-contained skill.~/.claude/skills/<task-name>/SKILL.mdAt the end, output a structured summary with: task name, pass/fail on final run, total cumulative cost, iterations completed, per-iteration table (iter number, turns, cost, status, hypothesis tested), and 2-3 bullet key learnings."
"你正在为任务运行AutoBrowse技能。工作区路径:<name>(例如<absolute-path-to-workspace>)。执行/path/to/project/autobrowse次“评估→读取轨迹→优化strategy.md→重复”的循环。使用<N>参数。在每次调用evaluate.mjs时传入--env <env>参数。严格遵循AutoBrowse循环的指令执行。--workspace <workspace>当完成技能毕业时,将技能安装到,并添加正确的agentskills前置信息(名称+描述)。不要直接复制strategy.md——需编写一个独立可用的技能文档。~/.claude/skills/<task-name>/SKILL.md任务结束后,输出结构化总结,包含:任务名称、最终运行结果(通过/失败)、累计总成本、完成的迭代次数、迭代详情表(迭代次数、交互轮次、成本、状态、测试的假设),以及2-3条关键要点总结。"
./autobrowse/tasks/<task>/task.mdstrategy.md./autobrowse/tasks/<task>/task.mdstrategy.mdANTHROPIC_API_KEY.envevaluate.mjsANTHROPIC_API_KEY.envevaluate.mjsnode ${CLAUDE_SKILL_DIR}/scripts/evaluate.mjs --task <task-name> --workspace ./autobrowsenode ${CLAUDE_SKILL_DIR}/scripts/evaluate.mjs --task <task-name> --workspace ./autobrowse
This runs the browser session and writes a full trace to `./autobrowse/traces/<task>/latest/`.
此命令会运行浏览器会话,并将完整的执行轨迹写入`./autobrowse/traces/<task>/latest/`目录。cat ./autobrowse/traces/<task-name>/latest/summary.md./autobrowse/traces/<task-name>/latest/trace.jsoncat ./autobrowse/traces/<task-name>/latest/summary.md./autobrowse/traces/<task-name>/latest/trace.json/pay-invoice/browse fill #field_3 valuebrowse typebrowse wait timeout 2000/pay-invoice/browse fill #field_3 valuebrowse typebrowse wait timeout 2000./autobrowse/tasks/<task-name>/strategy.md./autobrowse/tasks/<task-name>/strategy.md~/.claude/skills/<task-name>/SKILL.mdmkdir -p ~/.claude/skills/<task-name>---
name: <task-name>
description: <1-2 sentences describing what this skill does and when to use it. Include trigger keywords.>
---~/.claude/skills/<task-name>/SKILL.mdmkdir -p ~/.claude/skills/<task-name>---
name: <task-name>
description: <1-2句话描述该技能的功能及适用场景,包含触发关键词。>
---browsebrowse stopbrowse env remotebrowse newpage <url>browse openbrowse open <url>browse wait loadbrowse wait timeout <ms>browse wait selector "<selector>"browse get titlebrowse get text bodybrowse snapshot[X-Y][0-5][2-147]browse click [X-Y]--session <name>browsebrowse stopbrowse env remotebrowse newpage <url>browse openbrowse open <url>browse wait loadbrowse wait timeout <ms>browse wait selector "<selector>"browse get titlebrowse get text bodybrowse snapshot[X-Y][0-5][2-147]browse click [X-Y]--session <name><paste the exact expected output schema from task.md>
After writing the SKILL.md, confirm it's installed:
```bash
ls ~/.claude/skills/<task-name>/SKILL.md/<task-name><粘贴task.md中精确的预期输出schema>
写入SKILL.md后,确认已安装成功:
```bash
ls ~/.claude/skills/<task-name>/SKILL.md/<task-name>| Task | Iterations | Final Status | Graduated | Cost |
|---|---|---|---|---|
| google-flights | 5 | ✅ pass | yes | $0.42 |
| amazon-add-to-cart | 5 | ❌ fail | no | $1.20 |
./autobrowse/reports/mkdir -p ./autobrowse/reports./autobrowse/reports/YYYY-MM-DD-HH-MM-<tasks>.mdundefined| 任务 | 迭代次数 | 最终状态 | 是否已毕业 | 成本 |
|---|---|---|---|---|
| google-flights | 5 | ✅ 通过 | 是 | $0.42 |
| amazon-add-to-cart | 5 | ❌ 失败 | 否 | $1.20 |
./autobrowse/reports/mkdir -p ./autobrowse/reports./autobrowse/reports/YYYY-MM-DD-HH-MM-<tasks>.mdundefined| Task | Iterations | Pass Rate | Final Status | Graduated | Cost |
|---|---|---|---|---|---|
| ... | ... | X/5 | ✅/❌ | yes/no | $X.XX |
| 任务 | 迭代次数 | 通过率 | 最终状态 | 是否已毕业 | 成本 |
|---|---|---|---|---|---|
| ... | ... | X/5 | ✅/❌ | 是/否 | $X.XX |
| Iter | Turns | Cost | Status | Hypothesis tested |
|---|---|---|---|---|
| 1 | 79 | $18.75 | ❌ fail | baseline |
| 2 | 9 | $0.26 | ✅ pass | session contamination fix |
| ... | ... | ... | ... | ... |
---| 迭代次数 | 交互轮次 | 成本 | 状态 | 测试的假设 |
|---|---|---|---|---|
| 1 | 79 | $18.75 | ❌ 失败 | 基准测试 |
| 2 | 9 | $0.26 | ✅ 通过 | 会话异常修复 |
| ... | ... | ... | ... | ... |
---strategy.mdtask.mdevaluate.mjs./autobrowse/~/.claude/skills/autobrowse/~/.claude/skills/SKILL.mdstrategy.mdtask.mdevaluate.mjs./autobrowse/~/.claude/skills/autobrowse/~/.claude/skills/SKILL.md