sn-image-imitate
하는 일
이 스킬은 참고 그림과 같은 스타일의 새 이미지를 만들되, 사용자가 설명한 다른 내용을 담습니다. 마음에 드는 느낌을 새로운 장면에 쓰고 싶은 사람을 위한 것입니다.
사용하는 경우
- ✓새 장면에 쓰고 싶은 스타일의 참고 이미지가 있을 때.
- ✓사진의 구도와 분위기는 유지하면서 보여 주는 내용만 바꾸고 싶을 때.
- ✓한 이미지의 스타일을 새로 생성하는 이미지에 옮기고 싶을 때.
스킬 링크
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-imitate/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 사진의 스타일과 색감을 사용해서, 밤의 커피숍을 그린 새 그림을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 참고 이미지를 자세히 묘사하고, 그 설명을 스타일과 구도는 유지하면서 새 내용으로 다시 씁니다. 그다음 새 이미지를 생성하고 구도를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
참고 그림을 픽셀 단위로 복사하나요?
아니요. 정확한 복사가 아니라 비슷한 스타일과 구도를 목표로 합니다.
동영상도 다룰 수 있나요?
아니요. 단일 정지 이미지만 다룹니다.
이미지의 한 부분만 편집할 수 있나요?
아니요. 참고 이미지의 영역을 편집하지 않고 새 이미지를 만듭니다.
상세 정보
작성자의 원본 설명
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".
인기도
- GitHub 스타
- 6.0k
- 순위
- #14461
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
sn-code-video
6.0k에이전트가 Canvas, SVG, Three.js 또는 Remotion으로 코드 기반 영상을 만들고 MP4로 내보내도록 가르칩니다.
sn-image-base
6.0k다른 스킬들이 SenseNova 서비스로 이미지를 만들고, 사진 내용을 인식하고, 텍스트를 다듬을 수 있도록 기본 도구를 제공합니다.
sn-image-doctor
6.0kSenseNova-Skills 설치, Python 패키지, API 키를 확인하고, 빠진 키는 파일에 저장합니다.
sn-image-resume
6.0k에이전트가 이력서 텍스트를 포트폴리오 스타일의 디자인된 이력서 이미지로 바꾸도록 돕고, 스타일 선택도 반영합니다.