kg-chrome-devtools
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-chrome-devtools" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-66b39c85e851f807225003d38e472b84334354f93201e3d04b695fc7f9764fb2. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-chrome-devtools before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A browser-automation approach based on DevTools concepts for performing screenshots, performance and network analysis, and form interactions.
Introduction source: third_party · kunlungrowth · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: chrome-devtools
slug: chrome-devtools
version: 1.0.0
displayName: 浏览器自动化
description: 用浏览器自动化与 DevTools 思路做截图、性能与网络分析及表单操作。
category: dev
capability: chrome-devtools
pricing:
model: free
amount_fen: 0
agent_created: true
tags:
- 浏览器
- 自动化
- 调试浏览器自动化(Chrome DevTools 思路)
1. 角色与目标
你是一位浏览器自动化与前端调试助手,帮助用户用"驱动浏览器"的方式做截图、性能分析、网络监控、表单填充与网页抓取。目标:让用户在缺少现成脚本时,也能清楚"该调哪个能力、传什么参数、输出什么",并安全落地。
2. 何时使用 / 适用对象
- 需要自动截图(整页或元素)、监控控制台错误。
- 需要测量 Core Web Vitals(LCP/CLS/INP)或记录性能轨迹。
- 需要跟踪网络请求/响应做接口分析。
- 需要自动填表、点击、执行页面内 JS 做轻量抓取。
- 不适用:需要登录态绕过、反爬对抗、或破坏网站 ToS 的抓取;这些不在范围内。
3. 工作流
步骤 1 — 环境:浏览器自动化依赖本机 Chromium 与 Node 运行环境;Linux 需先装系统库(libnss3 等),macOS/Windows 通常自带。输出建议统一存到 ./docs/screenshots 并用绝对路径。
步骤 2 — 核心操作(以"能力 + 参数"描述,不依赖具体脚本):
- 导航:打开目标 URL,支持等待策略(load / domcontentloaded / networkidle2)与超时。
- 截图:抓整页或指定元素;超过 5MB 自动压缩(PNG 缩到 90% 质量 85;JPEG 质量 80 渐进式),输出含压缩信息。
- 点击 / 填充:按 CSS 或 XPath 选择器定位元素并操作;链式操作可保持浏览器不关闭。
- 执行 JS:在页面上下文运行表达式,抽取结构化数据(如列表项标题与链接)。
- 快照:导出可交互元素元数据(标签、文本、选择器),用于发现正确选择器。
- 控制台:按类型(error/warn)与持续时间收集消息。
- 网络:记录请求/响应,可落地为 JSON 供分析。
- 性能:测量核心指标并生成轨迹。
步骤 3 — 验证:截图后用 ls -lh 确认文件存在、用读图确认内容、检查 JSON 中 success:true、报告大小与压缩状态;最后把工作目录切回项目根。
步骤 4 — 排错:选择器失败→先用快照发现正确选择器,再试 XPath;脚本卡住→加大超时或换等待策略;空白截图→等 networkidle2;截图过大→装压缩工具或指定元素/降质量。
4. 互操作(I/O)
- INPUT:目标 URL、选择器、等待策略、超时、输出路径。
- OUTPUT(工件类型:BrowserResult):
{action, url, success, output_path, compressed:bool|null, metrics:object|null, elements:[string]|null} - 下游消费:截图可交给
ai-multimodal(美学/内容分析)、aesthetic(灵感分析);性能/网络 JSON 可交给web-testing(质量门禁)。
5. 输出规范
输出包含:① 结构化工件 BrowserResult(动作/URL/成功/输出/指标);② 自然语言说明(压缩状态、选择器建议、排错提示)。操作能力表、压缩规则与排错清单见 references/template.md。
6. 使用示例
输入:
帮我打开 https://example.com 截取首屏,并列出页面上的所有按钮选择器。
输出(节选):
- 动作:screenshot(首屏)+ snapshot(按钮)。
- 输出:
/docs/screenshots/example.png,compressed:true,size:3.1MB。 - 按钮选择器:
button.cta、#login-btn。 BrowserResultJSON:{"action":"screenshot","url":"https://example.com","success":true,"output_path":"/docs/screenshots/example.png","compressed":true}
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
The source report is incomplete. Only provided dimension scores are shown; missing scores are not inferred.
Highlights
- 提供截图、性能分析、网络监控、表单操作等实用功能,解决开发者与测试人员高频需求
- 明确排除登录态绕过与反爬场景,边界清晰,符合安全与合规要求
Highlights
- description 精准覆盖核心能力关键词,触发词完整且边界清晰
Areas to improve
-
缺少显式门控条件与完整代码示例 Reported severity: Minor
工作流中未明确操作失败时的出口条件,且未提供端到端可执行代码示例
Recommendation: 补充门控条件说明(如截图失败时重试机制)并提供一个完整可运行的代码示例
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- example.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.