
nucliweb/webperf-snippets
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
nucliweb/webperf-snippets — это кандидат на навык агента, импортированный из https://github.com/nucliweb/webperf-snippets.
Обзор
nucliweb/webperf-snippets — это кандидат на навык агента, импортированный из https://github.com/nucliweb/webperf-snippets.
Обзор (машинный перевод)
Протестировал JavaScript-фрагменты, которые измеряют и отладывают производительность веба. Ваш AI-агент запускает их за вас, или вы сами запускаете их в DevTools: один и тот же код каждый раз.
Агенты ИИ хорошо интерпретируют данные о производительности и ненадёжны, когда пишут измерительный код на лету. WebPerf Snippets разделяют оба варианта: измерение — это фиксированный код, тестируемый в CI, который возвращает структурированные данные, и агент объясняет результат. Те же фрагменты выполняются в консоли, CLI, расширении DevTools и Agent Skills, и каждый из них возвращает объект, следующий одному контракту (snippets/SCHEMA.md).
→ Почему аудитам ИИ нужны детерминированные скрипты
Запускайте их с агентом ИИ
| Ты хочешь | Использовать |
|---|---|
| Проверьте URL у любого агента, у которого есть терминал | Кнопка «Копировать» на каждой странице фрагмента |
| Дайте агенту фрагменты как инструменты | MCP-сервер |
| Позвольте агенту управлять вашим Chrome (вход, взаимодействия) | Навыки агента с Chrome DevTools MCP |
| Запускайте фрагменты из скриптов или CI | CLI |
| Дайте агенту всю документацию | 'llms. |
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
WebPerf Snippets
Tested JavaScript snippets that measure and debug web performance. Your AI agent runs them for you, or you run them yourself in DevTools: the same code every time.
AI agents are good at interpreting performance data and unreliable when they write measurement code on the fly. WebPerf Snippets keeps both apart: the measurement is fixed code, tested in CI, that returns structured data, and the agent reasons about the result. The same snippets run in the console, the CLI, the DevTools extension and the Agent Skills, and every one returns an object that follows a single contract (snippets/SCHEMA.md).
→ Why AI audits need deterministic scripts
Run them with an AI agent
| You want to | Use |
|---|---|
| Audit a URL with any agent that has a terminal | The Copy prompt to measure button on each snippet page |
| Give an agent the snippets as tools | The MCP server |
| Let the agent drive your Chrome (login, interactions) | The Agent Skills with Chrome DevTools MCP |
| Run snippets from scripts or CI | The CLI |
| Give an agent the whole documentation | llms.txt (details) |
Not sure which snippet to run? Start from the symptom in Which snippet should I use?
Copy prompt to measure
Snippet pages have a Copy prompt to measure button above the code. It copies a prompt that asks any AI agent with a terminal to run that snippet with the CLI on the URL you give it, and to report the value, the cause and the issues. The agent runs the published snippet instead of rewriting it or estimating the result.
MCP server
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add nucliweb/webperf-snippets