网页调试
排查已经出问题的本地网页:报错、白屏、布局错位、页面发出的接口请求失败
от wangzhe04★ 52 звезды на GitHub
Установить 网页调试 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Browser Debug
Use this skill when a local web app, HTML file, or intranet page is already broken: errors, a blank page, a misaligned layout, or requests from the page failing. For building or polishing UI, use frontend-design-craft; for a backend API on its own, use api-debugger.
Workflow:
- Make sure the server is running. A dev server never exits, so do not start it with
powershell_run: that is one-shot and kills the whole process tree when it times out.- Workbench provider engine:
shell_startwithcommand(e.g.npm run dev) and a largetimeoutMs(the background command is killed at its deadline, 30 minutes by default), then read its output withshell_poll. Theshell_*tools do not work under Claude Code. - Claude Code: its Bash tool is Git Bash, so run PowerShell explicitly and keep the logs, e.g.
powershell -NoProfile -Command "Start-Process npm.cmd -ArgumentList 'run','dev' -WorkingDirectory '<project>' -WindowStyle Hidden -RedirectStandardOutput '<project>\dev.out.log' -RedirectStandardError '<project>\dev.err.log' -PassThru | Select-Object Id". Note the Id and stop it afterwards withStop-Process -Id <Id>. - Either way, poll the URL with
http_requestuntil it answers before going further.
- Workbench provider engine:
- Reproduce: read the server output (
shell_poll, or the two log files) and call failing endpoints directly withhttp_requestto see the status code and body. - Look at the page. There are two tools named
browser_open:- the workbench's own
browser_openopens the system default browser and returns as soon as it starts: wait (desktop controlwait_for_windowwith the page title, or a few seconds), thendesktop_screenshotand OCR (ocr_screen). Nothing can read that page's DOM. - the desktop control MCP's
browser_opendrives its own browser. In managed / custom / CDP mode (seebrowser_backend_status) it waits for the page to load, andbrowser_get_text,browser_execute_jsandbrowser_screenshotthen work on that page. They only see pages this tool opened.
- the workbench's own
- Fix the cause, then verify again the same way. When layout is involved, also check a narrow window: desktop control
resize_window(width, height, title) and screenshot again. - If automation is needed, write a short PowerShell or Node script with
script_run; keep it in the generated folder when it may need reuse.
Offline note:
Do not assume CDN assets or internet fonts will load. A blank page or missing styles offline is often a remote asset; frontend_audit lists them.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 网页调试?
排查已经出问题的本地网页:报错、白屏、布局错位、页面发出的接口请求失败
Как установить скилл 网页调试?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 网页调试 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…