agent-first-screenshots
Qué hace
Esta skill hace que el agente maneje la app real y capture pantallas para boletines, páginas de inicio, publicaciones en redes o presentaciones. Está pensada para quien necesita imágenes de producto que se vean bien sin retoques manuales.
Cuándo usarla
- ✓Cuando quieres capturas de tu app para un boletín, una página de inicio o una publicación.
- ✓Cuando necesitas rehacer una captura antigua porque la app ha cambiado.
- ✓Cuando quieres revisar las capturas en busca de texto solapado o diseños rotos antes de usarlas.
Link de la skill
https://github.com/Devin-AXIS/iPolloWork/blob/main/.opencode/skills/agent-first-screenshots/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Haz capturas nuevas de las pantallas principales del panel para nuestra página de inicio.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente abre la app en funcionamiento, la recorre como lo haría un usuario, espera a que la pantalla se estabilice y captura la imagen. Revisa cada captura en busca de defectos visuales antes de aceptarla.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 "
Preguntas frecuentes
¿Inventa o reconstruye las pantallas de la app?
No. La skill indica capturar la app real y nunca añadir contenido falso ni cambiar la estructura de la página.
¿Son estas capturas una prueba de que una función funciona?
No. La skill indica que no son evidencia de prueba, y que para demostrar que algo pasa o falla hace falta un método aparte.
¿Qué hace que una captura sea aceptable?
No debe tener defectos visuales evidentes, como texto recortado, elementos superpuestos o ventanas emergentes sobrantes.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 7,4 mil
- Posición en el ranking
- #13286
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
image-editing
7,4 milAyuda a tu agente a editar una parte elegida de una imagen existente, dejar el resto sin cambios y guardar el resultado como un archivo nuevo.
image-generation
7,4 milAyuda a tu agente a crear imágenes nuevas mediante el servicio de imágenes de iPolloWork, para una imagen pedida o una imagen de apoyo en un diseño.
ipollowork-design-editorial
7,4 milAyuda a tu agente a crear o editar artículos e informes dentro de tu proyecto de diseño de iPolloWork, manteniendo intactos tus tokens de estilo y tu diseño.
ipollowork-design-graphics
7,4 milAyuda a tu agente a crear o editar carteles y series de tarjetas para redes sociales en tu sesión de diseño de iPolloWork, manteniendo coherente el estilo de las tarjetas.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.