Chuyển đến nội dung
Skillpedia
Hình ảnh và biểu tượng260k · #471

meme-generation

Skill này làm gì

Skill tạo file ảnh meme với chữ đặt trên các mẫu phổ biến, dựa trên chủ đề bạn đưa ra. Phù hợp với bất kỳ ai muốn một hình ảnh vui, nhanh về một tình huống.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu một meme về một chủ đề hoặc sự bực bội cụ thể.
  • ✓Khi bạn muốn agent chọn và viết chú thích cho một mẫu meme.
  • ✓Khi bạn muốn lưu meme thành file PNG để chia sẻ.

Liên kết skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/meme-generation/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/meme-generation/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một meme về việc đội chúng tôi luôn nói cuộc họp lẽ ra chỉ cần một email.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chọn một mẫu hợp với tình huống, viết các chú thích ngắn và vẽ chữ lên ảnh. Sau đó agent lưu kết quả thành file PNG.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Meme Generation

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)

ID Name Fields Best for
this-is-fine This is Fine top, bottom chaos, denial
drake Drake Hotline Bling reject, approve rejecting/preferring
distracted-boyfriend Distracted Boyfriend distraction, current, person temptation, shifting priorities
two-buttons Two Buttons left, right, person impossible choice
expanding-brain Expanding Brain 4 levels escalating irony
change-my-mind Change My Mind statement hot takes
woman-yelling-at-cat Woman Yelling at Cat woman, cat arguments
one-does-not-simply One Does Not Simply top, bottom deceptively hard things
grus-plan Gru's Plan step1-3, realization plans that backfire
batman-slapping-robin Batman Slapping Robin robin, batman shutting 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:

python "$SKILL_DIR/scripts/generate_meme.py" --search "disaster"

Procedure

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:
    SKILL_DIR=$(dirname "$(find ~/.hermes/skills -path '*/meme-generation/SKILL.md' 2>/dev/null | head -1)")
    
  5. Run the generator:
    python "$SKILL_DIR/scripts/generate_meme.py" <template_id> ~/.hermes/cache/scratch/meme.png "caption 1" "caption 2" ...
    
  6. Return the image with MEDIA:~/.hermes/cache/scratch/meme.png

Mode 2: Custom AI Image (when image_generate 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:
    • Overlay (text directly on image, white with black outline):
      python "$SKILL_DIR/scripts/generate_meme.py" --image /path/to/scene.png ~/.hermes/cache/scratch/meme.png "top text" "bottom text"
      
    • Bars (black bars above/below with white text — cleaner, always readable):
      python "$SKILL_DIR/scripts/generate_meme.py" --image /path/to/scene.png --bars ~/.hermes/cache/scratch/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.

  5. Verify with vision (if vision_analyze is available): Check the result looks good:
    vision_analyze(image_url="~/.hermes/cache/scratch/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.
  6. Return the image with MEDIA:~/.hermes/cache/scratch/meme.png

Examples

"debugging production at 2 AM":

python generate_meme.py this-is-fine ~/.hermes/cache/scratch/meme.png "SERVERS ARE ON FIRE" "This is fine"

"choosing between sleep and one more episode":

python generate_meme.py drake ~/.hermes/cache/scratch/meme.png "Getting 8 hours of sleep" "One more episode at 3 AM"

"the stages of a Monday morning":

python generate_meme.py expanding-brain ~/.hermes/cache/scratch/meme.png "Setting an alarm" "Setting 5 alarms" "Sleeping through 
Câu hỏi thường gặp

Có những mẫu nào?

Skill hỗ trợ khoảng 100 mẫu phổ biến theo tên hoặc ID, cùng 10 mẫu được chọn kỹ với vị trí chữ đã tinh chỉnh.

Agent chọn mẫu như thế nào?

Agent chọn một mẫu hợp tình huống, chẳng hạn mẫu từ chối khi bạn muốn nói không, hoặc mẫu hỗn loạn khi bạn muốn phủ nhận.

Skill tạo ra loại file nào?

Một ảnh .png thật, với chữ được chồng lên.

Chi tiết

Mô tả gốc của tác giả

Create meme PNGs from templates with Pillow text overlay.

repo: NousResearch/hermes-agent

Độ phổ biến

Sao GitHub
260k
Vị trí xếp hạng
#471
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự