agent-first-screenshots
하는 일
이 스킬은 에이전트가 실제 앱을 조작해 뉴스레터, 랜딩 페이지, 소셜 게시물, 슬라이드용 스크린샷을 찍도록 합니다. 수작업으로 고치지 않아도 제대로 보이는 제품 이미지를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓뉴스레터, 랜딩 페이지, 소셜 게시물에 쓸 앱 스크린샷이 필요할 때.
- ✓앱이 바뀌어서 예전 스크린샷을 다시 찍어야 할 때.
- ✓사용하기 전에 텍스트 겹침이나 레이아웃 깨짐이 있는지 스크린샷을 확인하고 싶을 때.
스킬 링크
https://github.com/Devin-AXIS/iPolloWork/blob/main/.opencode/skills/agent-first-screenshots/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“랜딩 페이지에 쓸 수 있도록 주요 대시보드 화면의 최신 스크린샷을 찍어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 실행 중인 앱을 열고, 사용자처럼 화면을 이동하며, 화면이 안정될 때까지 기다린 뒤 이미지를 캡처합니다. 각 캡처를 받아들이기 전에 시각적 결함이 있는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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 "
자주 묻는 질문
앱의 화면을 꾸며 내거나 다시 만드나요?
아닙니다. 스킬은 실제 앱을 캡처하며, 가짜 콘텐츠를 추가하거나 페이지 구조를 바꾸지 않는다고 설명합니다.
이 스크린샷이 기능이 작동한다는 증거인가요?
아닙니다. 스킬은 이것이 테스트 증거가 아니며, 통과나 실패 증명에는 별도의 방법이 필요하다고 설명합니다.
어떤 스크린샷이 사용 가능한가요?
잘린 텍스트, 겹친 항목, 불필요한 팝업 같은 눈에 띄는 시각적 결함이 없어야 합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 7.4k
- 순위
- #13286
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
image-editing
7.4k에이전트가 기존 이미지의 선택한 부분만 편집하고 나머지는 그대로 두며, 결과를 새 파일로 저장하도록 돕습니다.
image-generation
7.4k에이전트가 iPolloWork 이미지 서비스로 새 이미지를 만들고, 요청한 그림이나 디자인의 보조 시각 자료를 제공하도록 돕습니다.
ipollowork-design-editorial
7.4k에이전트가 iPolloWork 디자인 프로젝트 안에서 기사와 보고서를 만들거나 편집하고, 스타일 토큰과 레이아웃을 그대로 유지하도록 돕습니다.
ipollowork-design-graphics
7.4k에이전트가 iPolloWork 디자인 세션에서 포스터와 소셜 카드 시리즈를 만들거나 편집하며, 카드 스타일의 일관성을 유지하도록 돕습니다.