image-generation
ما الذي تفعله
تعلّم هذه المهارة وكيل الذكاء الاصطناعي إنشاء الصور بأداة صور، ومراجعتها عبر عدة جولات. وهي مناسبة لمن يريد رسم صور أو تعديلها بوصف ما يريده.
متى تستخدمها
- ✓عندما تطلب رسم صورة أو توضيح أو تصميم من وصف.
- ✓عندما تريد تغيير صورة محفوظة، كخلفيتها أو إضاءتها.
- ✓عندما تريد نسخة أخرى من آخر صورة أنشأتها.
رابط المهارة
https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك رسم توضيح لمقهى دافئ بألوان دافئة، ثم جعل الخلفية أكثر إشراقًا؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يكتب الوكيل أمرًا مفصلًا من طلبك ويستدعي أداة الصور. تُحفظ الصور المنشأة كملفات، ويرسلها الوكيل إليك.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Image Generation
Use the generate_image tool when the user asks you to create, render, draw, design, generate, or edit an image.
If the generate_image tool is not available in the current tool list, tell the user that image generation is not enabled for this nanobot instance.
When To Use
- Text-to-image: call
generate_imagewith a concreteprompt. - Image editing: pass the saved artifact path or user image path in
reference_images. - Iterative edits in the same conversation: prefer the most recent generated image artifact if the user says things like "make it brighter", "change the background", or "try another version".
- Ambiguous edits: ask a short clarifying question if multiple recent images could be the target.
- After generating images, call the
messagetool with the artifact paths in themediaparameter to deliver them to the user.
Prompt Rules
Write prompts with enough detail for image models:
- Subject and scene.
- Composition and camera or layout.
- Style, mood, lighting, and color palette.
- Text that must appear in the image, quoted exactly.
- Constraints such as "keep the same character", "preserve the logo", or "do not change the background".
Artifact Rules
The tool stores generated images as persistent artifacts under nanobot's media directory and returns structured metadata:
id: generated image id, such asimg_ab12cd34ef56.path: local file path for internal follow-up edits.mime: image MIME type.prompt,model, andsource_images: provenance for follow-up edits.
In normal user-facing replies, do not expose local filesystem paths. Keep the reply natural, for example "Done, I generated it." You may include the short image id when it helps the user refer to a specific image, but keep raw path internal unless the user explicitly asks for debug details or a local artifact reference. Never paste base64.
For follow-up edits, pass the prior artifact path to reference_images. If the user provides a new uploaded image, use that path as the reference instead.
Do not include internal replay markers such as [Message Time: ...], [image: /local/path], generate_image(...), or message(...) in user-facing replies.
Examples
Generate a new image:
generate_image(
prompt="A minimal app icon for nanobot: friendly robot head, rounded square, soft blue and white palette, clean vector style, no text",
aspect_ratio="1:1",
image_size="1K"
)
Edit the latest generated artifact:
generate_image(
prompt="Use the reference image. Keep the same robot and composition, but change the palette to warm orange and add a subtle sunrise background.",
reference_images=["/home/user/.nanobot/media/generated/2026-05-08/img_ab12cd34ef56.png"],
aspect_ratio="1:1",
image_size="1K"
)
الأسئلة الشائعة
هل توليد الصور مفعّل دائمًا؟
لا. تذكر المهارة أن على الوكيل إخبارك إذا لم تكن أداة الصور مفعلة لهذه النسخة.
هل يمكنها تعديل صورة أرفعها؟
نعم. يمكنك تمرير صورة محفوظة أو صورتك الخاصة كمرجع للتعديل.
ما الذي يجعل أمر الصورة جيدًا؟
تقترح المهارة ذكر الموضوع والتكوين والأسلوب والإضاءة والألوان وأي نص دقيق يجب أن يظهر.
التفاصيل
الوصف الأصلي من المؤلف
Generate images and iteratively edit saved image artifacts.
repo: HKUDS/nanobot
الشعبية
- نجوم GitHub
- 50k
- الترتيب
- #3598
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
clawhub
50kيتيح لوكيلك البحث في سجل عام لمهارات الذكاء الاصطناعي، ثم تثبيت المهارات أو تحديثها أو عرض ما لديك منها.
github
50kيتيح لوكيلك فحص طلبات السحب وتشغيلات CI في GitHub، وقراءة سجلات البناء الفاشلة، والاستعلام عن بيانات المستودع بأداة gh.
memory
50kيتيح لوكيلك البحث في محادثاته السابقة داخل سجل المحفوظات، فيجد ما قيل عن موضوع معين أو تاريخ محدد.
my
50kيساعد وكيلك على فحص حالته التشغيلية وضبط بعض الإعدادات بحذر، والاحتفاظ بملاحظات قصيرة بين الجلسات.
مهارات مشابهة
gifgrep
394kيتيح لوكيلك البحث في مكتبات GIF ومعاينة النتائج وتنزيل ملف GIF، واستخراج إطار ثابت أو شبكة إطارات منه.
meme-maker
394kيتيح لوكيلك اختيار قالب ميم وإضافة عناوينك الخاصة، ثم إنشاء الميم كصورة بصيغة SVG أو PNG.
ios-icon-gen
280kيتيح لوكيلك إنشاء أيقونات لتطبيقات iOS. يستخدم رموز Apple أو أيقونات من مصادر أخرى لإنشاء الملفات الصحيحة.