Agent skill

Browser Testing

by cafe3310 in cafe3310/public-agent-skills

定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录. An agent skill from cafe3310/public-agent-skills.

Apache-2.0Auto-check passedTesting & QA

Install Browser Testing

skills CLI
$ npx skills add cafe3310/public-agent-skills --skill browser-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cafe3310/public-agent-skills browser-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills_archived/browser-testing .claude/skills/browser-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
browser-testing
GitHub stars
255
Token cost
~433 tokens
SKILL.md length
125 words
Files
2
Skills in repo
29
Repo updated
First seen
Licence
Apache-2.0

At a glance

定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录. An agent skill from cafe3310/public-agent-skills.

  • Works in 5 steps: 概述 → 何时使用 → 测试流程 → …
  • Tasks that involve Browser testing
  • SKILL.md covers 1. 概述, 2. 何时使用, 3. 测试流程 and 4. 测试用例规范, plus 1 more section
  • Calls git

What it does

Browser Testing is an agent skill from cafe3310/public-agent-skills. 定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录。

Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files.

It sits in Testing & QA, covering Browser testing and End-to-end testing. The repository describes itself as: personal agent skills for better QoL. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Browser testing
  • Tasks that involve End-to-end testing

Example prompts

  • “/browser-testing”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 概述
  2. 何时使用
  3. 测试流程
  4. 测试用例规范
  5. 模板资源

What it can do on your machine

Read from SKILL.md and the folder at commit 6c45501. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Browser Testing loads about 433 tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 125 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~433

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cafe3310/public-agent-skills at commit 6c45501, republished under its Apache-2.0 licence (© cafe3310). 125 words, ~433 tokens.

Download SKILL.mdSave it as .claude/skills/browser-testing/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
browser-testing
description
定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录。
author
github/cafe3310
license
Apache-2.0

技能: 基于浏览器的端到端测试

1. 概述

本技能定义了一套端到端(E2E)测试流程,该流程不依赖传统的单元测试框架,而是通过 chrome-dev-tools 或类似的浏览器工具进行手动或半自动化的界面测试。

所有测试用例都以结构化的 Markdown 文件形式进行记录和管理。

2. 何时使用

  • 当需要为项目中的某个 Space 应用创建或执行测试时。
  • 当需要验证一个功能在本地和部署后是否都按预期工作时。
  • 当需要记录测试过程和结果以供回顾时。

3. 测试流程

  1. 本地测试优先: 在本地环境中完成开发后,首先在本地运行应用,并根据测试用例执行端到端测试。
  2. 部署测试: 本地测试全部通过后,将代码推送到 main 分支,触发 Hugging Face Spaces 的自动部署。
  3. 验证部署: 在部署后的 Space 页面上,重复执行测试用例,确保线上功能与本地一致。

4. 测试用例规范

A) 存放位置

每个 Space 应用的测试用例都存放在其各自的 tests/ 目录下。例如:some-proj/tests/。

B) 文件结构

每个测试用例都是一个独立的 Markdown 文件,其内容结构由模板 templates/test-case.md.template 定义。

  • 文件头:
    • 创建时间: 测试用例创建时的时间戳。
    • Commit Hash: 创建时对应的 Git Commit 哈希值。
    • Commit Message: 创建时对应的 Git Commit 消息。
  • 核心定义:
    • 测试名称: 对测试用例的简短描述。
    • 测试目的: 详细说明此测试用例要验证的功能或修复的问题。
  • 环境信息:
    • 本地运行和部署方式: 清晰说明如何在本地启动应用以及如何触发部署。
  • 执行与结果:
    • 测试步骤: 一系列清晰、可复现的操作步骤。
    • 预期结果: 描述在执行完测试步骤后,系统应该达到的状态。
    • 通过时的实际结果: 当测试成功通过后,在此处记录观察到的实际结果,包括:
      • 截图路径: 自动截取的关键页面截图的存储路径。
      • 验证状态: 截图内容与预期结果描述比对后的验证结果(通过/不通过)。
      • 口述标准: 用户口述的预期结果视觉描述。 这些记录作为测试通过的凭证。
C) 创建测试用例
  1. 使用 date +'%Y-%m-%d-%H-%M' 获取当前时间戳。
  2. 使用 git log -1 --pretty=%H%n%s 获取最新的 Commit 信息。
  3. 复制 browser-testing/templates/test-case.md.template 模板内容。
  4. 填充模板中的占位符,并编写详细的测试步骤和预期结果。
  5. 将新创建的测试用例文件保存到对应 Space 的 tests/ 目录下。
  6. 为每个测试用例创建一个同名的子目录,用于存放截图等测试产物。例如:some-proj/tests/YYYY-MM-DD-HH-mm-测试名称/。

5. 模板资源

  • templates/test-case.md.template: 用于创建新测试用例的 Markdown 模板。

© cafe3310, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills_archived/browser-testing of cafe3310/public-agent-skills.

  • SKILL.md
  • templates/test-case.md.template

Open the folder on GitHubat commit 6c45501

Compare with similar skills

