Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

auto-e2e汽车电子到电子

Agent Skill

auto-e2e 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

216

周安装

9

GitHub Stars

1

下载量

72
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:auto-e2e(汽车电子到电子)
来源仓库:https://github.com/foyagent/ai
仓库路径:skills/auto-e2e
安装命令:
npx skills add https://github.com/foyagent/ai --skill auto-e2e
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/foyagent/ai --skill auto-e2e

简介

auto-e2e 提供端到端测试录制与回放能力,支持会话级 workflow 管理与输出物标准化。

  • 适合在 GUI 应用或 Web 界面测试中捕获用户操作流,复现问题并验证修复效果。
  • 通过 record 模式生成 session 录像、screenshot 与 summary.json,便于后续分析。
  • 回放模式需依赖先前录制的数据,确保环境一致性以避免漂移导致的误判。
  • 输出文件按日期与别名组织,建议使用 references/recording-rules.md 规范命名规则。

SKILL.md

Auto E2E

Version

Current skill version: 1.1.0.

For every future edit to this skill, bump the semantic version and update both:

  • VERSION
  • CHANGELOG.md

Use this bump policy:

  • patch: wording fixes, clarification, non-behavioral instruction tweaks
  • minor: backward-compatible new capabilities, flags, or output files
  • major: breaking changes to trigger shape, generated script contract, save paths, or runtime expectations

Read these references when needed:

Session workflow

  1. Start recording when the user says /auto-e2e <url> or /aee <url> or otherwise clearly asks to begin an auto-e2e recording for a specific page.
  2. Detect optional flags from the same start message.

- If the user includes record, enable record mode for this session. - Examples that should enable record mode: - /auto-e2e https://example.com record - /auto-e2e record https://example.com - /aee https://example.com record

  1. Also recognize replay mode when the user says /auto-e2e replay <query> or /aee replay <query>.

- In replay mode, search auto-e2e/records/ for the best matching prior record based on the natural-language query. - If one record is a clear best match, load it, open its targetUrl, and tell the user which record is being replayed. - If there is significant ambiguity between multiple strong matches, show the top few likely records and ask the user to choose before proceeding.

  1. Maintain session state in memory for the current conversation:

- mode as record or replay - targetUrl - stepQueue[] in order - variables[] with name, description, sampleValue, and optional defaultValue only when the user explicitly asks for one - returnSpec if the user asks to return JSON data at the end - recordConversation boolean - conversationLog[] when record mode is enabled - scriptBasename to be decided only when recording ends - matchedRecord when replay mode is enabled - replayCursor for the current expected step index when replaying against a prior record

  1. If record mode is enabled, append every recording-session user message and every agent reply to conversationLog[] using the raw original text. Do not summarize or normalize the message text in the saved record.
  2. Interpret each later user message as one step unless the message is clearly a control message such as undo, cancel the last step, finish, abort, or replay confirmation.
  3. Execute the step in the open browser first, then record the canonical script version of the step into stepQueue.
  4. If the user asks to undo or cancel the last step, remove only the last recorded item from stepQueue. Do not change the browser. The user is responsible for restoring the page state manually.
  5. In replay mode, after each executed step, compare the current outcome against the most relevant expected assistant reply from the matched record.

- If the current outcome is semantically consistent with the prior expected result, continue and advance replayCursor. - If the current outcome is inconsistent with the prior expected result, pause immediately and ask the user whether to continue, adjust the step, or stop.

  1. When the user ends recording or replay re-recording, generate the final files inside the agent workspace auto-e2e/ directory:
  • auto-e2e/package.json
  • auto-e2e/<content-summary-name>.mjs
  • auto-e2e/records/<content-summary-name>.json only when recordConversation is true
  1. After saving, return a concise summary including the skill version, mode, output path, chosen script filename, whether a record JSON was written, required variables, and how to run it.

Recording rules

  • Treat the user's message as a browser action only when it clearly describes an intended action on the current page.
  • Supported first-version actions: click, hover, fill or clear inputs, select options, check or uncheck controls, keyboard actions including Enter, explicit waits for visible or hidden elements, and final data extraction for JSON output.
  • Prefer resilient locators in this order: getByRole, getByLabel, getByPlaceholder, getByText, then locator(...) only as a fallback.
  • Keep both a human-readable description and the exact generated Playwright code for each queued step, but the user does not need to see the code unless helpful.
  • After each mutating step, insert the default settle behavior:

1. wait until there are no network requests if possible; 2. then wait one additional second.

  • Implement settle behavior in generated code with a helper that gracefully falls back if networkidle never arrives.
  • Do not record pure conversation, clarifications, or status acknowledgements as browser steps.
  • In record mode, still save those non-step user and agent messages into conversationLog[]; only exclude browser-internal state dumps or tool traces.
  • In replay mode, use the matched record only as guidance and a verification baseline. The newly generated script must reflect what happened in the current run, not blindly copy the old steps if the user intentionally changed them.

