Dev Screenshot
Use the dev screenshot script to iterate on UI changes. This builds the Go server with dev tags, starts it on an isolated port, o…
Claude CodeGeneric
# Dev Screenshot: Build, Reload, and Capture UI
Use the dev screenshot script to iterate on UI changes. This builds the Go server with dev tags, starts it on an isolated port, opens the browser, and captures a screenshot for visual verification.
## Steps
1. Run the dev screenshot script:
```bash
PATH="/usr/local/go/bin:$PATH" ./scripts/dev-screenshot.sh
Wait for the script to complete (builds, starts server on port 8450, opens browser, takes screenshot)
Read the screenshot to verify visual changes:
Read /tmp/coral-screenshot.png
Compare against the reference design or previous screenshot. Note any issues.
When done iterating, stop the dev server:
kill $(lsof -ti :8450) 2>/dev/null
Details
- Port: 8450 (avoids conflicts with main app on 8420)
- Data dir: /tmp/.coral-dev/ (fully isolated, won't touch ~/.coral/)
- Build tags:
-tags dev(skips EULA and license) - Screenshot: Saved to /tmp/coral-screenshot.png
- Browser: Auto-opens and navigates to first available session
Usage Pattern for UI Iteration
- Make CSS/HTML changes
- Run
/dev-screenshotto rebuild and capture - Read the screenshot to verify
- Repeat until the UI matches the design
Maintain Dev Screenshot?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Dev Screenshot on getagentictools](https://getagentictools.com/loops/cdknorow-dev-screenshot-build-reload-and-capture-ui?ref=badge)