sn-image-imitate
Qué hace
Esta skill crea una imagen nueva con el mismo estilo que una foto de referencia, pero con contenido distinto que describes tú. Está pensada para personas a las que les gusta un estilo y quieren usarlo para algo nuevo.
Cuándo usarla
- ✓Cuando tienes una imagen de referencia cuyo estilo quieres para una escena nueva.
- ✓Cuando quieres mantener la composición y el ambiente de una foto pero cambiar lo que muestra.
- ✓Cuando quieres copiar un estilo de una imagen a una nueva imagen generada.
Link de la skill
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-imitate/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Usa el estilo y los colores de esta foto para dibujar una nueva imagen de una cafetería de noche.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente describe en detalle la imagen de referencia, reescribe esa descripción con tu nuevo contenido manteniendo el estilo y la composición, genera la nueva imagen y revisa su composición.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Copia la referencia píxel a píxel?
No. Busca un estilo y una composición parecidos, no una copia exacta.
¿Puede trabajar con vídeos?
No. Solo funciona con imágenes fijas individuales.
¿Puede editar una parte de una imagen?
No. Crea una imagen nueva en lugar de editar una región de la referencia.
Detalles
Descripción original del 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".
Popularidad
- Estrellas en GitHub
- 6,0 mil
- Posición en el ranking
- #14461
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
sn-code-video
6,0 milEnseña a tu agente a crear vídeos generados con código usando Canvas, SVG, Three.js o Remotion, revisados fotograma a fotograma y exportados en MP4.
sn-image-base
6,0 milOfrece a otras skills herramientas básicas para generar imágenes, reconocer el contenido de fotos y optimizar textos usando los servicios de SenseNova.
sn-image-doctor
6,0 milComprueba que tu configuración de SenseNova-Skills está instalada, tiene sus paquetes de Python y las claves de API necesarias, y guarda en un archivo las que falten.
sn-image-resume
6,0 milAyuda a tu agente a convertir el texto de tu currículum en una imagen de currículum diseñada, estilo portafolio, con opciones de estilo si quieres.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.