Skill metadata
Reference: full SKILL.md
The following is the complete skill definition that Mibyan loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.
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)
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:Procedure
Mode 1: Classic Template (default)
- Read the user’s topic and identify the core dynamic (chaos, dilemma, preference, irony, etc.)
- Pick the template that best matches. Use the “Best for” column, or search with
--search. - Write short captions for each field (8-12 words max per field, shorter is better).
- Find the skill’s script directory:
- Run the generator:
- Return the image with
MEDIA:~/.mibyan/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.- Write the captions first.
- Use
image_generateto 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. - Find the generated image path from the image_generate result URL. Download it to a local path if needed.
- Run the script with
--imageto overlay text, choosing a mode:- Overlay (text directly on image, white with black outline):
- Bars (black bars above/below with white text — cleaner, always readable):
--barswhen the image is busy/detailed and text would be hard to read on top of it. - Overlay (text directly on image, white with black outline):
- Verify with vision (if
vision_analyzeis available): Check the result looks good: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. - Return the image with
MEDIA:~/.mibyan/cache/scratch/meme.png
Examples
“debugging production at 2 AM”:Listing Templates
To see all available templates: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

