Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

faster-chrome-devtools-skill更快的 chrome devtools 技能

Agent Skill

faster-chrome-devtools-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

192

周安装

8

GitHub Stars

1

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:faster-chrome-devtools-skill(更快的 chrome devtools 技能)
来源仓库:https://github.com/zeke/faster-chrome-devtools-skill
仓库路径:skills/faster-chrome-devtools-skill
安装命令:
npx skills add https://github.com/zeke/faster-chrome-devtools-skill --skill faster-chrome-devtools-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zeke/faster-chrome-devtools-skill --skill faster-chrome-devtools-skill

简介

优化 Chrome DevTools 操作的效率参考指南。

  • 提供各工具执行耗时对比与适用场景建议。faster-chrome-devtools-skill 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 推荐 take_snapshot 替代截图以提升性能。
  • 通过 GitHub 安装,适用于前端调试效能提升。
  • 需根据网络状况调整 navigate_page 超时设置。

SKILL.md

Chrome DevTools MCP: faster patterns

Tool speed reference

Measured from real session data (medians, at default viewport):

ToolAvgNotes
take_snapshot80msFastest page inspection. Prefer over screenshot.
list_console_messages3msCheap
evaluate_script227msFast; use as escape hatch for React components
fill358ms
click696ms
take_screenshot1,118msSlow; only use when visual appearance matters
navigate_page2,672msHighly variable; always set timeout
list_pages2,737msHigh variance; avoid in tight loops
new_page3,506msExpensive; reuse existing tabs when possible

Screenshot safety

PNG is lossless and uncompressed — a full-page PNG of a typical 1280px-wide page can easily reach 3–7MB. JPEG and WebP use lossy compression; at quality 75 a JPEG is typically 90%+ smaller than the equivalent PNG with no perceptible quality loss for the purposes of page inspection.

This matters because of two size thresholds in the pipeline:

  • 2MB (MCP threshold): screenshots >= 2MB are saved to a temp file and the model receives only a file path. The model never sees the image. This happens silently with no warning.
  • 5MB (Claude API limit): if an inline screenshot exceeds 5MB as base64, the API rejects the entire request and the session becomes permanently unrecoverable — compaction doesn't help because it replays the same images.

Always use JPEG or WebP with a quality setting when the screenshot will be shown to the model:

// Safe
take_screenshot({ format: "jpeg", quality: 75 })

// Dangerous — PNG has no compression, fullPage compounds it
take_screenshot({ fullPage: true })

Only use fullPage: true when you genuinely need the full page, and never without format: "jpeg", quality: 75.

If you get back a file path instead of an image, the screenshot exceeded 2MB. Retry with JPEG at quality 60.

Snapshot over screenshot

take_snapshot returns the page's accessibility tree — element roles, names, and UIDs you can pass to other tools. take_screenshot renders a pixel image via Puppeteer.

Use take_snapshot when you need to know what's on the page. Use take_screenshot only when visual appearance (images, CSS rendering, canvas) matters.

// Check page state — fast
take_snapshot()

// Verify a chart rendered correctly — screenshot warranted
take_screenshot({ format: "jpeg", quality: 75 })

After navigate_page, take_snapshot resolves in ~15ms. wait_for followed by take_screenshot averages 3,800ms for the same information.

Always set a timeout on navigate_page

With no timeout, navigate_page can block indefinitely. A localhost server with no timeout was observed hanging for 43 seconds.

// Always include a timeout
navigate_page({ type: "url", url: "https://example.com", timeout: 15000 })

// Dangerous — no timeout
navigate_page({ type: "url", url: "http://localhost:3000" })

Recommended timeouts by context:

ContextTimeout
Local dev server10,000ms
Normal web page15,000ms
Slow or resource-heavy page30,000ms
OAuth / external redirect flow60,000ms

Reuse tabs

new_page averages 3,500ms. If a relevant tab is already open, use it.

// Check first
list_pages()
select_page({ pageId: <id> })

// Only open a new tab if the URL isn't already open
new_page({ url: "https://example.com" })

How wait_for works

wait_for is MutationObserver-based, not a polling loop. It resolves the moment matching text appears in the DOM. When the content is already present or appears quickly, it resolves in 40–100ms.

The cost only comes when the expected content never appears and the timeout elapses. Set timeouts that reflect how long the operation could realistically take:

// After a click that triggers a UI update — short timeout is fine
wait_for({ text: ["Success", "Done"], timeout: 5000 })

// After submitting a form that hits a slow API
wait_for({ text: ["Order confirmed"], timeout: 15000 })

// After starting an OAuth flow — needs time for external redirect
wait_for({ text: ["refresh_token"], timeout: 60000 })

Do not use wait_for for things that will never appear in the accessibility tree (background processes, DNS propagation, external service completion). Use evaluate_script to poll a JS condition instead.

evaluate_script for hard cases

The accessibility tree is insufficient for React custom components, headless dropdowns, and synthetic event inputs. Use evaluate_script as the escape hatch.

Programmatic click (React-select and similar):

evaluate_script({
  function: () => {
    const option = document.querySelector('[class*="option"]');
    option?.click();
  }
})

Range slider with React synthetic events:

evaluate_script({
  function: () => {
    const input = document.querySelector('input[type="range"]');
    const setter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set;
    setter.call(input, '75');
    input.dispatchEvent(new Event('input', { bubbles: true }));
  }
})

Read state that isn't in the a11y tree:

evaluate_script({
  function: () => document.querySelector('.status')?.dataset.state
})

Canonical interaction pattern

The sub-100ms loop observed across automated sessions — every state transition confirmed with wait_for before the next action, no arbitrary sleeps:

click({ uid: "..." })                                     // ~105ms
wait_for({ text: ["Enter symbol"], timeout: 3000 })       // ~60ms
fill({ uid: "...", value: "AAPL" })                       // ~105ms
press_key({ key: "Enter" })                               // ~105ms
wait_for({ text: ["Sell All", "Action"], timeout: 3000 }) // ~65ms
fill({ uid: "...", value: "Sell" })                       // ~105ms
click({ uid: "..." })                                     // ~105ms
wait_for({ text: ["Order confirmed"], timeout: 5000 })    // ~55ms

Anti-patterns

Anti-patternInstead
take_screenshot() to check DOM statetake_snapshot()
take_screenshot({fullPage: true})take_screenshot({fullPage: true, format: "jpeg", quality: 75})
navigate_page({url}) with no timeoutAlways include timeout
new_page() when tab is already openlist_pages() then select_page()
Long wait_for for async external eventsevaluate_script polling a JS condition
Clicking into React components via a11yevaluate_script with direct DOM manipulation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

33.94%
按下载量换算22

Codex

32.87%
按下载量换算21

Cursor

19.65%
按下载量换算13

Gemini CLI

8.61%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills