Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

inspect-in-devtools

БесплатноБез исполняемых скриптовНе проверен

Use this skill to connect to the Chrome DevTools UI for interactive debugging, UI/UX review, Q&A, showing elements/network requests/panels to the user…

ChromeDevToolsот ChromeDevTools★ 60 074 звезды на GitHub

Об этом скилле

Debug, Review, and Q&A in DevTools

Use this skill to:

  1. Show a target to the user: Open DevTools and reveal a panel, a DOM element, or a network request.
  2. Inspect the user's selection: Read the element or network request that the user selected in DevTools.
  3. Address DevTools comments: Watch for comment threads in the background, answer questions or apply fixes, and resolve the threads.

Prerequisites

  • Chrome version: Chrome M159 or later.
  • Required flag: --devtools-comments in the MCP server config. Without it, open_devtools, reveal_in_devtools, get_devtools_comments, and resolve_devtools_comment are not available.
  • Headed browser: Chrome must not run in --headless mode.
  • Page targeting: All tools require a pageId from list_pages or new_page.

Unsupported Chrome

This skill does not work on Chrome versions earlier than M159. If a tool returns DevTools comments are not supported by the connected browser:

  1. Stop the workflow. Do not poll, retry, or call other DevTools comment tools.
  2. Tell the user that this feature requires Chrome 159 or later, and that they can update Chrome or restart the MCP server with a newer --channel (for example, --channel=canary).
  3. Do not tell the user that the page is ready for review in DevTools.
  4. If a background watcher receives this error, it must stop immediately and report it back to the main agent so the main agent informs the user.

Default Behavior: Background Comment Watching

Whenever you call open_devtools or reveal_in_devtools to show something to the user, assume they may leave DevTools comments next:

  • If sub-agent tools are available: Automatically start (or verify) a background comment watcher sub-agent for pageId before ending your turn, unless one is already active for that pageId or the user explicitly opted out (for example, "check once" or "don't poll"). Tell the user in chat that you are watching for DevTools comments in the background, then end your turn promptly so chat stays responsive.
  • After resolving comments: Message or resume the existing watcher for pageId rather than spawning a duplicate, unless the user says they are done.
  • If sub-agent tools are unavailable: Do not block the main turn by polling inline after open_devtools or reveal_in_devtools. Only poll inline when the user explicitly asks you to wait for comments.

Workflows

1. Open DevTools

Call open_devtools with pageId. Do this before calling reveal_in_devtools, get_devtools_comments, or resolve_devtools_comment. Then ensure a background comment watcher is running for pageId (see Default Behavior above).

2. Reveal a panel, element, or network request

Call reveal_in_devtools with pageId and these optional parameters:

  • panelName: "elements", "network", "sources", or "console". Pass it alone to switch panels.
  • uid: Element uid from take_snapshot. Reveals the element in the Elements panel. If the element may be below the fold, also scroll it into view on the page (for example with evaluate_script) so the user can see it in the viewport as well as the Elements tree.
  • reqid: Request reqid from list_network_requests. Reveals the request in the Network panel.

uid and reqid are mutually exclusive. After revealing a target, ensure a background comment watcher is running for pageId (see Default Behavior above).

3. Inspect the user's selection

  • DOM element: Call take_snapshot with verbose: true when reading the element selected in the Elements panel, or whenever a non-accessibility node (<div>, wrapper, or decorative <img>) is omitted from a compact snapshot. Pass its uid to get_css_styles, take_screenshot, or evaluate_script.
  • Network request: Call get_network_request and omit reqid. It returns the request selected in the Network panel.

4. Handle comment threads

Mode A: Watch in the background (default)

Use this mode automatically after open_devtools or reveal_in_devtools, and whenever the user asks to check or wait for comments, unless they explicitly opt out.

Watcher lifecycle and rules:

  1. Prevent duplicates: Keep at most one active watcher sub-agent per pageId. Never spawn a second watcher for the same pageId; after resolving a batch of comments in the main thread, message or resume the existing watcher to keep listening. Because get_devtools_comments returns each thread only once, do not call get_devtools_comments from the main agent while a watcher is active for pageId.
  2. Require MCP tool access: The background watcher sub-agent must have access to the chrome-devtools MCP tools (do not use a read-only or tool-restricted sub-agent that cannot call get_devtools_comments). If your harness lets you pick a lighter or faster model for sub-agents, prefer it since the watcher only polls.
  3. Split responsibilities: The watcher only calls `get_devt
Полный SKILL.md на GitHub

Установить inspect-in-devtools в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл inspect-in-devtools?

Use this skill to connect to the Chrome DevTools UI for interactive debugging, UI/UX review, Q&A, showing elements/network requests/panels to the user, inspecting the user's current DevTools selection, and addressing or watching for DevTools UI comment threads.

Как установить скилл inspect-in-devtools?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл inspect-in-devtools запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить inspect-in-devtools с