[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AJTKA9S2AQ5VNH25PMTS5A":3,"skill-same:01M7AJTKA9S2AQ5VNH25PMTS5A":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":5,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":27,"install":28,"resources":41},"01M7AJTKA9S2AQ5VNH25PMTS5A","chrome-devtools",null,"Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.","davidanthonyn\u002Fclaude-skills","davidanthonyn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55152980?v=4","01M7AJ4MY8S5C2RJCGX6626J0G","01M7AJ7JE1K98GRPH9Z57Z0R0W",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fchrome-devtools\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: chrome-devtools\ndescription: Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.\nlicense: Apache-2.0\n---\n\n# Chrome DevTools Agent Skill\n\nBrowser automation via executable Puppeteer scripts. All scripts output JSON for easy parsing.\n\n## Quick Start\n\n**CRITICAL**: Always check `pwd` before running scripts.\n\n### Installation\n\n#### Step 1: Install System Dependencies (Linux\u002FWSL only)\n\nOn Linux\u002FWSL, Chrome requires system libraries. Install them first:\n\n```bash\npwd  # Should show current working directory\ncd .claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\n.\u002Finstall-deps.sh  # Auto-detects OS and installs required libs\n```\n\nSupports: Ubuntu, Debian, Fedora, RHEL, CentOS, Arch, Manjaro\n\n**macOS\u002FWindows**: Skip this step (dependencies bundled with Chrome)\n\n#### Step 2: Install Node Dependencies\n\n```bash\nnpm install  # Installs puppeteer, debug, yargs\n```\n\n#### Step 3: Install ImageMagick (Optional, Recommended)\n\nImageMagick enables automatic screenshot compression to keep files under 5MB:\n\n**macOS:**\n```bash\nbrew install imagemagick\n```\n\n**Ubuntu\u002FDebian\u002FWSL:**\n```bash\nsudo apt-get install imagemagick\n```\n\n**Windows:**\n```powershell\n# Option 1: Chocolatey (recommended)\nchoco install imagemagick\n\n# Option 2: Scoop\nscoop install imagemagick\n\n# Option 3: WinGet\nwinget install ImageMagick.ImageMagick\n\n# Option 4: Manual download from https:\u002F\u002Fimagemagick.org\u002Fscript\u002Fdownload.php#windows\n```\n\n**Fedora\u002FRHEL\u002FCentOS:**\n```bash\nsudo dnf install ImageMagick\n# or for older versions:\nsudo yum install ImageMagick\n```\n\n**Arch\u002FManjaro:**\n```bash\nsudo pacman -S imagemagick\n```\n\n**Verify installation:**\n```bash\n# Linux\u002FmacOS:\nmagick -version  # or: convert -version\n\n# Windows:\nmagick -version\n# or: magick.exe -version\n```\n\nWithout ImageMagick, screenshots >5MB will not be compressed (may fail to load in Gemini\u002FClaude).\n\n### Test\n```bash\nnode navigate.js --url https:\u002F\u002Fexample.com\n# Output: {\"success\": true, \"url\": \"https:\u002F\u002Fexample.com\", \"title\": \"Example Domain\"}\n```\n\n## Available Scripts\n\nAll scripts are in `.claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\u002F`\n\n**CRITICAL**: Always check `pwd` before running scripts.\n\n### Script Usage\n- `.\u002Fscripts\u002FREADME.md`\n\n### Core Automation\n- `navigate.js` - Navigate to URLs\n- `screenshot.js` - Capture screenshots (full page or element)\n- `click.js` - Click elements\n- `fill.js` - Fill form fields\n- `evaluate.js` - Execute JavaScript in page context\n\n### Analysis & Monitoring\n- `snapshot.js` - Extract interactive elements with metadata\n- `console.js` - Monitor console messages\u002Ferrors\n- `network.js` - Track HTTP requests\u002Fresponses\n- `performance.js` - Measure Core Web Vitals + record traces\n\n## Usage Patterns\n\n### Single Command\n```bash\npwd  # Should show current working directory\ncd .claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\nnode screenshot.js --url https:\u002F\u002Fexample.com --output .\u002Fdocs\u002Fscreenshots\u002Fpage.png\n```\n**Important**: Always save screenshots to `.\u002Fdocs\u002Fscreenshots` directory.\n\n### Automatic Image Compression\nScreenshots are **automatically compressed** if they exceed 5MB to ensure compatibility with Gemini API and Claude Code (which have 5MB limits). This uses ImageMagick internally:\n\n```bash\n# Default: auto-compress if >5MB\nnode screenshot.js --url https:\u002F\u002Fexample.com --output page.png\n\n# Custom size threshold (e.g., 3MB)\nnode screenshot.js --url https:\u002F\u002Fexample.com --output page.png --max-size 3\n\n# Disable compression\nnode screenshot.js --url https:\u002F\u002Fexample.com --output page.png --no-compress\n```\n\n**Compression behavior:**\n- PNG: Resizes to 90% + quality 85 (or 75% + quality 70 if still too large)\n- JPEG: Quality 80 + progressive encoding (or quality 60 if still too large)\n- Other formats: Converted to JPEG with compression\n- Requires ImageMagick installed (see imagemagick skill)\n\n**Output includes compression info:**\n```json\n{\n  \"success\": true,\n  \"output\": \"\u002Fpath\u002Fto\u002Fpage.png\",\n  \"compressed\": true,\n  \"originalSize\": 8388608,\n  \"size\": 3145728,\n  \"compressionRatio\": \"62.50%\",\n  \"url\": \"https:\u002F\u002Fexample.com\"\n}\n```\n\n### Chain Commands (reuse browser)\n```bash\n# Keep browser open with --close false\nnode navigate.js --url https:\u002F\u002Fexample.com\u002Flogin --close false\nnode fill.js --selector \"#email\" --value \"user@example.com\" --close false\nnode fill.js --selector \"#password\" --value \"secret\" --close false\nnode click.js --selector \"button[type=submit]\"\n```\n\n### Parse JSON Output\n```bash\n# Extract specific fields with jq\nnode performance.js --url https:\u002F\u002Fexample.com | jq '.vitals.LCP'\n\n# Save to file\nnode network.js --url https:\u002F\u002Fexample.com --output \u002Ftmp\u002Frequests.json\n```\n\n## Execution Protocol\n\n### Working Directory Verification\n\nBEFORE executing any script:\n1. Check current working directory with `pwd`\n2. Verify in `.claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\u002F` directory\n3. If wrong directory, `cd` to correct location\n4. Use absolute paths for all output files\n\nExample:\n```bash\npwd  # Should show: ...\u002Fchrome-devtools\u002Fscripts\n# If wrong:\ncd .claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\n```\n\n### Output Validation\n\nAFTER screenshot\u002Fcapture operations:\n1. Verify file created with `ls -lh \u003Coutput-path>`\n2. Read screenshot using Read tool to confirm content\n3. Check JSON output for success:true\n4. Report file size and compression status\n\nExample:\n```bash\nnode screenshot.js --url https:\u002F\u002Fexample.com --output .\u002Fdocs\u002Fscreenshots\u002Fpage.png\nls -lh .\u002Fdocs\u002Fscreenshots\u002Fpage.png  # Verify file exists\n# Then use Read tool to visually inspect\n```\n\n5. Restart working directory to the project root.\n\n### Error Recovery\n\nIf script fails:\n1. Check error message for selector issues\n2. Use snapshot.js to discover correct selectors\n3. Try XPath selector if CSS selector fails\n4. Verify element is visible and interactive\n\nExample:\n```bash\n# CSS selector fails\nnode click.js --url https:\u002F\u002Fexample.com --selector \".btn-submit\"\n# Error: waiting for selector \".btn-submit\" failed\n\n# Discover correct selector\nnode snapshot.js --url https:\u002F\u002Fexample.com | jq '.elements[] | select(.tagName==\"BUTTON\")'\n\n# Try XPath\nnode click.js --url https:\u002F\u002Fexample.com --selector \"\u002F\u002Fbutton[contains(text(),'Submit')]\"\n```\n\n### Common Mistakes\n\n❌ Wrong working directory → output files go to wrong location\n❌ Skipping output validation → silent failures\n❌ Using complex CSS selectors without testing → selector errors\n❌ Not checking element visibility → timeout errors\n\n✅ Always verify `pwd` before running scripts\n✅ Always validate output after screenshots\n✅ Use snapshot.js to discover selectors\n✅ Test selectors with simple commands first\n\n## Common Workflows\n\n### Web Scraping\n```bash\nnode evaluate.js --url https:\u002F\u002Fexample.com --script \"\n  Array.from(document.querySelectorAll('.item')).map(el => ({\n    title: el.querySelector('h2')?.textContent,\n    link: el.querySelector('a')?.href\n  }))\n\" | jq '.result'\n```\n\n### Performance Testing\n```bash\nPERF=$(node performance.js --url https:\u002F\u002Fexample.com)\nLCP=$(echo $PERF | jq '.vitals.LCP')\nif (( $(echo \"$LCP \u003C 2500\" | bc -l) )); then\n  echo \"✓ LCP passed: ${LCP}ms\"\nelse\n  echo \"✗ LCP failed: ${LCP}ms\"\nfi\n```\n\n### Form Automation\n```bash\nnode fill.js --url https:\u002F\u002Fexample.com --selector \"#search\" --value \"query\" --close false\nnode click.js --selector \"button[type=submit]\"\n```\n\n### Error Monitoring\n```bash\nnode console.js --url https:\u002F\u002Fexample.com --types error,warn --duration 5000 | jq '.messageCount'\n```\n\n## Script Options\n\nAll scripts support:\n- `--headless false` - Show browser window\n- `--close false` - Keep browser open for chaining\n- `--timeout 30000` - Set timeout (milliseconds)\n- `--wait-until networkidle2` - Wait strategy\n\nSee `.\u002Fscripts\u002FREADME.md` for complete options.\n\n## Output Format\n\nAll scripts output JSON to stdout:\n```json\n{\n  \"success\": true,\n  \"url\": \"https:\u002F\u002Fexample.com\",\n  ... \u002F\u002F script-specific data\n}\n```\n\nErrors go to stderr:\n```json\n{\n  \"success\": false,\n  \"error\": \"Error message\"\n}\n```\n\n## Finding Elements\n\nUse `snapshot.js` to discover selectors:\n```bash\nnode snapshot.js --url https:\u002F\u002Fexample.com | jq '.elements[] | {tagName, text, selector}'\n```\n\n## Troubleshooting\n\n### Common Errors\n\n**\"Cannot find package 'puppeteer'\"**\n- Run: `npm install` in the scripts directory\n\n**\"error while loading shared libraries: libnss3.so\"** (Linux\u002FWSL)\n- Missing system dependencies\n- Fix: Run `.\u002Finstall-deps.sh` in scripts directory\n- Manual install: `sudo apt-get install -y libnss3 libnspr4 libasound2t64 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1`\n\n**\"Failed to launch the browser process\"**\n- Check system dependencies installed (Linux\u002FWSL)\n- Verify Chrome downloaded: `ls ~\u002F.cache\u002Fpuppeteer`\n- Try: `npm rebuild` then `npm install`\n\n**Chrome not found**\n- Puppeteer auto-downloads Chrome during `npm install`\n- If failed, manually trigger: `npx puppeteer browsers install chrome`\n\n### Script Issues\n\n**Element not found**\n- Get snapshot first to find correct selector: `node snapshot.js --url \u003Curl>`\n\n**Script hangs**\n- Increase timeout: `--timeout 60000`\n- Change wait strategy: `--wait-until load` or `--wait-until domcontentloaded`\n\n**Blank screenshot**\n- Wait for page load: `--wait-until networkidle2`\n- Increase timeout: `--timeout 30000`\n\n**Permission denied on scripts**\n- Make executable: `chmod +x *.sh`\n\n**Screenshot too large (>5MB)**\n- Install ImageMagick for automatic compression\n- Manually set lower threshold: `--max-size 3`\n- Use JPEG format instead of PNG: `--format jpeg --quality 80`\n- Capture specific element instead of full page: `--selector .main-content`\n\n**Compression not working**\n- Verify ImageMagick installed: `magick -version` or `convert -version`\n- Check file was actually compressed in output JSON: `\"compressed\": true`\n- For very large pages, use `--selector` to capture only needed area\n\n## Reference Documentation\n\nDetailed guides available in `.\u002Freferences\u002F`:\n- [CDP Domains Reference](.\u002Freferences\u002Fcdp-domains.md) - 47 Chrome DevTools Protocol domains\n- [Puppeteer Quick Reference](.\u002Freferences\u002Fpuppeteer-reference.md) - Complete Puppeteer API patterns\n- [Performance Analysis Guide](.\u002Freferences\u002Fperformance-guide.md) - Core Web Vitals optimization\n\n## Advanced Usage\n\n### Custom Scripts\nCreate custom scripts using shared library:\n```javascript\nimport { getBrowser, getPage, closeBrowser, outputJSON } from '.\u002Flib\u002Fbrowser.js';\n\u002F\u002F Your automation logic\n```\n\n### Direct CDP Access\n```javascript\nconst client = await page.createCDPSession();\nawait client.send('Emulation.setCPUThrottlingRate', { rate: 4 });\n```\n\nSee reference documentation for advanced patterns and complete API coverage.\n\n## External Resources\n\n- [Puppeteer Documentation](https:\u002F\u002Fpptr.dev\u002F)\n- [Chrome DevTools Protocol](https:\u002F\u002Fchromedevtools.github.io\u002Fdevtools-protocol\u002F)\n- [Scripts README](.\u002Fscripts\u002FREADME.md)\n","# Chrome DevTools Agent Skill\n\nBrowser automation via executable Puppeteer scripts. All scripts output JSON for easy parsing.\n\n## Quick Start\n\n**CRITICAL**: Always check `pwd` before running scripts.\n\n### Installation\n\n#### Step 1: Install System Dependencies (Linux\u002FWSL only)\n\nOn Linux\u002FWSL, Chrome requires system libraries. Install them first:\n\n```bash\npwd  # Should show current working directory\ncd .claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\n.\u002Finstall-deps.sh  # Auto-detects OS and installs required libs\n```\n\nSupports: Ubuntu, Debian, Fedora, RHEL, CentOS, Arch, Manjaro\n\n**macOS\u002FWindows**: Skip this step (dependencies bundled with Chrome)\n\n#### Step 2: Install Node Dependencies\n\n```bash\nnpm install  # Installs puppeteer, debug, yargs\n```\n\n#### Step 3: Install ImageMagick (Optional, Recommended)\n\nImageMagick enables automatic screenshot compression to keep files under 5MB:\n\n**macOS:**\n```bash\nbrew install imagemagick\n```\n\n**Ubuntu\u002FDebian\u002FWSL:**\n```bash\nsudo apt-get install imagemagick\n```\n\n**Windows:**\n```powershell\n# Option 1: Chocolatey (recommended)\nchoco install imagemagick\n\n# Option 2: Scoop\nscoop install imagemagick\n\n# Option 3: WinGet\nwinget install ImageMagick.ImageMagick\n\n# Option 4: Manual download from https:\u002F\u002Fimagemagick.org\u002Fscript\u002Fdownload.php#windows\n```\n\n**Fedora\u002FRHEL\u002FCentOS:**\n```bash\nsudo dnf install ImageMagick\n# or for older versions:\nsudo yum install ImageMagick\n```\n\n**Arch\u002FManjaro:**\n```bash\nsudo pacman -S imagemagick\n```\n\n**Verify installation:**\n```bash\n# Linux\u002FmacOS:\nmagick -version  # or: convert -version\n\n# Windows:\nmagick -version\n# or: magick.exe -version\n```\n\nWithout ImageMagick, screenshots >5MB will not be compressed (may fail to load in Gemini\u002FClaude).\n\n### Test\n```bash\nnode navigate.js --url https:\u002F\u002Fexample.com\n# Output: {\"success\": true, \"url\": \"https:\u002F\u002Fexample.com\", \"title\": \"Example Domain\"}\n```\n\n## Available Scripts\n\nAll scripts are in `.claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\u002F`\n\n**CRITICAL**: Always check `pwd` before running scripts.\n\n### Script Usage\n- `.\u002Fscripts\u002FREADME.md`\n\n### Core Automation\n- `navigate.js` - Navigate to URLs\n- `screenshot.js` - Capture screenshots (full page or element)\n- `click.js` - Click elements\n- `fill.js` - Fill form fields\n- `evaluate.js` - Execute JavaScript in page context\n\n### Analysis & Monitoring\n- `snapshot.js` - Extract interactive elements with metadata\n- `console.js` - Monitor console messages\u002Ferrors\n- `network.js` - Track HTTP requests\u002Fresponses\n- `performance.js` - Measure Core Web Vitals + record traces\n\n## Usage Patterns\n\n### Single Command\n```bash\npwd  # Should show current working directory\ncd .claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\nnode screenshot.js --url https:\u002F\u002Fexample.com --output .\u002Fdocs\u002Fscreenshots\u002Fpage.png\n```\n**Important**: Always save screenshots to `.\u002Fdocs\u002Fscreenshots` directory.\n\n### Automatic Image Compression\nScreenshots are **automatically compressed** if they exceed 5MB to ensure compatibility with Gemini API and Claude Code (which have 5MB limits). This uses ImageMagick internally:\n\n```bash\n# Default: auto-compress if >5MB\nnode screenshot.js --url https:\u002F\u002Fexample.com --output page.png\n\n# Custom size threshold (e.g., 3MB)\nnode screenshot.js --url https:\u002F\u002Fexample.com --output page.png --max-size 3\n\n# Disable compression\nnode screenshot.js --url https:\u002F\u002Fexample.com --output page.png --no-compress\n```\n\n**Compression behavior:**\n- PNG: Resizes to 90% + quality 85 (or 75% + quality 70 if still too large)\n- JPEG: Quality 80 + progressive encoding (or quality 60 if still too large)\n- Other formats: Converted to JPEG with compression\n- Requires ImageMagick installed (see imagemagick skill)\n\n**Output includes compression info:**\n```json\n{\n  \"success\": true,\n  \"output\": \"\u002Fpath\u002Fto\u002Fpage.png\",\n  \"compressed\": true,\n  \"originalSize\": 8388608,\n  \"size\": 3145728,\n  \"compressionRatio\": \"62.50%\",\n  \"url\": \"https:\u002F\u002Fexample.com\"\n}\n```\n\n### Chain Commands (reuse browser)\n```bash\n# Keep browser open with --close false\nnode navigate.js --url https:\u002F\u002Fexample.com\u002Flogin --close false\nnode fill.js --selector \"#email\" --value \"user@example.com\" --close false\nnode fill.js --selector \"#password\" --value \"secret\" --close false\nnode click.js --selector \"button[type=submit]\"\n```\n\n### Parse JSON Output\n```bash\n# Extract specific fields with jq\nnode performance.js --url https:\u002F\u002Fexample.com | jq '.vitals.LCP'\n\n# Save to file\nnode network.js --url https:\u002F\u002Fexample.com --output \u002Ftmp\u002Frequests.json\n```\n\n## Execution Protocol\n\n### Working Directory Verification\n\nBEFORE executing any script:\n1. Check current working directory with `pwd`\n2. Verify in `.claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\u002F` directory\n3. If wrong directory, `cd` to correct location\n4. Use absolute paths for all output files\n\nExample:\n```bash\npwd  # Should show: ...\u002Fchrome-devtools\u002Fscripts\n# If wrong:\ncd .claude\u002Fskills\u002Fchrome-devtools\u002Fscripts\n```\n\n### Output Validation\n\nAFTER screenshot\u002Fcapture operations:\n1. Verify file created with `ls -lh \u003Coutput-path>`\n2. Read screenshot using Read tool to confirm content\n3. Check JSON output for success:true\n4. Report file size and compression status\n\nExample:\n```bash\nnode screenshot.js --url https:\u002F\u002Fexample.com --output .\u002Fdocs\u002Fscreenshots\u002Fpage.png\nls -lh .\u002Fdocs\u002Fscreenshots\u002Fpage.png  # Verify file exists\n# Then use Read tool to visually inspect\n```\n\n5. Restart working directory to the project root.\n\n### Error Recovery\n\nIf script fails:\n1. Check error message for selector issues\n2. Use snapshot.js to discover correct selectors\n3. Try XPath selector if CSS selector fails\n4. Verify element is visible and interactive\n\nExample:\n```bash\n# CSS selector fails\nnode click.js --url https:\u002F\u002Fexample.com --selector \".btn-submit\"\n# Error: waiting for selector \".btn-submit\" failed\n\n# Discover correct selector\nnode snapshot.js --url https:\u002F\u002Fexample.com | jq '.elements[] | select(.tagName==\"BUTTON\")'\n\n# Try XPath\nnode click.js --url https:\u002F\u002Fexample.com --selector \"\u002F\u002Fbutton[contains(text(),'Submit')]\"\n```\n\n### Common Mistakes\n\n❌ Wrong working directory → output files go to wrong location\n❌ Skipping output validation → silent failures\n❌ Using complex CSS selectors without testing → selector errors\n❌ Not checking element visibility → timeout errors\n\n✅ Always verify `pwd` before running scripts\n✅ Always validate output after screenshots\n✅ Use snapshot.js to discover selectors\n✅ Test selectors with simple commands first\n\n## Common Workflows\n\n### Web Scraping\n```bash\nnode evaluate.js --url https:\u002F\u002Fexample.com --script \"\n  Array.from(document.querySelectorAll('.item')).map(el => ({\n    title: el.querySelector('h2')?.textContent,\n    link: el.querySelector('a')?.href\n  }))\n\" | jq '.result'\n```\n\n### Performance Testing\n```bash\nPERF=$(node performance.js --url https:\u002F\u002Fexample.com)\nLCP=$(echo $PERF | jq '.vitals.LCP')\nif (( $(echo \"$LCP \u003C 2500\" | bc -l) )); then\n  echo \"✓ LCP passed: ${LCP}ms\"\nelse\n  echo \"✗ LCP failed: ${LCP}ms\"\nfi\n```\n\n### Form Automation\n```bash\nnode fill.js --url https:\u002F\u002Fexample.com --selector \"#search\" --value \"query\" --close false\nnode click.js --selector \"button[type=submit]\"\n```\n\n### Error Monitoring\n```bash\nnode console.js --url https:\u002F\u002Fexample.com --types error,warn --duration 5000 | jq '.messageCount'\n```\n\n## Script Options\n\nAll scripts support:\n- `--headless false` - Show browser window\n- `--close false` - Keep browser open for chaining\n- `--timeout 30000` - Set timeout (milliseconds)\n- `--wait-until networkidle2` - Wait strategy\n\nSee `.\u002Fscripts\u002FREADME.md` for complete options.\n\n## Output Format\n\nAll scripts output JSON to stdout:\n```json\n{\n  \"success\": true,\n  \"url\": \"https:\u002F\u002Fexample.com\",\n  ... \u002F\u002F script-specific data\n}\n```\n\nErrors go to stderr:\n```json\n{\n  \"success\": false,\n  \"error\": \"Error message\"\n}\n```\n\n## Finding Elements\n\nUse `snapshot.js` to discover selectors:\n```bash\nnode snapshot.js --url https:\u002F\u002Fexample.com | jq '.elements[] | {tagName, text, selector}'\n```\n\n## Troubleshooting\n\n### Common Errors\n\n**\"Cannot find package 'puppeteer'\"**\n- Run: `npm install` in the scripts directory\n\n**\"error while loading shared libraries: libnss3.so\"** (Linux\u002FWSL)\n- Missing system dependencies\n- Fix: Run `.\u002Finstall-deps.sh` in scripts directory\n- Manual install: `sudo apt-get install -y libnss3 libnspr4 libasound2t64 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1`\n\n**\"Failed to launch the browser process\"**\n- Check system dependencies installed (Linux\u002FWSL)\n- Verify Chrome downloaded: `ls ~\u002F.cache\u002Fpuppeteer`\n- Try: `npm rebuild` then `npm install`\n\n**Chrome not found**\n- Puppeteer auto-downloads Chrome during `npm install`\n- If failed, manually trigger: `npx puppeteer browsers install chrome`\n\n### Script Issues\n\n**Element not found**\n- Get snapshot first to find correct selector: `node snapshot.js --url \u003Curl>`\n\n**Script hangs**\n- Increase timeout: `--timeout 60000`\n- Change wait strategy: `--wait-until load` or `--wait-until domcontentloaded`\n\n**Blank screenshot**\n- Wait for page load: `--wait-until networkidle2`\n- Increase timeout: `--timeout 30000`\n\n**Permission denied on scripts**\n- Make executable: `chmod +x *.sh`\n\n**Screenshot too large (>5MB)**\n- Install ImageMagick for automatic compression\n- Manually set lower threshold: `--max-size 3`\n- Use JPEG format instead of PNG: `--format jpeg --quality 80`\n- Capture specific element instead of full page: `--selector .main-content`\n\n**Compression not working**\n- Verify ImageMagick installed: `magick -version` or `convert -version`\n- Check file was actually compressed in output JSON: `\"compressed\": true`\n- For very large pages, use `--selector` to capture only needed area\n\n## Reference Documentation\n\nDetailed guides available in `.\u002Freferences\u002F`:\n- [CDP Domains Reference](.\u002Freferences\u002Fcdp-domains.md) - 47 Chrome DevTools Protocol domains\n- [Puppeteer Quick Reference](.\u002Freferences\u002Fpuppeteer-reference.md) - Complete Puppeteer API patterns\n- [Performance Analysis Guide](.\u002Freferences\u002Fperformance-guide.md) - Core Web Vitals optimization\n\n## Advanced Usage\n\n### Custom Scripts\nCreate custom scripts using shared library:\n```javascript\nimport { getBrowser, getPage, closeBrowser, outputJSON } from '.\u002Flib\u002Fbrowser.js';\n\u002F\u002F Your automation logic\n```\n\n### Direct CDP Access\n```javascript\nconst client = await page.createCDPSession();\nawait client.send('Emulation.setCPUThrottlingRate', { rate: 4 });\n```\n\nSee reference documentation for advanced patterns and complete API coverage.\n\n## External Resources\n\n- [Puppeteer Documentation](https:\u002F\u002Fpptr.dev\u002F)\n- [Chrome DevTools Protocol](https:\u002F\u002Fchromedevtools.github.io\u002Fdevtools-protocol\u002F)\n- [Scripts README](.\u002Fscripts\u002FREADME.md)\n",{"name":5,"license":14,"description":7},"main","45d5ac830c3e238eeba6d0b4e6fd7cf6b56bf380","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn","2026-09-09 16:05:56",{"source":8,"skillName":5,"commands":29,"prompt":39,"zipAvailable":40},[30,33,36],{"tool":31,"command":32},"npx","npx skills add davidanthonyn\u002Fclaude-skills --skill chrome-devtools",{"tool":34,"command":35},"bunx","bunx skills add davidanthonyn\u002Fclaude-skills --skill chrome-devtools",{"tool":37,"command":38},"pnpm","pnpm dlx skills add davidanthonyn\u002Fclaude-skills --skill chrome-devtools","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fchrome-devtools\u002FSKILL.md",true,[42,48],{"path":43,"resourceType":44,"resourceTypeDesc":45,"sizeBytes":46,"sourceHtmlUrl":47},"SKILL.json","REFERENCE","参考文档",11604,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fchrome-devtools\u002FSKILL.json",{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"SKILL.md.backup","OTHER","其他",10949,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fchrome-devtools\u002FSKILL.md.backup",[55,63,71,78,85,93],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M7AQPHJF528A4MD52YZEZV3R","zustand-state-management","Production-tested setup for Zustand state management in React applications with TypeScript.\nThis skill provides comprehensive patterns for building scalable, type-safe global state.\n\nUse when: setting up global state in React, migrating from Redux or Context API, implementing\nstate persistence with localStorage, configuring TypeScript with Zustand, using slices pattern\nfor modular stores, adding devtools middleware for debugging, handling Next.js SSR hydration,\nor encountering hydration errors, TypeScript inference issues, or persist middleware problems.\n\nPrevents 5 documented issues: Next.js hydration mismatches, TypeScript double parentheses\nsyntax errors, persist middleware export errors, infinite render loops, and slices pattern\ntype inference failures.\n\nKeywords: zustand, state management, React state, TypeScript state, persist middleware,\ndevtools, slices pattern, global state, React hooks, create store, useBoundStore,\nStateCreator, hydration error, text content mismatch, infinite render, localStorage,\nsessionStorage, immer middleware, shallow equality, selector pattern, zustand v5","MIT","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7AQP2XJRPNYEH323GJ81NN5","zetic-mlange","Help users integrate the ZETIC Melange (MLange) on-device AI SDK into Android (Kotlin\u002FJava) and iOS (Swift) mobile apps. Use this skill whenever the user mentions Zetic, MLange, Melange, ZeticMLangeModel, ZeticMLangeLLMModel, ZeticMLangeHFModel, on-device NPU inference for mobile, or deploying ML models to Android\u002FiOS with NPU acceleration. Also trigger when users ask about running LLMs on-device with GGUF quantization, mobile NPU model deployment, or converting PyTorch\u002FONNX models for mobile inference. Covers general model inference, LLM inference (streaming token generation), and HuggingFace model loading.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7AQNEJHD27NNF5PYQDSW8B9","youtube-downloader","Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3\u002FM4A\u002FFLAC, downloading entire playlists\u002Fchannels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7AQJQSD2H04EE2EPNAQ8A3M","wordpress-plugin-core","This skill provides comprehensive knowledge for WordPress plugin development, covering core patterns, security best practices, database interactions, hooks\u002Ffilters, Settings API, custom post types, REST API, and AJAX. This skill should be used when creating WordPress plugins, troubleshooting security issues, implementing custom post types\u002Ftaxonomies, building admin interfaces, or working with the WordPress database.\n\nUse when: Creating new WordPress plugins, implementing nonces\u002Fsanitization\u002Fescaping, working with $wpdb and prepared statements, building Settings API pages, registering custom post types or taxonomies, implementing REST API endpoints, handling AJAX requests, debugging plugin activation\u002Fdeactivation issues, preventing SQL injection\u002FXSS\u002FCSRF vulnerabilities.\n\nKeywords: wordpress plugin development, wordpress security, wordpress hooks, wordpress filters, wordpress database, wpdb prepare, sanitize_text_field, esc_html, wp_nonce, custom post type, register_post_type, settings api, rest api, admin-ajax, wordpress sql injection, wordpress xss, wordpress csrf, plugin header, activation hook, deactivation hook, wordpress coding standards, wordpress plugin architecture","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7AQJ91T970QCFMN9R1EHZXV","webapp-testing","Test local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser logs.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7AQJ5E89MS8C5K3GZTY4B48","web-performance-audit","Audit web performance using Chrome DevTools MCP. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fweb-performance-audit\u002FSKILL.md",[],[]]