agent-first-screenshots
What it does
This skill has the agent drive the real app and capture screenshots for newsletters, landing pages, social posts or decks. It is for people who need product images that look right without manual fixing.
When to use it
- βWhen you want screenshots of your app for a newsletter, landing page or social post.
- βWhen you need an old screenshot redone because the app has changed.
- βWhen you want screenshots checked for overlapping text or broken layout before you use them.
Skill link
https://github.com/Devin-AXIS/iPolloWork/blob/main/.opencode/skills/agent-first-screenshots/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βTake fresh screenshots of the main dashboard screens for our landing page.β
5 new skills a week. 1 minute to read.
How it works
The agent opens the running app, moves through it like a user, waits until the screen settles, and captures the image. It checks each capture for visual defects before accepting it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Agent-First Screenshots
An agent-first screenshot is produced by an agent driving the real app via CDP, gated by structural + pixel + vision verification before it ships. It turns screenshots from hand-crafted artifacts into a regenerable pipeline.
Use this for "take/redo screenshots / make marketing images" tasks. It is NOT
e2e evidence β for pass/fail proof use the fraimz skill.
The Zero-Defect Bar
A shippable screenshot has ZERO obvious visual defects β the bar is not "the content is present", it is: would a human glancing at it immediately spot something broken? Overlapping or clipped text, misaligned/collapsed layout, garbled or mid-transition content, blank regions, stray modals/tooltips β any of these disqualifies the frame. Full stop.
The One Method
Operate the app like a power user preparing a demo, not like a developer hacking the DOM. The app already looks great: get it into a real, settled state through the UI and capture it cleanly. Never rebuild or fake it.
Golden Rules
- Only remove, never add. Hiding a leaf distraction (notification badge,
"Sign in" footer link, status text) via
display:noneis safe. Never inject fake HTML, override flex/height/width on structural containers, add fixed-position overlays, or mutate the DOM tree β the layout engine will collapse (scroll areas shrink to 0, content disappears). - If a feature isn't available, don't fake it. Enable it through the settings UI like a real user, or skip the shot and say so.
- Each shot starts from a clean reload.
location.reload(), wait for full render, navigate through the UI, minimal leaf cleanup, verify, capture. Never carry CSS hacks across shots. - Get state naturally. Click the real tabs/buttons/pickers; close panels via their close buttons (not CSS); run real multi-turn tasks so content is impressive β no toy data, no mid-stream captures.
- Match the target aspect ratio via CDP metrics override (e.g. 1440x900
at
deviceScaleFactor: 2), then wait ~1s and re-verify β the override can trigger re-layout.
Verify with three channels, in a loop
innerText existing does not mean visible; a healthy DOM rect does not mean it
rendered. Every frame must pass all three before it ships:
DOM pre-check (cheap, before capture): scroll area height > 100px (not collapsed), hero text inside the viewport rect, no unexpected modal/overlay. If it fails: reload and redo β never fix with more CSS.
Pixel post-check (truth, after capture): decode the PNG and sample the DOM-derived hero rects. Calibration: for text-on-white UI, background ratio is a bad signal (85β92% background is normal). Variance is the reliable signal: content-filled region variance > ~200 (often 1000+); blank/flat region < 50. Whole-image
bgRatio > 0.97β blank frame.Vision check (mandatory gate): deterministic stats CANNOT catch the defects that matter most β overlap, clipping, misalignment, double-rendering. Hand the PNG to a vision-capable model with a zero-defect rubric returning JSON:
{ any_obvious_defect: bool, // the gate β if true, REJECT overlapping_text_or_elements: bool, clipped_or_cutoff: bool, misaligned_or_broken_layout: bool, blank_or_empty_regions: bool, stray_modal_tooltip_or_panel: bool, legible: bool, polish_score: 1-5, defects: ["..."] }If
any_obvious_defectis true the frame is rejected regardless of layers 1β2. Diagnose, fix the root cause (settle the state, close the picker, reload), recapture.
Reusable scripts in this skill's directory: screenshot-verify.mjs (verify an
existing PNG) and capture-verify.mjs (capture at 2x + verify regions + save
only on pass); both use sharp.
Common failure modes
| Symptom | Fix |
|---|---|
| Overlapping/clipped text (layers 1β2 pass) | Unsettled/edit-mode/wrong-width state β settle, use preview mode, gate on vision |
| Blank screenshot / 32px scroll area | Structural element was CSS-hidden β reload, close panels via UI |
| Overlay (picker/modal) on every shot | It was opened and never closed β Escape before capturing |
| In DOM but not in pixels | Clipped/blank render β trust variance + vision, not innerText |
Anti-patterns
Injecting fake components; overriding flex properties; fixed-position
overlays; carrying state across shots; verifying via innerText only;
proof-frame mindset (the goal is "
FAQ
Does it fake or rebuild the app's screens?
No. The skill says to capture the real app and never add fake content or change the page structure.
Are these screenshots proof that a feature works?
No. The skill says they are not test evidence, and pass or fail proof needs a separate method.
What makes a screenshot acceptable?
It must have no obvious visual defects, such as clipped text, overlapping items or stray pop-ups.
Details
Original description by the author
Agent-first screenshots β an agent drives the real app via CDP and produces clean, defect-free product screenshots (newsletters, landing pages, social, decks, PR). Dual-channel verification (DOM + pixels + vision) in a capture loop. Use for any "take/redo screenshots of the app" task.
repo: Devin-AXIS/iPolloWork
Popularity
- GitHub stars
- 7.4k
- Ranking position
- #13286
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
image-editing
7.4kHelps your agent edit a chosen part of an existing image, keep the rest of the picture unchanged and save the result as a new file.
image-generation
7.4kHelps your agent create new images through the iPolloWork image service, for a requested picture or a supporting visual in a design.
ipollowork-design-editorial
7.4kHelps your agent create or edit articles and reports inside your iPolloWork design project, keeping your style tokens and layout intact.
ipollowork-design-graphics
7.4kHelps your agent create or edit posters and social card series in your iPolloWork design session, keeping the card style consistent.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.