复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-agent-skills-52b5d2985d93 ,按照其中的说明把「webperf」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
/webperf targets web applications specifically. Do not use it for utility libraries, CLIs, or server-only code with no browser-facing output.
Deep mode — activate when any of these is available:
npx lighthouse <url> --output json --output-path ./report.json, or npx -p chrome-devtools-mcp chrome-devtools lighthouse_audit --output-format=json from the Chrome DevTools MCP CLI)CRUX_API_KEY or GOOGLE_API_KEY)chrome-devtools MCP server configured in the harness (the agent can capture metrics directly via lighthouse_audit and performance_* tools)npx -p chrome-devtools-mcp chrome-devtools <tool> or after npm i -g chrome-devtools-mcp) — the user runs commands like chrome-devtools lighthouse_audit --output-format=json and passes the JSON output to the agentQuick mode — default when none of the above are available. The agent scans source code for structural anti-patterns and labels every finding as potential impact.
Spawn the web-performance-auditor subagent. Pass it explicitly:
The subagent returns a scorecard (only populated with sourced values), a ranked list of findings, positive observations, and proactive recommendations.
Return the full audit report to the user. No synthesis or merge step is needed — this is a single-persona command.