Logo de Generate Social Preview

Generate Social Preview

Comunidade
morluto
generate-social-preview

Create or revise repository-aware social preview images for GitHub, package pages, launch posts, and link cards. Use when an agent needs to inspect a project, sharpen its short positioning, generate a branded 2:1 raster preview, explore color variants, adapt a supplied visual reference without copying it, or validate and save a social-card image non-destructively.

Visão geral

Publicado pormorluto
Repositóriogenerate-social-preview
Nome da habilidadegenerate-social-preview
Estrelas
47
Forks
12
Arquivos incluídos
6
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 6

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por morluto no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Generate Social Preview no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/morluto/generate-social-preview/tree/main/skills/generate-social-preview
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/morluto/generate-social-preview.git /tmp/generate-social-preview
mkdir -p .claude/skills
cp -r /tmp/generate-social-preview/skills/generate-social-preview .claude/skills/generate-social-preview
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Generate Social Preview em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Generate Social Preview automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Generate Social Preview não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Generate Social Preview

Produce a legible social card grounded in the project's purpose, audience, and identity. This applies to skills, libraries, developer tools, SaaS products, and other repositories.

Image Capabilities

Use the image-generation and editing tools available in the host: native tools, configured APIs or CLIs, or installed image skills. Follow the chosen tool's instructions for prompts and reference images. Use image viewing to inspect references and results, and resolve bundled resources relative to this skill's directory.

If image generation is unavailable, complete the reference selection, copy, and generation prompt, then report that no image was generated. If image viewing or reference-image input is unavailable, explain that limitation rather than claiming visual inspection or use of image inputs.

Workflow

  1. Inspect the primary README, relevant package or skill metadata, and docs. Establish what the project offers and who it serves. Follow relevant image links in the README and docs, and look for screenshots, illustrations, example outputs, demos, and brand assets in the repository. Visually inspect promising candidates rather than judging from filenames. Prefer source-owned claims over invented positioning.
  2. Identify:
    • product name;
    • one short category or promise;
    • a supporting line if useful;
    • useful project references and what each contributes to the preview;
    • the most useful way to communicate the project visually: typography, a symbol, an illustration, a real interface, an output, or a sequence.
  3. Select references for their relevance and visual usefulness. Prefer suitable material from the project; an existing image need not be included merely because it exists. If it does not fit, develop an illustration, metaphor, or other visual idea grounded in the project's actual purpose, examples, or domain. Choose a composition and style that serve that idea. Show a sequence only when understanding the steps helps the audience. Read references/style-directions.md for optional starting points and references/examples.md when examples would help. Bundled references illustrate choices for other projects.
  4. Flag copy that mixes incompatible levels of abstraction. Prefer concrete audience language over implementation protocols unless the protocol itself is the product.
  5. Propose concise copy before generation when wording is unsettled. Keep the social card scannable at thumbnail size:
    • one dominant product name;
    • one short headline;
    • at most two brief supporting lines.
  6. Label each selected image by role: edit target, project reference, or style reference. Include useful reference images as inputs to the image generator. Preserve edit invariants. Project references may supply recognizable imagery, interface details, outputs, or brand cues for the featured project. For references from other projects, borrow broad visual principles without reproducing their branding, copy, screenshots, or exact layout.
  7. Generate a 2:1 landscape image with safe margins, strong contrast, restrained detail, and a clear project identity. A typographic card can be sufficient; use screenshots, artifacts, or diagrams when they help communicate the project. Require all caller-visible text verbatim and prohibit extra marketing copy.
  8. Inspect the result at native size and as a thumbnail. Check spelling, hierarchy, typographic cohesion, contrast, cropping, unsupported claims, accidental logos, artifacts, and the genericity gate below.
  9. Iterate one variable at a time: copy, palette, composition, or imagery.
  10. Save project-bound candidates inside the repository without overwriting an existing asset. Use a descriptive versioned name.
  11. Normalize the selected image to 1280x640 with scripts/normalize-preview.sh when the target is a GitHub social preview.
  12. Report the saved path, dimensions, final copy, style direction, palette, references used or the project-grounded visual idea, and image tool used. If only a prompt was prepared, report that instead of claiming a saved image.

Prompt Shape

Adapt this brief to the available image tool's input format. Include these constraints when relevant:

