meme-factory
Generate memes using the memegen.link API. Use when users request memes, want to add humor to content, or need visual aids for social media. Supports 100+ popular templates with custom text and styling.
By softaworks · 3,906 installs
npx skills add softaworks/agent-toolkit --skill meme-factory
Source repository · Upstream listing
Meme Factory
Create memes using the free memegen.link API and textual meme formats.
Triggers
Trigger Description
/meme factory Manual invocation
/meme factory {template} {top} {bottom} Direct meme generation
meme factory: create a meme about X Natural language request
Quick Reference
Action Format
Basic meme https://api.memegen.link/images/{template}/{top}/{bottom}.png
With sizing ?width=1200&height=630
Custom background ?style=https://example.com/image.jpg
All templates https://api.memegen.link/templates/
Interactive docs https://api.memegen.link/docs/
Additional Resources:
[Markdown Memes Guide](references/markdown memes guide.md) 15+ textual meme formats
[Examples](references/examples.md) Practical usage examples
[meme generator.py](scripts/meme generator.py) Python helper script
Quick Start
Basic Meme Structure
Example:
Result: Buzz Lightyear meme with "memes" at top and "memes everywhere" at bottom.
Text Formatting
Character Encoding
Space or
Newline ~n
Question mark ~q
Percent ~p
Slash ~s
Hash ~h
Single quote ''
Double quote ""
Popular Templates
Template Use Case Example
buzz X, X everywhere bugs/bugs everywhere
drake Comparisons manual testing/automated testing
success Victories deployed/no errors
fine Things going wrong server on fire/this is fine
fry Uncertainty not sure if bug/or feature
changemind Hot takes tabs are better than spaces
distracted Priorities my code/new framework/current project
mordor One does not simply one does not simply/deploy on friday
Template Selection Guide
Context Template Why
Comparing options drake Two panel reject/approve format
Celebrating wins success Positive outcome emphasis
Problems ignored fine Ironic "everything is fine"
Uncertainty fry "Not sure if X or Y" format
Controversial opinion changemind Statement + challenge
Ubiquitous things buzz "X, X everywhere"
Bad ideas mordor "One does not simply..."
Validation
After generating a meme:
[ ] URL returns valid image (test in browser)
[ ] Text is readable (not too long)
[ ] Template matches the message context
[ ] Special characters properly encoded
[ ] Dimensions appropriate for platform
Platform Dimensions
Platform Dimensions
Social media (Open Graph) 1200x630
Slack/Discord 800x600
GitHub Default
Anti Patterns
Avoid Why Instead
Spaces without encoding URL breaks Use or
Too much text Unreadable 2 6 words per line
Wrong template Message mismatch Match template to context
Missing extension Invalid URL Always include .png , .jpg , etc.
Unencoded special chars URL breaks Use ~q , ~s , ~p , etc.
Assuming template exists 404 error Check templates list first
Verification
Meme generation is successful when:
1. URL is valid Returns HTTP 200
2. Image renders Displays correctly in markdown
3. Text is visible Properly formatted on image
4. Context matches Template fits the message
Test command:
<details
<summary <strong Deep Dive: Advanced Features</strong </summary
Image Formats
Extension Use Case
.png Best quality, default
.jpg Smaller file size
.webp Modern, good compression
.gif Animated templates
Dimensions
Layout Options
Custom Fonts
View available: https://api.memegen.link/fonts/
Custom Images
Use any image as background:
</details
<details
<summary <strong Deep Dive: Contextual Memes</strong </summary
Code Reviews
Deployments
Documentation
Performance Issues
Successful Deploy
</details
<details
<summary <strong Deep Dive: Workflow Integration</strong </summary
Generating Memes in Response
Dynamic Generation (Python)
Using the Helper Script
</details
<details
<summary <strong Deep Dive: API Reference</strong </summary
Endpoints
Endpoint Purpose
/templates/ List all templates
/templates/{id} Template details
/fonts/ Available fonts
/images/{template}/{top}/{bottom}.{ext} Generate meme
API Characteristics
Free and open source
No API key required
No rate limiting (normal use)
Stateless (all info in URL)
Images generated on demand
Error Handling
1. Check template at https://api.memegen.link/templates/
2. Verify text formatting (underscores for spaces)
3. Check special character encoding
4. Ensure valid extension
5. Test URL in browser
</details
References
Document Content
[markdown memes guide.md](references/markdown memes guide.md) 15+ textual meme formats (greentext, copypasta, ASCII, etc.)
[examples.md](references/examples.md) Practical usage examples
Scripts
Script Purpose
[meme generator.py](scripts/meme generator.py) Python helper for meme generation
Summary
Generate contextual memes to:
Add humor to conversations
Create social media visuals
Make code reviews engaging
Celebrate successes
Golden rule: Keep text concise, match template to context.