الدليل ← Skill
SkilloptionalHermes Optional Skills

Meme Generation

Meme Generation: مهارة ينشرها adanaleycio. مجالها التصميم والوسائط. يوفّر السجل أمر تثبيت جاهزًا يظهر في هذه الصفحة. الرخصة MIT. الإصدار الموثّق 2.0.0. تُفعَّل بأمر `hermes skills install meme-generation` بعد مراجعة ما تطلبه. تدعم: linux، macos، windows.

creativememeshumorimagesOptionalHermes skill
آخر تحقق من السجل2026-08-18v2.0.0adanaleycio
افتح المصدر الأصلي ↗Read in English
المعنى ببساطة

ماذا يضيف إلى Hermes؟

Meme Generation: مهارة ينشرها adanaleycio. مجالها التصميم والوسائط. يوفّر السجل أمر تثبيت جاهزًا يظهر في هذه الصفحة. الرخصة MIT. الإصدار الموثّق 2.0.0. تُفعَّل بأمر hermes skills install meme-generation بعد مراجعة ما تطلبه. تدعم: linux، macos، windows.

Meme Generation هي مهارة مرتبطة بمجال التصميم والوسائط. يضيف أدوات لإنشاء أو قراءة أو تعديل وسائط مثل التصميم والصورة والصوت والفيديو.

هذا تفسير مبسّط مبني على وصف الناشر. أبقينا الوصف الإنجليزي بجانبه حتى تستطيع مقارنة المعنى بالمصدر.

استخدمه عندما

استخدمه عندما يكون هدفك واضحًا في التصميم والوسائط وتستطيع تحديد البيانات والأفعال التي يحتاجها فقط.

لا تحتاجه عندما

لا تضفه لمجرد التجربة إذا كان لديك طريق أبسط داخل Hermes، أو إذا لم تستطع مراجعة المصدر والصلاحيات.

لمن يناسب؟

مناسب لمن يريد طريقة عمل قابلة للتكرار داخل Hermes.

أول اختبار آمن

ابدأ بأصل تجريبي، واطلب نسخة جديدة بدل تعديل الملف الأصلي حتى تتأكد من النتيجة.

الوصف الأصلي من الناشر، من دون ترجمة تغيّر المعنى

Create meme PNGs from templates with Pillow text overlay

✓
مصدر البيانات

فُهرس هذا الإدخال من Hermes Optional Skills. الشرح العربي يفسّر النوع والمجال ولا يضيف وظيفة غير مذكورة في المصدر.

!
مراجعة الأمان

المصدر رسمي أو خضع لمراجعة تحريرية، لكن ذلك لا يغني عن مراجعة الصلاحيات والإصدار.

مسار تثبيت آمن

افحص، ثبّت، ثم اختبر.

  1. 01
    افتح المصدر

    طابق اسم الناشر والرخصة والوصف مع حاجتك، وراجع آخر تحديث فعلي.

  2. 02
    راجع الصلاحيات والأسرار

    لا تلصق قيمة سر داخل الموقع. استخدم أسماء متغيرات البيئة وامنح أقل نطاق ممكن.

  3. 03
    انسخ الإعداد فقط بعد المراجعة

    الأزرار أدناه تنسخ نصًا إلى الحافظة ولا تشغّل أمرًا على جهازك.

  4. 04
    اختبر بمهمة غير حساسة

    تحقق من الأدوات الظاهرة، ثم استبعد أدوات الكتابة أو الحذف التي لا تحتاجها.

أمر التثبيت

راجع الأمر ثم انسخه.

hermes skills install meme-generation

لا ينفّذ Hermes بالعربي هذا الأمر. التثبيت يحدث داخل جهازك ويظل خاضعًا لفحص Hermes ومراجعتك.

تعريف المهارة كاملًا

ما الذي يحمّله Hermes بالضبط عند تشغيل هذه المهارة.

منقول من التوثيق الرسمي. اقرأه قبل تفعيل المهارة، فهذا النص يصبح تعليمات الوكيل نفسه.

Create meme PNGs from templates with Pillow text overlay.

Skill metadata

جدول مرجعي. لا تقرأه كله، ابحث عن السطر الذي يخصّك فقط.

SourceOptional — install with hermes skills install official/creative/meme-generation
Pathoptional-skills/creative/meme-generation
Version2.0.0
Authoradanaleycio
LicenseMIT
Platformslinux, macos, windows
Tagscreative, memes, humor, images
Related skillsascii-art

Reference: full SKILL.md

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

Generate actual meme images from a topic. Picks a template, writes captions, and renders a real .png file with text overlay.

When to Use

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

  • User asks you to make or generate a meme
  • User wants a meme about a specific topic, situation, or frustration
  • User says "meme this" or similar

Available Templates

