screen-recording
Ce qu’il fait
Cet outil crée de courtes vidéos animées (GIF) montrant comment utiliser un programme ou une fonctionnalité. Vous pouvez ajouter des flèches et du texte, et mettre en évidence les parties importantes pour mieux expliquer.
Quand l’utiliser
- ✓Pour montrer comment utiliser une nouvelle fonctionnalité de site web.
- ✓Pour expliquer une erreur survenue dans un programme.
- ✓Pour créer un guide rapide expliquant comment faire quelque chose.
Lien du skill
https://github.com/github/awesome-copilot/blob/main/skills/screen-recording/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Crée un GIF animé montrant comment se connecter au site X, en mettant en évidence le champ du mot de passe.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'outil enregistre l'écran de votre ordinateur en prenant des « instantanés » à intervalles réguliers. Il assemble ensuite ces instantanés en une courte vidéo (GIF) et vous permet d'ajouter des annotations, comme des flèches et du texte, pour expliquer ce qui se passe.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
…
Questions fréquentes
Dois-je installer quelque chose ?
Oui, vous devez installer des outils de programmation comme « playwright », « Pillow » et « imageio ». Playwright permet d'enregistrer l'écran, et les deux autres servent à créer le GIF.
Puis-je ajouter du texte et des flèches ?
Oui, vous pouvez ajouter des annotations comme du texte, des flèches et des cadres pour mettre en évidence les parties importantes de votre GIF.
Le GIF sera-t-il trop volumineux ?
Pour garder une taille de fichier raisonnable, il est recommandé d'utiliser une fréquence d'images (FPS) de 10 ou moins, surtout pour les enregistrements de bureau.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 40k
- Position au classement
- #7418
- Licence
- MIT
- Mis à jour
- 15/10/2026
Commentaires
- …
Autres skills de ce dépôt
acquire-codebase-knowledge
40kAide votre agent à comprendre et documenter un projet de code existant. Utile pour accueillir de nouveaux membres ou obtenir une vue d'ensemble de l'architecture.
acreadiness-assess
40kPermet à votre agent d'évaluer la préparation d'un projet à l'IA et de générer un rapport. Utile pour savoir dans quelle mesure un projet est prêt à utiliser des outils d'IA.
acreadiness-generate-instructions
40kAide votre agent à rédiger des instructions pour les outils d'IA à partir d'une évaluation, afin d'améliorer leur travail sur le code et combler les lacunes.
acreadiness-policy
40kPermet à votre agent d'aider à définir ou appliquer des politiques d'évaluation des projets d'IA. Utile pour standardiser les évaluations et garantir la conformité.
Skills similaires
blender-motion-state-inspection
280kPermet d'inspecter les détails des animations 3D. Utile pour vérifier les poses, les mouvements et l'alignement des personnages dans les animations.
manim-video
280kPermet à votre agent de créer des vidéos explicatives animées. Il utilise Manim pour générer des graphiques et schémas clairs pour les concepts techniques.
remotion-video-creation
280kGuide votre agent pour créer des vidéos avec React et Remotion. Couvre les bonnes pratiques pour les animations, l'audio, les sous-titres et les éléments visuels.