text
Use case: ads-marketing
Asset type: repository social preview, wide 2:1 landscape
Primary request: <product-specific visual direction>
Input images: <paths to selected images, labeled as edit target, project reference, or style reference>
Reference use: <what to preserve, reuse, or borrow from each image>
Subject: <what the project offers and who it serves>
Style direction: <visual treatment and medium suited to this project>
Visual thesis: <the idea to communicate through type, illustration, interface, or other suitable imagery>
Composition/framing: simple hierarchy, safe margins, thumbnail readable
Color palette: <grounded palette direction>
Text (verbatim): "<exact copy>"
Constraints: original design; accurate product motifs; no unsupported claims; no extra copy
Avoid: tiny text; generic dashboards; vendor logos; watermarks; clutter; generic AI imagery

For edits, repeat: Change only <requested variable>; keep <invariants> unchanged.

Copy Heuristics

  • Name the purpose or user outcome in the audience's language: what a skill helps them do, what a library enables, or what a SaaS product makes easier.
  • When evidence supports it, pair one memorable promise with one concrete proof point. Keep the promise emotional and the proof measurable.
  • Preserve the measured unit and scope. Do not turn fewer input tokens into lower cost, faster execution, or another proxy claim without evidence.
  • Keep detailed methodology in project documentation when it would clutter the card, but ensure the standalone card claim remains defensible.
  • Avoid unexplained internal mechanisms such as protocol names in the main tagline.
  • Do not use anything, all, or complete unless the repository already makes and supports that claim.
  • Treat the README headline as evidence, not an obligation; improve it when the social-card context needs shorter copy.
  • If accurate copy will not fit, remove a line instead of shrinking it.

Revision Checks

  • Treat a copy-length or hierarchy change as a composition change within the affected panel. Reflow alignment, spacing, divider length, and negative space instead of swapping text into the old footprint.
  • Reuse the established typographic system. Supporting copy should share a family or clearly defined role with existing display, label, or artifact text.
  • Keep the project name and headline in distinct hierarchy levels, with supporting copy and imagery subordinate; do not let a revised tagline compete with the name.
  • After every text edit, inspect the full card and a thumbnail. A locally correct edit can still unbalance the surrounding panel.

Genericity Gate

Reject and revise a draft when its copy and visual treatment fail to communicate this project's purpose or identity.

  • Check that the imagery connects to something concrete in the project: a useful source image, an actual example or output, or a visual idea grounded in its purpose or domain. Typography can carry the design when imagery adds little, with copy and brand cues providing that connection.
  • Check that any depicted interface, artifact, or sequence is grounded in the project. A repository having a workflow is insufficient reason to make the card a workflow diagram.
  • Prefer a distinctive medium and composition over decorative complexity.
  • Avoid glossy portals, funnels, glowing orbs, neural-network webs, floating UI cards, holographic projections, empty dark grids, and blue-purple neon by default. Use one only when it literally explains the product.
  • Do not accept visual polish as evidence of product specificity.

Output Rules

  • Default to one strong candidate. Produce multiple variants only when the user asks or the unresolved decision is inherently visual, such as palette selection.
  • Never overwrite an existing project asset without explicit approval.
  • Keep discarded generations outside the repository unless requested.
  • Do not edit repository docs merely to reference the preview unless asked.
  • Do not claim a card is GitHub-ready until it is visually inspected and normalized to 1280x640.

Deterministic Normalization

Run:

bash
bash <skill-dir>/scripts/normalize-preview.sh <input-image> <output.png>

The helper accepts only an approximately 2:1 source, refuses to overwrite its output, and uses sips or ImageMagick to produce a 1280x640 PNG. If neither tool exists, preserve the generated image and report the missing local capability.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Generate Social Preview faz?

Create or revise repository-aware social preview images for GitHub, package pages, launch posts, and link cards. Use when an agent needs to inspect a project, sharpen its short positioning, generate a branded 2:1 raster preview, explore color variants, adapt a supplied visual reference without copying it, or validate and save a social-card image non-destructively.

Por que usar Generate Social Preview no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Generate Social Preview é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Generate Social Preview no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/morluto/generate-social-preview/tree/main/skills/generate-social-preview. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Generate Social Preview?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Generate Social Preview?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Generate Social Preview com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Generate Social Preview é gratuita?

A habilidade é publicada no GitHub por morluto. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