Blog Screenshot logo

Blog Screenshot

Community
felvieira
blog-screenshot

Captura screenshots via Playwright MCP de URLs/elementos pra usar em posts de blog ou documentação. Lida com viewport, cookie banners, full-page vs section, scroll a âncora, formatos PNG/JPG. Compõe com skill 41 (blog-publisher). Trigger em: "tira print", "screenshot do site", "captura tela", "screenshot da página", "print da landing", "print do dashboard", "screenshot pro blog".

Overview

Publisherfelvieira
Repositoryclaude-skills-fv
Skill nameblog-screenshot
Stars
28
Forks
5
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by felvieira on GitHub. Read the source before you install it.

Installation

Install the Blog Screenshot AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/felvieira/claude-skills-fv/tree/main/skills/42-blog-screenshot
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/felvieira/claude-skills-fv.git /tmp/claude-skills-fv
mkdir -p .claude/skills
cp -r /tmp/claude-skills-fv/skills/42-blog-screenshot .claude/skills/blog-screenshot
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Blog Screenshot in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Blog Screenshot on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Blog Screenshot is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Blog Screenshot — Skill 42

Especialista em captura via Playwright. Pega URL/elemento → entrega PNG/JPG limpo.

Governança Global

Esta skill segue GLOBAL.md, policies/tool-safety.md. Usa Playwright MCP que já está no harness padrão do kit.

Quando Usar

  • Skill 41 (blog-publisher) precisa de imagem real de algo navegável (não geração)
  • Documentação técnica que precisa mostrar a UI de um site/dashboard
  • Comparação visual antes/depois de mudança em landing page
  • Captura de relatório HTML rendered (ex: analyze-doc/index.html)

Quando NÃO Usar

  • Imagem conceitual/abstrata → usar skill 17 (image-generator fal.ai)
  • Logo/icone/favicon → usar skill 36 (web-asset-generator)
  • Mockup de UI que ainda não existe → skill 17
  • Screenshot de PDF/documento estático — usar outra ferramenta (Playwright é browser only)

Decision tree: full-page vs viewport vs element