جدول مرجعي. لا تقرأه كله، ابحث عن السطر الذي يخصّك فقط.

The script supports any of the ~100 popular imgflip templates by name or ID, plus 10 curated templates with hand-tuned text positioning.

Curated Templates (custom text placement)

IDNameFieldsBest for
this-is-fineThis is Finetop, bottomchaos, denial
drakeDrake Hotline Blingreject, approverejecting/preferring
distracted-boyfriendDistracted Boyfrienddistraction, current, persontemptation, shifting priorities
two-buttonsTwo Buttonsleft, right, personimpossible choice
expanding-brainExpanding Brain4 levelsescalating irony
change-my-mindChange My Mindstatementhot takes
woman-yelling-at-catWoman Yelling at Catwoman, catarguments
one-does-not-simplyOne Does Not Simplytop, bottomdeceptively hard things
grus-planGru's Planstep1-3, realizationplans that backfire
batman-slapping-robinBatman Slapping Robinrobin, batmanshutting down bad ideas

Dynamic Templates (from imgflip API)

Any template not in the curated list can be used by name or imgflip ID. These get smart default text positioning (top/bottom for 2-field, evenly spaced for 3+). Search with:

Shellسطر واحد
python "$SKILL_DIR/scripts/generate_meme.py" --search "disaster"

Procedure

إعدادات تضبطها مرة وتنساها. غيّر واحدًا في كل مرة حتى تعرف أثر كل تغيير. تضبط SKILL_DIR خارج المحادثة، في بيئة التشغيل.

Mode 1: Classic Template (default)

  1. Read the user's topic and identify the core dynamic (chaos, dilemma, preference, irony, etc.)
  2. Pick the template that best matches. Use the "Best for" column, or search with --search.
  3. Write short captions for each field (8-12 words max per field, shorter is better).
  4. Find the skill's script directory:
Textسطر واحد
   SKILL_DIR=$(dirname "$(find ~/.hermes/skills -path '*/meme-generation/SKILL.md' 2>/dev/null | head -1)")
  1. Run the generator:
Shellسطر واحد
   python "$SKILL_DIR/scripts/generate_meme.py" <template_id> /tmp/meme.png "caption 1" "caption 2" ...
  1. Return the image with MEDIA:/tmp/meme.png

Mode 2: Custom AI Image (when imagegenerate is available)

Use this when no classic template fits, or when the user wants something original.

  1. Write the captions first.
  2. Use image_generate to create a scene that matches the meme concept. Do NOT include any text in the image prompt — text will be added by the script. Describe only the visual scene.
  3. Find the generated image path from the image_generate result URL. Download it to a local path if needed.
  4. Run the script with --image to overlay text, choosing a mode:
  5. Overlay (text directly on image, white with black outline):
Shellسطر واحد
     python "$SKILL_DIR/scripts/generate_meme.py" --image /path/to/scene.png /tmp/meme.png "top text" "bottom text"
  • Bars (black bars above/below with white text — cleaner, always readable):
Shellسطر واحد
     python "$SKILL_DIR/scripts/generate_meme.py" --image /path/to/scene.png --bars /tmp/meme.png "top text" "bottom text"

Use --bars when the image is busy/detailed and text would be hard to read on top of it.

  1. Verify with vision (if vision_analyze is available): Check the result looks good:
Textسطر واحد
   vision_analyze(image_url="/tmp/meme.png", question="Is the text legible and well-positioned? Does the meme work visually?")

If the vision model flags issues (text hard to read, bad placement, etc.), try the other mode (switch between overlay and bars) or regenerate the scene.

  1. Return the image with MEDIA:/tmp/meme.png

Examples

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

"debugging production at 2 AM":

Shellسطر واحد
python generate_meme.py this-is-fine /tmp/meme.png "SERVERS ARE ON FIRE" "This is fine"

"choosing between sleep and one more episode":

Shellسطر واحد
python generate_meme.py drake /tmp/meme.png "Getting 8 hours of sleep" "One more episode at 3 AM"

"the stages of a Monday morning":

Shellسطر واحد
python generate_meme.py expanding-brain /tmp/meme.png "Setting an alarm" "Setting 5 alarms" "Sleeping through all alarms" "Working from bed"

Listing Templates

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

To see all available templates:

Shellسطر واحد
python generate_meme.py --list

Pitfalls

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

  • Keep captions SHORT. Memes with long text look terrible.
  • Match the number of text arguments to the template's field count.
  • Pick the template that fits the joke structure, not just the topic.
  • Do not generate hateful, abusive, or personally targeted content.
  • The script caches template images in scripts/.cache/ after first download.

Verification

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

The output is correct if:

  • A .png file was created at the output path
  • Text is legible (white with black outline) on the template
  • The joke lands — caption matches the template's intended structure
  • File can be delivered via MEDIA: path