sn-image-imitate
यह क्या करती है
यह स्किल संदर्भ चित्र जैसी शैली में नई तस्वीर बनाती है, लेकिन सामग्री वह होती है जो आप बताते हैं। यह उन लोगों के लिए है जिन्हें कोई रूप पसंद है और वे उसे किसी नई चीज़ के लिए इस्तेमाल करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपके पास कोई संदर्भ चित्र हो जिसकी शैली आप नए दृश्य के लिए चाहते हों।
- ✓जब आप किसी तस्वीर का लेआउट और मूड रखना चाहें, पर उसमें दिखाई गई चीज़ें बदलना चाहें।
- ✓जब आप एक चित्र की शैली किसी नई बनाई गई तस्वीर में लाना चाहें।
Skill का लिंक
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-imitate/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे लिए इस फ़ोटो की शैली और रंग लेकर रात की एक कॉफ़ी शॉप की नई तस्वीर बनाइए।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
sn-code-video
6.0kयह आपके एजेंट को Canvas, SVG, Three.js या Remotion से कोड द्वारा वीडियो बनाना सिखाती है, हर फ़्रेम जाँचकर और MP4 के रूप में export करके।
sn-image-base
6.0kयह दूसरी स्किल को SenseNova सेवाओं से तस्वीरें बनाने, चित्र की सामग्री पहचानने और टेक्स्ट सुधारने के बुनियादी टूल देती है।
sn-image-doctor
6.0kयह जाँचती है कि आपका SenseNova-Skills सेटअप इंस्टॉल है, उसके Python packages और ज़रूरी API keys मौजूद हैं, फिर गायब keys को फ़ाइल में सहेजती है।
sn-image-resume
6.0kयह आपके एजेंट को आपके resume के टेक्स्ट से एक डिज़ाइन की हुई portfolio-शैली resume तस्वीर बनाने में मदद करती है, चाहें तो शैली भी चुन सकते हैं।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।