← 返回
AI智能 Key 中文

Avenir Web

Execute and improve Avenir-Web autonomous web tasks end-to-end with mode selection, instruction validation, single or batch runs, and next-step recommendations.
端到端执行和改进Avenir-Web自主网页任务,支持模式选择、指令验证、单次或批量运行,并提供下一步建议。
yiliu-li
AI智能 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 699
下载
💾 13
安装
1
版本
#latest

概述

Avenir-Web

What this skill does

This skill operates Avenir-Web for reliable web-task execution and iteration.

Responsibilities:

  • run single tasks and batch tasks
  • choose mode (headless / headed / demo)
  • improve instruction quality before execution
  • analyze run outputs and recommend the next best change
  • execute one atomic action without strategy/checklist overhead
  • read the current page by screenshoting it and asking the main model a question

Use this skill for requests like:

  • run a task on a website
  • run a task list and summarize outcomes
  • improve success rate with better instructions/config

Canonical entrypoints

Single task:

python example.py --task "<instruction>" --website "<url>" --mode headless

Atomic action:

python scripts/atomic_action.py --action CLICK --website "<url>" --coords "500,500"

Read page:

python scripts/read_page.py --website "<url>" --question "<question>"

Batch:

cd src
python run_agent.py -c config/batch_experiment.toml

Prefer these scripts over ad-hoc commands.

Quick usage example

Single task:

python example.py \
  --task "On openrouter.ai, list image-input-capable distillable models sorted by price ascending." \
  --website "https://openrouter.ai/" \
  --mode demo

Batch:

cd src
python run_agent.py -c config/batch_experiment.toml

Atomic action:

python scripts/atomic_action.py \
  --action TYPE \
  --website "https://example.com/" \
  --coords "500,420" \
  --value "hello"

Read page:

python scripts/read_page.py \
  --website "https://openrouter.ai/" \
  --question "What models or prices are visible on this page?"

Run modes

modebehaviorbest for
---------
headlessno visible browser windowfast, reproducible runs and large batch jobs
headedvisible browser windowmanual observation without demo overlay
demovisible window + overlay/dashboard controlslive debugging and demonstrations

Notes:

  • if mode is missing, use headless
  • demo improves observability, not model intelligence

Mode selection:

  1. benchmark/batch -> headless
  2. visual debugging -> headed
  3. demo/control flow visibility -> demo

Instruction design

confirmed_task should include:

  1. objective
  2. constraints
  3. completion condition

Template:

  • On , . Apply constraints: . Finish when .

Keep it single-goal, specific, and verifiable.

Single-task workflow

Input:

  • task
  • website
  • optional mode, task-id, output-dir

Steps:

  1. check environment and API key
  2. validate instruction quality
  3. run example.py
  4. inspect outputs
  5. report status + cause + next action

Recommended report fields:

  • task_id
  • status: success / partial / failed
  • evidence summary
  • one-line cause
  • one recommended next step

Atomic action workflow

Use scripts/atomic_action.py when you need exactly one browser operation and do not want strategist/checklist generation.

Typical uses:

  • one click
  • one type
  • one goto
  • one scroll

Properties:

  • disables strategy generation
  • disables checklist generation
  • executes exactly one action
  • returns structured JSON with result, URL, screenshot path, and output directory

Read-page workflow

Use scripts/read_page.py when you want to inspect the current page by screenshot and ask the main model a direct question.

Properties:

  • opens the page
  • captures a screenshot
  • sends the screenshot plus page metadata to the main model
  • returns structured JSON with the answer and screenshot path

Batch workflow

Task file schema

[
  {
    "task_id": "example_task_001",
    "confirmed_task": "Find image-input-capable distillable models sorted by price ascending.",
    "website": "https://openrouter.ai/"
  }
]

Required per task:

  • task_id
  • confirmed_task
  • website

Config checklist (src/config/batch_experiment.toml)

  • [basic].save_file_dir
  • [experiment].task_file_path
  • [experiment].max_op
  • [playwright].mode
  • [model].name
  • API key source

Batch execution

  1. validate JSON schema and config paths
  2. choose mode and max_op
  3. run batch command
  4. summarize per-task outcomes
  5. provide one global improvement recommendation

Recommended batch report fields:

  • total/completed/failed counts
  • per-task status list
  • recurring issue patterns
  • one highest-impact next change

API requirements

Required credential:

  • OPENROUTER_API_KEY (preferred)

Resolution order:

  1. environment variable OPENROUTER_API_KEY
  2. [api_keys].openrouter_api_key in TOML (fallback)

Rules:

  • never hardcode real keys in source files
  • never print full keys in logs/outputs/reports
  • fail fast if key is missing with an actionable message

Script usage rules

  • script-first: use repository entrypoints before custom commands
  • non-interactive CLI only
  • explicit flags and paths
  • deterministic behavior preferred
  • clear, actionable error messages

If adding helper scripts:

  1. place under scripts/
  2. use CLI flags (no prompts)
  3. return stable, parseable summaries
  4. document usage in this file

Environment checklist

Before running:

  1. Python environment available
  2. dependencies installed (pip install -e src)
  3. Playwright Chromium installed (python -m playwright install chromium)
  4. API key configured
  5. config/task paths valid

Output contract

Each run summary should include:

  1. execution metadata: run type, mode, task IDs
  2. outcome: status and evidence summary
  3. diagnosis: root-cause hypothesis
  4. next action: one highest-impact recommendation

Boundaries

  • do not claim completion without evidence
  • do not skip issue summary
  • avoid large refactors before instruction/config fixes
  • avoid interactive prompts in core workflow

One-line identity

Avenir-Web execution and reliability skill: mode selection + instruction design + run analysis + iteration planning.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-31 00:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 417 📥 115,152
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 711 📥 243,706
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,355 📥 318,021