prtv-agent-ruleslisted
Install: claude install-skill prtvbiz-design/prtv-skills
# Rules for a browser agent in the PRTV editor
These rules were paid for with broken sessions. They apply to any agent that drives the editor through a browser — Claude in Chrome, Playwright-based agents, similar tools. The editor's map is in prtv-editor-overview; the other prtv-* skills cover the objects. This one covers how to behave.
## 1. Zero screenshots
**Rule zero: no screenshots during a run.** Agent image APIs reject requests when the context holds many images and any of them exceeds **2000 px on a side**; a full-page screenshot of the tall editor is always larger. Runs with more than about five screenshots stall or die.
Replace screenshots with:
- **Read page** (interactive elements, or the whole DOM as text).
- **JavaScript inspection** — `document.querySelectorAll`, `getBoundingClientRect`, `getComputedStyle`, the element and slide ids, the read-only local store (prtv-editor-overview §4).
- **Console messages** — to read the result of a script.
If a picture is unavoidable: viewport only, never full-page; at most about ten per session, one at the end of a logical block (slide done, edit accepted), never after every click; a tall page as two or three viewport frames; keep the browser window at 1920×1080 or smaller so frames stay under the limit. Report in text — tables of edits, statuses, measurements — and keep any pictures for the final result.
A screenshot cannot show motion anyway. Animation and rotation are checked in the preview player or by scrubbing `