Variable handling

Only create variables when the user explicitly marks content as variable or clearly says it should become an argument. Examples:

  • “这个邮箱是变量,变量名 email,当前值是 demo@example.com
  • “把收货人当成变量 recipientName,录制时先填 张三”
  • “这一步里的搜索词后续会变,作为参数 searchKeyword,目前用 手机”

When the user explicitly marks something as variable:

  1. Require or infer a stable variable name in english lower camel case. If the user gives a Chinese name, translate it to a short english identifier.
  2. Record the sample value because recording still needs a concrete value to drive the browser now.
  3. Generate code that reads the runtime value from the single params object, for example params.email.
  4. Never write the recorded sample value into the script as a default value unless the user explicitly says it should be used when the param is missing.
  5. Add a runtime guard near the top of the script for every required variable that has no explicit default.
  6. Keep all variables under one function parameter object. Never generate multiple positional arguments.

If the user explicitly asks to use the recorded value as a fallback, treat that variable as optional at runtime and emit the default in code. Otherwise treat the sample value as recording-only data that must not appear in the generated script beyond comments or metadata.

If the user does not clearly say something is a variable, keep it as a literal value in the script.

Final script and record contract

Generate one single-file Playwright ESM script with these properties:

  • Filename: summarize the recorded workflow in english using lowercase words joined with hyphens. Make it specific but short, for example login-search-order.mjs or open-dashboard-export-report.mjs.
  • Location: auto-e2e/<filename>.mjs under the agent workspace.
  • Include a node shebang.
  • Default export exactly one async function receiving one object argument:
export default async function run(params = {}) {
  • Ensure auto-e2e/package.json exists and is compatible with the generated script. Use the bundled template in assets/package.json unless an equivalent file already exists.
  • The script must import Playwright from playwright, launch a browser, create a page, run all recorded steps, return the requested JSON object when the user asked for one, and always close the browser in finally.
  • If the user did not request data extraction, return a small JSON object describing success.
  • CLI mode must accept only one optional command-line argument: a JSON string representing the same params object.
  • In CLI mode, call the default-exported function and print the return value to stdout. If the return value is an object or array, print valid JSON.

If record mode is enabled, also write a JSON file to auto-e2e/records/<script-basename>.json with this shape:

{
  "skillVersion": "1.1.0",
  "targetUrl": "https://example.com",
  "scriptFile": "auto-e2e/login-search-order.mjs",
  "recordFile": "auto-e2e/records/login-search-order.json",
  "messages": [
    { "index": 1, "role": "user", "content": "/auto-e2e https://example.com record" },
    { "index": 2, "role": "assistant", "content": "已打开页面,等待下一步。" }
  ]
}

Rules for the record JSON:

  • Use the same basename as the generated script.
  • Preserve user original wording and agent reply text as-is.
  • Save only the recording-session conversation, from the start command through the final save confirmation for that session.
  • Store valid JSON only.

Replay contract

When the user starts replay mode with /auto-e2e replay <query> or /aee replay <query>:

  1. Search auto-e2e/records/ for likely matches using:

- the natural-language replay query; - record basename; - target URL and hostname; - notable user and assistant text from saved messages.

  1. Load the matched record and use it to reconstruct the expected flow.
  2. Re-record the flow in the live browser based on the current user instructions.
  3. After each step, use the matched record's prior assistant reply as the main expectation for whether the behavior still looks correct.
  4. Compare semantic outcomes, not exact wording. Prefer observed browser state over text similarity.
  5. If the current result contradicts the prior expected result, stop and confirm with the user before continuing.
  6. If the replay completes without unresolved mismatches, tell the user the verification re-recording is complete and then save the new script.

Output checklist

Before finishing, verify that the generated script:

  • uses only one params object for all variables;
  • includes required-variable validation for explicitly declared variables without explicit defaults;
  • does not leak recorded sample values into runtime defaults unless the user explicitly requested that behavior;
  • uses the default settle helper between steps;
  • writes valid ESM code runnable with Node;
  • writes or preserves auto-e2e/package.json;
  • saves the script with a summarized english hyphen-case filename.

Before finishing in record mode, also verify that the generated record file:

  • is saved under auto-e2e/records/;
  • uses the same basename as the script;
  • contains raw user and agent text from this recording session only;
  • includes the current skill version.

Before finishing in replay mode, also verify that:

  • the matched prior record was identified from auto-e2e/records/;
  • any mismatched step paused for user confirmation;
  • the final script reflects the current successful run, not stale prior code;
  • the completion message clearly states whether the replay matched cleanly or required user-confirmed divergence.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.56%
按下载量换算26

Claude

31.03%
按下载量换算22

Cursor

16.18%
按下载量换算12

Gemini CLI

8.82%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills