video-thumbnail
O que ela faz
Esta skill adiciona imagens de miniatura de pôster aos players de vídeo de uma página. Ela é para donos de sites e desenvolvedores que querem vídeos com aparência cuidada e sem deslocar o layout durante o carregamento.
Quando usar
- ✓Quando um vídeo aparece como um retângulo preto vazio antes de tocar.
- ✓Quando um elemento de vídeo não tem o atributo poster.
- ✓Quando o layout de uma página se desloca enquanto um vídeo carrega.
Link da skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-thumbnail/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Meus vídeos aparecem como caixas pretas até alguém apertar play. Você pode adicionar miniaturas que mostrem do que cada vídeo trata?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente adiciona um atributo poster com uma imagem de miniatura que corresponde às proporções do vídeo. Também define o tamanho do vídeo para que o layout não pule enquanto a imagem carrega.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Add thumbnail images to videos
Without a poster image, a <video> element displays as a blank black rectangle until the first frame is loaded. This is visually jarring, provides no context about the video content, and can cause layout shift (CLS) if the video dimensions are not specified separately. A good thumbnail image communicates the video topic at a glance, allows users to decide whether to play, and improves the page's visual quality — especially on slow connections where video preloading is delayed.
Quick Reference
- Add a
posterattribute to<video>elements with a URL to a representative thumbnail image - The poster image displays before the video loads and while the user decides whether to play
- Poster images improve perceived performance by showing meaningful content before video data arrives
- The poster should accurately represent the video content — deceptive thumbnails violate user trust
- Use an image ratio matching the video's aspect ratio (typically 16:9) and a resolution of at least 1280×720
Check
Find all <video> elements. For each, check that: (1) a poster attribute is present with a non-empty URL; (2) the URL resolves to a valid image (no 404s); (3) the width and height attributes or CSS dimensions are set to prevent layout shift while the poster loads; (4) the poster image accurately represents the video content (not a clickbait or unrelated image).
Fix
(1) Add a poster attribute to each <video> element: <video poster='thumbnail.jpg' controls>. (2) Use an image that represents the video content — typically a frame from the video, a title card, or a branded thumbnail. (3) Ensure the poster image has the same aspect ratio as the video (usually 16:9). (4) Recommended poster dimensions: 1280×720px minimum for HD video; 640×360px is acceptable for smaller embeds. (5) Host the poster image at a CDN-cached URL to ensure fast loading. (6) Also set width and height on the <video> element to prevent CLS.
Explain
The HTML poster attribute on <video> specifies a URL for an image to display before video playback begins. When preload='none' or preload='metadata' is set (recommended for performance — avoids downloading video data on page load), no video frame is available for display, making the poster image the only visual content visible to the user before play. Without a poster, users see either a black rectangle or a browser-rendered blank video frame, which provides no context. The poster also plays a role in perceived performance — users on slow connections see meaningful content immediately rather than waiting for even the first video frame to load.
Code Review
Review templates, server-rendered HTML, and shared components that output markup related to Add thumbnail images to videos. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/html/video-thumbnail
Perguntas frequentes
Qual deve ser o tamanho de uma miniatura?
A skill sugere uma imagem 16:9 com pelo menos 1280 por 720 pixels, para combinar com o formato do vídeo.
Uma miniatura pode enganar?
A skill diz que o pôster deve mostrar com precisão o conteúdo do vídeo, já que miniaturas enganosas prejudicam a confiança.
Um pôster substitui as legendas?
Não. A skill diz que pôsteres são uma ajuda de design e de desempenho, separada das legendas ou da descrição de áudio.
Detalhes
Descrição original do autor
Use when applies to all `<video>` elements in HTML. The `poster` attribute specifies the URL of an image to show as a placeholder before the video is loaded or played. This is distinct from captions or audio descriptions, which are accessibility requirements. The poster is primarily a UX and performance enhancement, though the lack of a poster can indirectly create a CLS (Cumulative Layout Shift) issue if video dimensions are not declared.
Popularidade
- Estrelas no GitHub
- 75 mil
- Posição no ranking
- #3075
- Licença
- MIT
- Atualizada em
- 31/10/2026
Comentários
- …
Mais skills deste repositório
frontendchecklist
75 milVerifica código front-end e páginas no ar contra mais de 380 regras de acessibilidade, velocidade, SEO e segurança, usando uma ferramenta de linha de comando.
frontend-checklist-global
75 milAudita um projeto front-end contra todas as 386 regras do Front-End Checklist e dá uma correção específica para cada problema encontrado.
404-page
75 milVerifica se a sua página de conteúdo não encontrado oferece links úteis e retorna um status 404 real, para ajudar visitantes perdidos a encontrar o caminho.
about-page
75 milRevisa se o seu site tem uma página Sobre clara que explica quem está por trás dele, para criar confiança em visitantes e buscadores.
Skills parecidas
angular-developer
280 milAjuda seu agente a criar código Angular e a dar conselhos sobre a estrutura do projeto. É útil para iniciar novos projetos, criar partes do código ou melhorar a performance e acessibilidade.
frontend-a11y
280 milAjuda seu agente a tornar interfaces web acessíveis para todos. Ele garante que sites e apps funcionem bem com leitores de tela e navegação por teclado.
frontend-patterns
280 milFaz seu agente aplicar padrões modernos no desenvolvimento frontend. Ele otimiza performance, gerencia estado e segue boas práticas em React e Next.js.