← ClaudeAtlas

prtv-agent-ruleslisted

Discipline for an AI browser agent (Claude in Chrome, computer use, Playwright, Codex, Cursor) building menu boards or slideshows in the PRTV (prtv.pro) digital-signage editor — no screenshot loops (the 2000-px image limit), reading the DOM instead, computing click coordinates, what persists (edits only through the interface), verifying by reload and preview, sanitising output with URLs, isolated-world and cross-tab traps of JavaScript tools, hover-only controls, slide activation, element-creation timing, duplicated permanent elements, hand-built widget URLs, pacing a long session. Use at the start of any automated session in prtv.pro, before the first click. Triggers (RU) браузерный агент, автоматизация PRTV, ИИ собирает слайд-шоу.
prtvbiz-design/prtv-skills · ★ 0 · AI & Automation · score 60
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 `