sn-image-imitate
O que ela faz
Esta skill cria uma nova imagem no mesmo estilo de uma imagem de referência, mas com conteúdo diferente que você descreve. É para quem gosta de um visual e quer usá-lo em algo novo.
Quando usar
- ✓Quando você tem uma imagem de referência cujo estilo quer para uma nova cena.
- ✓Quando você quer manter o layout e o clima de uma figura, mas mudar o que ela mostra.
- ✓Quando você quer copiar um estilo de uma imagem para uma nova imagem gerada.
Link da skill
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-imitate/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
“Use o estilo e as cores desta foto para desenhar uma nova imagem de uma cafeteria à noite.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente descreve em detalhes a imagem de referência, reescreve essa descrição com o seu novo conteúdo mantendo o estilo e o layout, gera a nova imagem e confere o layout dela.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
sn-image-imitate
Image style imitation scene skill (tier 1), relying on the sn-image-recognize, sn-text-optimize, and sn-image-generate tools provided by sn-image-base (tier 0).
Features:
- Extracts high-fidelity long caption from a reference image
- Rewrites caption according to user requested content change while preserving style and layout
- Enforces layout-lock constraints during caption rewrite
- Performs post-generation layout consistency review and bounded retries
- Returns structured process artifacts for debugging and reproducibility
Non-goals
- Pure neural style transfer without content change (use dedicated style-transfer tools instead)
- Local editing / inpainting of specific regions within the reference image
- Processing video or animation input (only single static images are supported)
- Batch generation from multiple reference images in one invocation
- Guaranteeing pixel-level fidelity to the reference; the skill targets layout and style consistency, not exact reproduction
Input Specification
reference_image(string, required): local path or URL of the style reference imagetarget_content(string, required): new content user wants in the generated imageoutput_mode(string, defaultfriendly): output mode,friendlyorverboseaspect_ratio(string, default16:9): output aspect ratio for generationimage_size(string, default2k): output image size presetmax_attempts(int, default3): maximum generation attempts for meeting layout consistencylayout_threshold(float, default0.75): minimum layout similarity score to accept result
Environment Variable
Dependency installation and API key configuration are for sn-image-base skill.
The minimum environment variables to configure sn-image-base skill running with SenseNova Token Plan:
SN_BASE_URL="https://token.sensenova.cn/v1"
SN_API_KEY="your-api-key"
Fallback priority is dedicated variable > domain shared variable > global variable. Text calls use SN_TEXT_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY; vision calls use SN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY; image generation uses SN_IMAGE_GEN_API_KEY -> SN_API_KEY.
Please refer to the Python dependencies and API keys section in sn-image-generate_en.md for more configurations.
API Configuration
All API calls in this skill are executed through the sn_agent_runner.py of the sn-image-base skill,
please refer to the sn-image-base skill (README.md) for more details.
- VLM call:
sn-image-recognize(Step 1 & 3) - LLM call:
sn-text-optimize(Step 2) - Image generation call:
sn-image-generate(Step 3)
When encountering MissingApiKeyError or needing explicit model control: pass model and auth params explicitly via CLI arguments. See $SN_IMAGE_BASE/references/api_spec.md.
$SN_IMAGE_BASE path explanation: $SN_IMAGE_BASE is the installation directory of the sn-image-base skill (SKILL.md exists). The agent can locate this path by skill name sn-image-base.
Architecture: Main Agent + Worker Agent
This skill uses a two-tier agent architecture:
- Main Agent: receives user request, normalizes parameters, sends preflight, invokes Worker Agent, and sends final text/image to user
- Worker Agent: executes fixed 3-step pipeline and returns structured JSON
Responsibility Boundaries:
- Worker Agent does not send any user-visible message directly
- Main Agent sends all user-facing responses
- Worker Agent last message must be and only be the JSON string defined in Return Contract
- Worker Agent executes VLM/LLM/image calls directly; no nested subagent for these low-level calls
Workflow
Main Agent Workflow
- Extract
reference_image,target_content,output_mode(defaultfriendly),aspect_ratio(default16:9),image_size(default2k),max_attempts(default3), andlayout_threshold(default0.75) - Validate required inputs:
reference_imageis provided and resolvabletarget_contentis non-empty
- Send preflight message:
"Using sn-image-imitate skill to generate a style-consistent image, please wait..." - Start Worker Agent with full normalized parameters and working directory
- On Worker result:
status=ok: send final summary and generated image- `sta
Perguntas frequentes
Ela copia a referência pixel por pixel?
Não. Ela busca estilo e layout compatíveis, e não uma cópia exata.
Ela consegue lidar com vídeos?
Não. Funciona apenas com imagens estáticas únicas.
Ela consegue editar uma parte da figura?
Não. Ela cria uma nova imagem em vez de editar uma região da referência.
Detalhes
Descrição original do autor
Generates a new image that imitates the style of a reference image while updating content based on user intent. Uses a three-stage pipeline: image annotation (long caption), caption rewriting, and image generation. Use when user asks to "imitate style", "保持这个风格重画", "按这张图风格生成", or "style transfer with new content".
Popularidade
- Estrelas no GitHub
- 6,0 mil
- Posição no ranking
- #14461
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
sn-code-video
6,0 milEnsina seu agente a criar vídeos guiados por código com Canvas, SVG, Three.js ou Remotion, verificados quadro a quadro e exportados como MP4.
sn-image-base
6,0 milDá a outras skills ferramentas de baixo nível para gerar imagens, reconhecer o conteúdo de figuras e otimizar textos com os serviços da SenseNova.
sn-image-doctor
6,0 milVerifica se sua configuração do SenseNova-Skills está instalada, com seus pacotes Python e as chaves de API necessárias, e depois salva as chaves faltantes em um arquivo.
sn-image-resume
6,0 milAjuda seu agente a transformar o texto do seu currículo em uma imagem de currículo com design estilo portfólio, com opções de estilo.
Skills parecidas
gifgrep
394 milPermite que seu agente pesquise bibliotecas de GIFs, visualize resultados, baixe um GIF e extraia um quadro fixo ou uma folha de quadros.
meme-maker
394 milPermite que seu agente escolha um modelo de meme, adicione suas próprias legendas e crie o meme como imagem SVG ou PNG.
ios-icon-gen
280 milFaz seu agente gerar ícones para aplicativos iOS. Ele usa símbolos da Apple ou ícones de outras fontes para criar os arquivos corretos.