meme-generation

Generate meme images by overlaying text on imgflip templates with Pillow.

14|5|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill meme-generation-mlt-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: meme-generation
Source: https://github.com/MLT-OSS/hermes-agent-go/tree/main/optional-skills/creative/meme-generation
Command: npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill meme-generation-mlt-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Pillow, requests, and includes scripts (resource) components.

What problem does it solve? Creating memes manually requires image editing software and template hunting. This Skill turns a topic into a finished .png meme by picking a template, writing captions, and rendering text overlays programmatically. ## Core Features & Use Cases - Template-Based Generation: Choose from 10 curated templates with hand-tuned text positioning (Drake, This is Fine, Expanding Brain, etc.) or any of ~100 popular imgflip templates searchable by name or ID. - Custom AI Image Mode: Overlay captions on AI-generated images using either direct overlay (white text with black outline) or black bars above/below for busy scenes. - Automatic Text Fitting: Word-wraps and auto-scales font size so captions fit their fields, with Impact-style bold font fallback across platforms. - Use Case: A user says "make a meme about debugging production at 2 AM" — the Skill picks the this-is-fine template, writes captions, runs the script, and returns a ready-to-share .png file. ## Quick Start Ask the agent to make a meme about your topic, for example: "Generate a meme about choosing between writing tests and shipping to prod."

Frequently Asked Questions about meme-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a meme image with Python?

Run the generate_meme.py script with a template ID, output path, and caption texts, for example: python generate_meme.py drake /tmp/meme.png "Writing tests" "Shipping to prod". The script downloads the template, overlays outlined text with Pillow, and saves a .png file.

What meme templates are available in the generator?

The script includes 10 curated templates with hand-tuned text positioning such as Drake, This is Fine, and Expanding Brain, plus roughly 100 popular imgflip templates accessible by name or ID. Use --list to see curated templates or --search to find others.

Can I add text to my own image instead of a meme template?

Yes, use the --image flag with a path to your image, followed by the output path and captions. Choose default overlay mode for white outlined text directly on the image, or add --bars to place text on black bars above and below the image.

Why does meme text overflow or look unreadable?

Long captions cause overflow because the auto-scaling stops at a minimum font size. Keep captions under 8-12 words per field and match the number of text arguments to the template's field count. For busy custom images, switch to --bars mode.

Does the meme generator work offline?

Template images are downloaded from imgflip on first use and cached in scripts/.cache/ as PNG files. After caching, those templates work offline, but searching or using new templates requires network access to the imgflip API.