Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-qa-testing-b82ef0b14cf5 ,按照其中的说明把「qa-testing」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
After you build or change an app or website, do not assume it works. Drive it and check.
Installing these tools and loading pages need outbound network, which sandboxes can block. Check before anything else:
curl -fsI https://github.com >/dev/null 2>&1 && echo "network ok" || echo "network blocked"
If it prints network blocked, stop and tell the user:
I need network access to install and run the testing tools. Run
/permissionsand choose an access level that allows network, then ask me again.
On macOS/Linux, prefer the prebuilt binary directly:
if ! command -v agent-browser >/dev/null; then
os=$(uname -s | tr '[:upper:]' '[:lower:]'); m=$(uname -m)
case "$os/$m" in
darwin/arm64) asset=agent-browser-darwin-arm64 ;;
darwin/x86_64) asset=agent-browser-darwin-x64 ;;
linux/aarch64|linux/arm64) asset=agent-browser-linux-arm64 ;;
linux/x86_64) asset=agent-browser-linux-x64 ;;
esac
mkdir -p ~/.local/bin
curl -fL "https://github.com/vercel-labs/agent-browser/releases/latest/download/$asset" -o ~/.local/bin/agent-browser
chmod +x ~/.local/bin/agent-browser
fi
agent-browser install
agent-browser skills get core
On Windows, use the package installer because it downloads the matching native binary:
if (-not (Get-Command agent-browser -ErrorAction SilentlyContinue)) {
npm install -g agent-browser
$env:Path = "$env:APPDATA\npm;$env:Path"
}
agent-browser install
agent-browser skills get core
Then use the tool's maintained guide: agent-browser open <url>, take a
snapshot, act on the element refs, and snapshot again.
macOS/Linux:
command -v cua-driver >/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.sh)"
cua-driver list-tools
Windows PowerShell:
if (-not (Get-Command cua-driver -ErrorAction SilentlyContinue)) {
irm https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.ps1 | iex
$env:Path = [Environment]::GetEnvironmentVariable('Path', 'User') + ';' + [Environment]::GetEnvironmentVariable('Path', 'Machine')
}
cua-driver list-tools
For native apps, verify a real state change after the action. A click command that reports success is not enough by itself. Capture an initial state, act, then capture a post-action state and compare visible text, counters, status labels, selected state, input values, or screenshot evidence.
Many Windows hosts still run Windows PowerShell 5.1, where && is not a valid
statement separator. Use separate commands, semicolons, or explicit
if ($LASTEXITCODE -eq 0) { ... } checks instead. Quote tool arguments that
begin with @, especially agent-browser refs.
command -v before installing.agent-browser skills get core and
cua-driver list-tools.