Mengontrol dan memeriksa browser Chrome secara live untuk mengotomatisasi navigasi, melakukan debug JavaScript, menganalisis traffic network, dan melakukan profiling performa web.
- Bintang GitHub
- 41.038
- File
- 1
- Commit terakhir
- 11 Nov 2026
- Lisensi
- MIT
- Tool yang diizinkan
- —
Apa fungsi skill chrome-devtools?
chrome-devtools adalah agent skill. Mengontrol dan memeriksa browser Chrome secara live untuk mengotomatisasi navigasi, melakukan debug JavaScript, menganalisis traffic network, dan melakukan profiling performa web.
Ringkasan dibuat dari SKILL.md skill ini.
Tentang skill chrome-devtools
Skill ini memungkinkan Anda untuk mengotomatisasi navigasi web dan melakukan debug JavaScript di dalam browser Chrome yang sedang berjalan. Developer dan tester dapat menggunakannya untuk berinteraksi dengan halaman web dengan cara mengklik elemen, mengisi form, dan menangani dialog melalui tool spesifik seperti click, fill, dan handle_dialog. Ini sangat berguna ketika sebuah agent perlu melakukan lebih dari sekadar browsing biasa, yaitu melakukan inspeksi mendalam terhadap state internal sebuah situs.
Selain interaksi dasar, skill ini menyediakan kemampuan debugging seperti memeriksa pesan console dan menganalisis network request. Skill ini juga memungkinkan verifikasi visual melalui take_screenshot dan analisis struktural menggunakan take_snapshot untuk mengambil uid elemen. Untuk tugas yang berfokus pada performa, skill ini dapat merekam trace dengan performance_start_trace dan menghasilkan insight melalui performance_analyze_insight untuk mengidentifikasi bottleneck atau masalah Core Web Vital. Skill ini juga mendukung emulasi lingkungan dengan mengubah ukuran viewport atau melakukan throttling pada kondisi CPU dan network.
Apa yang bisa dilakukan agent dengannya
- 1Otomatisasi interaksi web formSeorang agent dapat menavigasi ke sebuah website, menemukan field input, dan memasukkan data untuk menyelesaikan proses registrasi.
- 2Debug JavaScript dan error networkSeorang developer dapat menyelidiki penyebab kegagalan aplikasi web dengan memeriksa log console dan network request yang gagal.
- 3Ekstraksi struktur halaman untuk otomatisasiAI dapat menggunakan text-based accessibility tree untuk menemukan identifier unik yang dibutuhkan untuk mengklik tombol tertentu.
Ditulis dari SKILL.md milik skill tersebut. Setiap use case diverifikasi dengan kutipan darinya.
Cara install skill chrome-devtools
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill chrome-devtools di Claude Code
~/.claude/skills/chrome-devtools/SKILL.md
$ npx degit github/awesome-copilot/skills/chrome-devtools ~/.claude/skills/chrome-devtoolsInstall skill chrome-devtools di Claude Code (project)
.claude/skills/chrome-devtools/SKILL.md
$ npx degit github/awesome-copilot/skills/chrome-devtools .claude/skills/chrome-devtoolsInstall skill chrome-devtools di Codex
~/.agents/skills/chrome-devtools/SKILL.md
$ npx degit github/awesome-copilot/skills/chrome-devtools ~/.agents/skills/chrome-devtoolsInstall skill chrome-devtools di Gemini CLI
~/.gemini/skills/chrome-devtools/SKILL.md
$ npx degit github/awesome-copilot/skills/chrome-devtools ~/.gemini/skills/chrome-devtoolsInstall skill chrome-devtools di Claude.ai
npx degit github/awesome-copilot/skills/chrome-devtools chrome-devtools && zip -r chrome-devtools.zip chrome-devtools # claude.ai → Customize → Skills → + → Create skill → Upload a skill → chrome-devtools.zip
Pengecekan otomatis
Berjalan 15 Nov 2026Laporan lengkap →Lolos cek otomatis kami. Ini bukan audit keamanan: baca skripnya sebelum membiarkan agent menjalankannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkaugithub/awesome-copilot/skills/chrome-devtools is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/chrome-de ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Lolos
- Skrip tanpa unduh-lalu-jalankan atau pencurian kredensialNo scripts in the skill folderLolos
- Tidak ada instruksi tersembunyi di SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/chrome-de ↗Lolos
- Tool yang diizinkan otomatis dibatasiNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/chrome-de ↗Lolos
- SKILL.md mengikuti format Agent SkillsValid name and description; says when to use it; 98 linesgithub.com/github/awesome-copilot/blob/HEAD/skills/chrome-de ↗Lolos
SKILL.md
Lihat di GitHubChrome DevTools Agent
Overview
A specialized skill for controlling and inspecting a live Chrome browser. This skill leverages the chrome-devtools MCP server to perform a wide range of browser-related tasks, from simple navigation to complex performance profiling.
When to Use
Use this skill when:
- Browser Automation: Navigating pages, clicking elements, filling forms, and handling dialogs.
- Visual Inspection: Taking screenshots or text snapshots of web pages.
- Debugging: Inspecting console messages, evaluating JavaScript in the page context, and analyzing network requests.
- Performance Analysis: Recording and analyzing performance traces to identify bottlenecks and Core Web Vital issues.
- Emulation: Resizing the viewport or emulating network/CPU conditions.
Tool Categories
1. Navigation & Page Management
new_page: Open a new tab/page.navigate_page: Go to a specific URL, reload, or navigate history.select_page: Switch context between open pages.list_pages: See all open pages and their IDs.close_page: Close a specific page.wait_for: Wait for specific text to appear on the page.
2. Input & Interaction
click: Click on an element (useuidfrom snapshot).fill/fill_form: Type text into inputs or fill multiple fields at once.hover: Move the mouse over an element.press_key: Send keyboard shortcuts or special keys (e.g., "Enter", "Control+C").drag: Drag and drop elements.handle_dialog: Accept or dismiss browser alerts/prompts.upload_file: Upload a file through a file input.
3. Debugging & Inspection
take_snapshot: Get a text-based accessibility tree (best for identifying elements).take_screenshot: Capture a visual representation of the page or a specific element.list_console_messages/get_console_message: Inspect the page's console output.evaluate_script: Run custom JavaScript in the page context.list_network_requests/get_network_request: Analyze network traffic and request details.
4. Emulation & Performance
resize_page: Change the viewport dimensions.emulate: Throttling CPU/Network or emulating geolocation.performance_start_trace: Start recording a performance profile.performance_stop_trace: Stop recording and save the trace.performance_analyze_insight: Get detailed analysis from recorded performance data.
Workflow Patterns
Pattern A: Identifying Elements (Snapshot-First)
Always prefer take_snapshot over take_screenshot for finding elements. The snapshot provides uid values which are required by interaction tools.
1. `take_snapshot` to get the current page structure.
2. Find the `uid` of the target element.
3. Use `click(uid=...)` or `fill(uid=..., value=...)`.
Pattern B: Troubleshooting Errors
When a page is failing, check both console logs and network requests.
1. `list_console_messages` to check for JavaScript errors.
2. `list_network_requests` to identify failed (4xx/5xx) resources.
3. `evaluate_script` to check the value of specific DOM elements or global variables.
Pattern C: Performance Profiling
Identify why a page is slow.
1. `performance_start_trace(reload=true, autoStop=true)`
2. Wait for the page to load/trace to finish.
3. `performance_analyze_insight` to find LCP issues or layout shifts.
Best Practices
- Context Awareness: Always run
list_pagesandselect_pageif you are unsure which tab is currently active. - Snapshots: Take a new snapshot after any major navigation or DOM change, as
uidvalues may change. - Timeouts: Use reasonable timeouts for
wait_forto avoid hanging on slow-loading elements. - Screenshots: Use
take_screenshotsparingly for visual verification, but rely ontake_snapshotfor logic.
Berkas dalam skill ini
1Pertanyaan seputar skill chrome-devtools
Bagaimana cara install skill chrome-devtools di Claude Code?
Jalankan npx degit github/awesome-copilot/skills/chrome-devtools ~/.claude/skills/chrome-devtools. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill chrome-devtools?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.
Bagaimana cara saya menemukan elemen untuk berinteraksi?
Anda harus menggunakan tool take_snapshot untuk mendapatkan text-based accessibility tree, yang menyediakan nilai uid yang diperlukan untuk tool interaksi seperti klik atau mengisi form.