A captura é da página inteira?
├── SIM → fullPage: true
│   └── Resultado: arquivo longo, ideal pra hero/cover landing
└── NÃO → fullPage: false (viewport visible)
    ├── Específico de uma seção?
    │   └── Scroll até âncora (URL com #fragment) antes do shot
    └── Específico de um elemento?
        └── Passar `element` selector pro screenshot

Viewports padrão (escolher por destino)

DestinoWidth × HeightQuando usar
Cover de post de blog1500 × 750Proporção Medium/Twitter OG
Hero de landing page1400 × 900Desktop padrão
Inline section1200 × 800Section dentro de post
Mobile preview390 × 844Responsive showcase (iPhone 14)
Tablet preview1024 × 768iPad portrait

Protocolo

1. Resolver target

  • URL completa? OK, navegar direto
  • Path relativo (ex: analyze-doc/index.en.html)? converter pra https://felvieira.github.io/... se já tiver Pages, ou file:// se for local (file:// pode estar bloqueado no Playwright MCP — usar Pages quando possível)
  • Pedido inclui #anchor? incluir na URL pra scroll automático

2. Configurar viewport

ts
mcp__plugin_playwright_playwright__browser_resize({ width: 1400, height: 900 })

Ou viewport específico do destino (ver tabela acima).

3. Navegar

ts
mcp__plugin_playwright_playwright__browser_navigate({ url: "https://..." })

4. Lidar com cookie banner / overlay (se aparecer)

Se site é público com cookie banner, dispensar via browser_evaluate antes do shot:

js
// Remove common cookie banner selectors
document.querySelectorAll('[id*="cookie"],[class*="cookie-banner"],[class*="consent"]')
  .forEach(el => el.remove());

5. Aguardar render (se necessário)

Pra páginas com lazy-load ou animação inicial, esperar 1-2s antes do shot:

ts
mcp__plugin_playwright_playwright__browser_evaluate({
  function: "() => new Promise(r => setTimeout(r, 1500))"
})

6. Tirar screenshot

ts
mcp__plugin_playwright_playwright__browser_take_screenshot({
  filename: "D:/Repos/blog/assets/images/{slug}-{N}.png",
  type: "png",
  fullPage: false  // ou true conforme decisão
})

7. Verificar tamanho do arquivo

bash
ls -la D:/Repos/blog/assets/images/{slug}-{N}.png

Esperado: 50KB-300KB pra PNG dark mode comum. Se >1MB, considerar converter pra JPEG ou crop específico de elemento.

Checkpoint: abrir o arquivo gerado e confirmar visualmente — tela em branco (esperou pouco no passo 5), cookie banner ainda visível (seletor do passo 4 não bateu no site), ou viewport cortando conteúdo esperado. Se algo estiver errado, ajustar o passo correspondente (não só repetir o shot) e capturar de novo.

Naming convention

Para integração com skill 41:

assets/images/{slug}-cover.png         ← cover do post
assets/images/{slug}-1.png             ← primeiro inline
assets/images/{slug}-2.png             ← segundo inline
assets/images/{slug}-mobile.png        ← (opcional) mobile preview

Slug deve bater com o slug do post (YYYY-MM-DD-{slug}.html em posts/).

Entradas Esperadas

  • URL ou descrição do que capturar
  • (opcional) viewport custom
  • (opcional) full-page vs viewport vs element
  • (opcional) destino do arquivo

Saídas Esperadas

  • Arquivo PNG/JPG salvo
  • Path retornado pra skill 41 usar no <img> do post
  • Largura/altura informados

Anti-padrões

Anti-padrãoRealidade
Tirar fullPage de página muito longaVira 8MB. Quebra OG. Sempre fazer crops específicos.
Esquecer de fechar cookie bannerCobertura do screenshot, vergonha pública. Sempre limpar antes.
Hardcode viewport mobile pra coverCover precisa 16:9 ou 2:1. Mobile só pra mostrar responsividade.
Capturar sem aguardar fontsFonts não carregadas geram FOUT no print. Aguardar 1s mínimo.
Screenshot direto sem resizeDefault do Playwright é 1280×720. Pra cover de blog, ajustar pra 1500×750.

Composição com outras skills

  • Skill 41 (blog-publisher) — invoca esta skill quando o post é sobre algo navegável
  • Skill 17 (image-generator) — alternativa pra imagens conceituais (não navegáveis)

Evidência de Conclusão

  • Arquivo PNG/JPG existe no path esperado
  • Tamanho razoável (50KB-500KB típico)
  • Dimensões batem com viewport solicitado
  • Sem cookie banners ou overlays no screenshot
  • Path retornado pra caller

Cross-references

  • skills/41-blog-publisher/SKILL.md — invoca esta skill
  • skills/17-image-generator/SKILL.md — alternativa de geração (não captura)
  • Playwright MCP — built-in no Claude Code via plugin
  • D:/Repos/blog/assets/images/ — destino padrão das capturas pra blog

Frequently asked questions

What does the Blog Screenshot AI skill do?

Captura screenshots via Playwright MCP de URLs/elementos pra usar em posts de blog ou documentação. Lida com viewport, cookie banners, full-page vs section, scroll a âncora, formatos PNG/JPG. Compõe com skill 41 (blog-publisher). Trigger em: "tira print", "screenshot do site", "captura tela", "screenshot da página", "print da landing", "print do dashboard", "screenshot pro blog".

Why use Blog Screenshot on TypingMind?

Because you install it once and use it with any model. Blog Screenshot is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Blog Screenshot in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/felvieira/claude-skills-fv/tree/main/skills/42-blog-screenshot. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Blog Screenshot?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Blog Screenshot?

As many as you like. As long as a model supports skills, you can use Blog Screenshot with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Blog Screenshot AI skill free?

Yes. It is published on GitHub by felvieira under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