Browser Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Browser Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Browser Testing this skillcafe3310/public-agent-skills255—~433Automated safety check: PassApache-2.0
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
Agentic TDDreticlehq/reticle1.2k—~1.2kAutomated safety check: PassApache-2.0
Whole-App Health Sweepreticlehq/reticle1.2k—~1.1kAutomated safety check: PassApache-2.0
Branch Browser TestsEveryInc/compound-engineering-plugin25k—~1.6kAutomated safety check: NotesMIT
Foreman Web TestingVisionForge-OU/foreman444—~953Automated safety check: PassCustom licence

Similar skills

  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Agentic TDD

    reticlehq/reticle

    Applies red-green TDD to behavior unit tests cannot reach, by stating the expected outcome against the running app with Reticle before writing the feature.

    1.2k GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Whole-App Health Sweep

    reticlehq/reticle

    Sweeps a running web app by clicking every reachable control, then reports dead buttons, console errors, failed requests and mismatches between API data and the screen.

    1.2k GitHub stars~1.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Branch Browser Tests

    EveryInc/compound-engineering-plugin

    Runs end-to-end browser tests on the pages touched by the current branch or PR and reports every affected route as pass, fail or skip with reasons.

    25k GitHub stars~1.6k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Foreman Web Testing

    VisionForge-OU/foreman

    Headless end-to-end / web-app testing for the Foreman e2e stage.

    444 GitHub stars~953 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Installs Reticle's dev-only SDK in a running web app and verifies user-facing changes by driving a real flow, returning a verdict with the file and line to fix.

    1.2k GitHub stars~2.7k tokensUpdated today
    Testing & QAAuto-check: notes

More from cafe3310/public-agent-skills

All 29 skills in this repo
  • Impeccable

    cafe3310/public-agent-skills

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    255 GitHub stars~4.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Text Watermark Fountain

    cafe3310/public-agent-skills

    A specialized skill for embedding and extracting resilient watermarks in text by manipulating sentence lengths and using Fountain Codes.

    255 GitHub stars~921 tokensUpdated 3 mo ago
    Auto-check passed
  • Obsidian Todo Collector

    cafe3310/public-agent-skills

    从 Obsidian 知识库中扫描指定时间范围内未完成事件,生成/更新未完成事件整理文档. An agent skill from cafe3310/public-agent-skills.

    255 GitHub stars~575 tokensUpdated 3 mo ago
    Auto-check passed
  • Deep Research

    cafe3310/public-agent-skills

    一个全面、自主的深度研究框架。当用户请求对复杂主题、市场调研、技术格局进行深入的多维度调查,或需要大量网页浏览、数据合成和结构化报告的任何任务时,使用此技能。它协调子代理(subagents)并使用基于文件系统的状态管理来防止上下文膨胀。

    255 GitHub stars~996 tokensUpdated 3 mo ago
    Auto-check passed
  • Long Audio To Obsidian

    cafe3310/public-agent-skills

    将语音转写项目输出的复杂文件结构整理合并为适合 Obsidian 归档的 Markdown 文档. An agent skill from cafe3310/public-agent-skills.

    255 GitHub stars~772 tokensUpdated 3 mo ago
    Auto-check passed
  • Markdown New

    cafe3310/public-agent-skills

    通过 markdown.new API 将网页、整站或搜索结果转换为干净的 Markdown. An agent skill from cafe3310/public-agent-skills.

    255 GitHub stars~344 tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Browser Testing

What does Browser Testing do?

定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录. An agent skill from cafe3310/public-agent-skills. Browser Testing is an agent skill from cafe3310/public-agent-skills.

When should I use Browser Testing?

Browser Testing fits situations like: tasks that involve Browser testing; tasks that involve End-to-end testing.

How do I install Browser Testing in Claude Code?

Run `npx skills add cafe3310/public-agent-skills --skill browser-testing -a claude-code`. Or copy the skill folder (skills_archived/browser-testing in cafe3310/public-agent-skills) into .claude/skills/browser-testing in your project. Claude Code loads it when a task matches its description.

How do I install Browser Testing in Codex?

Run `npx skills add cafe3310/public-agent-skills --skill browser-testing -a codex`. Or copy the skill folder (skills_archived/browser-testing in cafe3310/public-agent-skills) into .agents/skills/browser-testing in your project. Codex loads it when a task matches its description.

Can I use Browser Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cafe3310/public-agent-skills --skill browser-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/browser-testing, .gemini/skills/browser-testing, .github/skills/browser-testing and .opencode/skills/browser-testing in your project.

What does Browser Testing need to run?

Going by SKILL.md and its folder, Browser Testing needs the command-line tools its instructions call (git).

Does Browser Testing access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Browser Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Browser Testing use?

Browser Testing is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Browser Testing use?

About 433 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Browser Testing?

Skills that share tags, products or a category with Browser Testing: Web Application Testing (anthropics/skills, 180k stars), Agentic TDD (reticlehq/reticle, 1.2k stars), Whole-App Health Sweep (reticlehq/reticle, 1.2k stars) and Branch Browser Tests (EveryInc/compound-engineering-plugin, 25k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Browser Testing?

cafe3310 (a GitHub user) maintains it in cafe3310/public-agent-skills, which has 255 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on June 26, 2026.

Source: cafe3310/public-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.