This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-9p/skills/web-dev-browser-screencapture/SKILL.md

38 lines
975 B
Markdown

---
name: web-dev-browser-screencapture
intent: web, debugging
description: Capture screenshots of browser windows for visual feedback during web development. Use when verifying UI changes, checking dev server output, or documenting web application state.
---
# Web Dev Browser Screencapture
Capture browser window showing a specific URL.
## Commands
- Capture localhost: `capture_browser.sh /tmp/capture.png localhost:<port>`
- Capture custom URL: `capture_browser.sh /tmp/app.png <url_pattern>`
- Capture default (localhost): `capture_browser.sh /tmp/capture.png`
## Reading Captured Image
```json
{"operations": [{"mode": "Image", "image_paths": ["<path_from_output>"]}]}
```
## Platform Support
- **macOS**: Chrome + `osascript` + `screencapture`
- **Linux**: `brotab` + `wmctrl` + `import` (ImageMagick)
## When to Use
- Verify UI changes
- Check dev server output
- Document application state
## When NOT to Use
- Browser not running
- Target page not open