meme-generation

Generate meme images by overlaying text on templates with Pillow.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/Chensihakniroth/ANAKOT-AGENT --skill meme-generation-chensihakniroth
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: meme-generation
Source: https://github.com/Chensihakniroth/ANAKOT-AGENT/tree/main/optional-skills/creative/meme-generation
Command: npx skills add https://github.com/Chensihakniroth/ANAKOT-AGENT --skill meme-generation-chensihakniroth

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating memes manually requires image editing tools and template hunting. This Skill automates the entire process: pick a template, write captions, and render a real .png meme file with properly positioned text. ## Core Features & Use Cases - Curated Templates: 10 hand-tuned templates (Drake, This is Fine, Expanding Brain, etc.) with precise text field positioning. - Dynamic Template Search: Access ~100 popular imgflip templates by name or ID with smart default text placement. - Custom Image Mode: Overlay captions on AI-generated or custom images, with optional black bars for readability. - Use Case: A user says "make a meme about debugging production at 2 AM" — the Skill picks the this-is-fine template, writes captions, and outputs a ready-to-share .png file. ## Quick Start Ask the agent to make a meme about your topic, for example: "Create a Drake meme about writing tests versus shipping straight 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. It downloads the template image, overlays white text with black outline using Pillow, and saves a .png file.

What meme templates are available in this generator?▼

Ten curated templates with hand-tuned text positioning are included, such as Drake, This is Fine, and Expanding Brain. You can also search and use roughly 100 popular imgflip templates by name or ID.

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

Yes, use the --image flag with a path to your custom image. Choose overlay mode for text directly on the image, or --bars mode to add black bars with white text above and below for better readability.

Does the meme generator work offline?▼

Template images are downloaded from imgflip on first use and cached locally in scripts/.cache/ as PNG files. After caching, those templates work offline, but searching new templates requires internet access.

Why does meme text look wrong or overflow the image?▼

Text overflow usually happens when captions are too long or the number of text arguments does not match the template's field count. Keep captions under 8-12 words and check the template's field list with --list.