본문으로 건너뛰기
Skillpedia
모션 및 애니메이션40k · #7418

screen-recording

하는 일

이 도구는 프로그램이나 기능 사용법을 보여 주는 짧은 애니메이션 영상(GIF)을 만듭니다. 화살표, 글자, 중요한 부분 강조 표시를 추가해 더 쉽게 설명할 수 있습니다.

사용하는 경우

  • ✓새 웹사이트 기능의 사용법을 보여 주고 싶을 때.
  • ✓프로그램에서 발생한 오류를 설명하고 싶을 때.
  • ✓무언가를 하는 방법에 대한 간단한 안내서를 만들고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/screen-recording/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/screen-recording/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“웹사이트 X에 로그인하는 방법을 보여 주는 애니메이션 GIF를 만들어 주세요. 비밀번호 입력란을 강조해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 일정한 간격으로 '스냅샷'을 찍어 컴퓨터 화면을 녹화합니다. 그다음 이 스냅샷을 짧은 영상(GIF)으로 합치고, 화살표와 글자 같은 주석을 추가해 무슨 일이 일어나는지 설명할 수 있게 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Screen Recording

Create animated GIF demos that show a feature or workflow in action — with annotations, variable timing, and proper pacing. Useful for PR descriptions, documentation, and release notes.

When to Use This Skill

Use this skill when you need to:

  • Record a multi-step UI interaction as an animated GIF
  • Create a demo showing before/after behavior
  • Build annotated walkthroughs for documentation or release notes
  • Show a bug reproduction or fix in action

Prerequisites

pip install playwright Pillow imageio numpy scipy mss -q
playwright install chromium

Core Workflow

1. Capture frames

Use Playwright to step through the interaction and capture each frame:

from playwright.async_api import async_playwright

async def record_frames(url, steps, width=1400, height=900):
    """
    steps: list of dicts with 'action' (async callable taking page)
           and 'name' (frame filename)
    """
    async with async_playwright() as p:
        browser = await p.chromium.launch()
        page = await browser.new_page(viewport={"width": width, "height": height})
        await page.goto(url, wait_until="networkidle")

        for step in steps:
            if step.get("action"):
                await step["action"](page)
                await page.wait_for_timeout(step.get("wait", 500))
            await page.screenshot(path=step["name"])

        await browser.close()

2. Assemble GIF with imageio

Use imageio, not PIL, for GIF writing — PIL's GIF encoder merges visually similar frames, which kills animations.

import imageio.v3 as iio
from PIL import Image
import numpy as np

frames = []
durations = []

for frame_path, duration_ms in frame_list:
    img = Image.open(frame_path)
    frames.append(np.array(img))
    durations.append(duration_ms)

iio.imwrite("demo.gif", frames, duration=durations, loop=0)

3. Variable frame timing

Uniform timing makes everything feel either too fast or too slow. Use variable durations:

Phase Duration Why
Fast action (typing, clicking) 100ms Feels natural, keeps energy
Pause after action 600-800ms Let the viewer process what happened
Hero/final message 500ms+ Main takeaway needs time to land

4. Annotate frames

Apply annotations to specific frames using the image-annotations skill:

from PIL import Image, ImageDraw, ImageFont

def annotate_frame(frame_path, annotations, out_path):
    img = Image.open(frame_path)
    draw = ImageDraw.Draw(img)

    for ann in annotations:
        # Apply annotation (rect, arrow, label, etc.)
        pass

    img.save(out_path)

5. Fade-in annotations

For smooth annotation appearance:

def apply_fade(base_frame, annotation_layer, alpha):
    """Blend annotation onto frame at given alpha (0.0 to 1.0)"""
    blended = Image.blend(
        base_frame.convert("RGBA"),
        annotation_layer.convert("RGBA"),
        alpha
    )
    return blended.convert("RGB")

# 2-frame pop-in at 10fps: 50% then 100%
faded_frames = [
    apply_fade(base, annotations, 0.5),  # frame 1: half opacity
    apply_fade(base, annotations, 1.0),  # frame 2: full opacity
]

At 10fps, use 2 fade frames (0.2s total). At 30fps, use 3-4 frames. Easing curves look bad at low FPS — simple pop-in is snappier and more readable.

Build as a Script

The annotation logic gets complex for anything beyond trivial demos. Write a dedicated script (e.g., annotate_gif.py) with functions instead of inline code. You'll iterate on timing and placement.

Testing Animations

Always test in isolation first — don't rebuild the full demo to test a fade tweak:

# Small test GIF: 10 bare frames → fade frames → 15 hold frames
# Add a frame counter overlay for debugging:
draw.text((10, height - 30), f"F{i}/{total} a={alpha:.0%} FADE",
          fill="white", font=small_font)

Desktop Screen Recording (mss)

For recording desktop apps, terminals, or anything outside a browser. Uses mss for fast screen capture.

import mss
from PIL import Image
import time

def record_gif(output_path, region=None, duration=5, fps=8):
    """Record screen region to GIF. region = {left, top, width, height} or None for full screen."""
    with mss.mss() as sct:
        if region is None:
            region = sct.monitors[1]  # primary monitor

        frames = []
        t_end = time.time() + duration

…
자주 묻는 질문

무엇을 설치해야 하나요?

'playwright', 'Pillow', 'imageio' 같은 프로그래밍 도구를 설치해야 합니다. Playwright는 화면 녹화를 돕고, 나머지는 GIF를 만드는 데 도움을 줍니다.

글자나 화살표를 추가할 수 있나요?

네, 글자, 화살표, 상자 같은 주석을 추가해 GIF에서 중요한 부분을 강조할 수 있습니다.

GIF 파일이 너무 커지지는 않나요?

파일 크기를 적당하게 유지하려면 특히 데스크톱 화면 녹화에서는 초당 프레임(FPS)을 10 이하로 사용하는 것을 권장합니다.

상세 정보

작성자의 원본 설명

Create annotated animated GIF demos and screen recordings for pull requests and documentation. Covers frame capture, timing, imageio-based GIF creation, and per-frame annotation workflows.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7418
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