Back to Creative & Visual

meme-factory

memehumorvisual contentsocial mediaapicontent creationentertainmentagent skill
2.0k📄 MIT🕒 2026-03-05Source ↗

Install this skill

npx skills add softaworks/agent-toolkit

Works across Claude Code, Cursor, Codex, Copilot & Antigravity

The meme-factory skill provides an automated interface to the memegen.link API, allowing developers and communicators to generate visual memes directly within their workflow. Instead of using external image editors, users can supply a template name and text strings to produce custom image URLs. The skill manages the necessary URL encoding for special characters, such as newlines, punctuation, and spaces, which are required for the API to render correctly. It supports custom styling, such as adjusting image dimensions, selecting alternative fonts, or providing a custom background URL. This tool is particularly effective for injecting humor into code reviews, deployment announcements, or project documentation, ensuring that visual assets remain lightweight and programmatically reproducible through standard markdown or direct HTTP requests.

When to Use This Skill

  • Adding visual humor to pull request comments
  • Creating quick status updates for team Slack channels
  • Generating context-specific banners for technical documentation
  • Highlighting deployment successes or infrastructure errors

How to Invoke This Skill

Example prompts that trigger this skill in Claude Code, Cursor, or Antigravity:

  • Generate a meme about a merge conflict
  • Create a meme using the buzz template
  • Make a meme saying it works on my machine
  • Meme factory: distracted boyfriend template
  • Build a success meme for the new release

Pro Tips

  • 💡Explore the `memegen.link/templates` directory regularly to discover new popular meme formats and keep your content fresh.
  • 💡Utilize the `?width` and `?height` parameters for optimal image dimensions, especially when embedding memes in specific platforms.
  • 💡Combine meme generation with other content creation skills for a multi-modal output, like generating text and then a relevant meme to accompany it.

What this skill does

  • Generates dynamic meme images via parameterized URLs
  • Encodes complex text strings for browser-safe rendering
  • Applies custom resizing and layout configurations
  • Supports integration of external images as custom backgrounds
  • Queries live meme templates from the memegen registry

When not to use it

  • When you need high-resolution, pixel-perfect design work
  • If your content requires non-standard fonts or complex image masking
  • Where memes are considered unprofessional for the target audience

Example workflow

  1. Identify a suitable template using the meme-factory catalog
  2. Compose the top and bottom text strings
  3. Apply required character encoding for spaces and symbols
  4. Construct the API request URL with chosen dimensions
  5. Insert the final URL into a markdown image block

Prerequisites

  • Active internet connection for API requests
  • Knowledge of basic URL formatting

Pitfalls & limitations

  • !Failing to encode special characters leads to broken image links
  • !Exceeding text length limits often results in unreadable output
  • !Assuming a template exists without verifying the API catalog

FAQ

How do I add a line break in my meme text?
Use the ~n character sequence to signal a newline to the rendering engine.
Can I use my own image as a background?
Yes, append the style parameter to your URL with your image source: ?style=https://yourimage.com/img.jpg.
Why is my image not loading?
Check your URL for unencoded characters like spaces or question marks, and ensure your template name is valid.
How do I change the size of the generated meme?
Include the width and height query parameters, such as ?width=800&height=600, at the end of the URL.

How it compares

Unlike manual editing, this skill automates URL construction for instant generation, ensuring consistent formatting and platform-ready dimensions without local software dependencies.

Source & trust

2.0k stars📄 MIT🕒 Updated 2026-03-05
📄 Full skill instructions — original source: softaworks/agent-toolkit
# 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

https://api.memegen.link/images/{template}/{top_text}/{bottom_text}.{extension}


**Example:**
https://api.memegen.link/images/buzz/memes/memes_everywhere.png


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:**
curl -I "https://api.memegen.link/images/buzz/test/test.png"
# Should return: HTTP/2 200


---

<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

?width=800
?height=600
?width=800&height=600 (padded to exact)


### Layout Options

?layout=top     # Text at top only
?layout=bottom # Text at bottom only
?layout=default # Standard top/bottom


### Custom Fonts

View available: https://api.memegen.link/fonts/

?font=impact  (default)


### Custom Images

Use any image as background:

https://api.memegen.link/images/custom/hello/world.png?style=https://example.com/image.jpg


</details>

<details>
<summary><strong>Deep Dive: Contextual Memes</strong></summary>

### Code Reviews

Template: fry
https://api.memegen.link/images/fry/not_sure_if_feature/or_bug.png


### Deployments

Template: interesting
https://api.memegen.link/images/interesting/i_dont_always_test/but_when_i_do_i_do_it_in_production.png


### Documentation

Template: yodawg
https://api.memegen.link/images/yodawg/yo_dawg_i_heard_you_like_docs/so_i_documented_the_documentation.png


### Performance Issues

Template: fine
https://api.memegen.link/images/fine/memory_usage_at_99~/this_is_fine.png


### Successful Deploy

Template: success
https://api.memegen.link/images/success/deployed_to_production/zero_downtime.png


</details>

<details>
<summary><strong>Deep Dive: Workflow Integration</strong></summary>

### Generating Memes in Response

Here's a relevant meme:

![Meme](https://api.memegen.link/images/buzz/bugs/bugs_everywhere.png)


### Dynamic Generation (Python)

def generate_status_meme(status: str, message: str):
template_map = {
"success": "success",
"failure": "fine",
"review": "fry",
"deploy": "interesting"
}

template = template_map.get(status, "buzz")
words = message.split()
top = "_".join(words[0:3])
bottom = "_".join(words[3:6])

return f"https://api.memegen.link/images/{template}/{top}/{bottom}.png"


### Using the Helper Script

from meme_generator import MemeGenerator

meme = MemeGenerator()
url = meme.generate("buzz", "features", "features everywhere")
print(url)


</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.

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/meme-factory/
  3. Save the file as SKILL.md
  4. The agent will automatically discover the skill based on its description.

Option B: Global Installation (All Agents)

Save the file to these locations to make it available across all projects:

  • Claude Code: ~/.claude/skills/softaworks/agent-toolkit/meme-factory/SKILL.md
  • Cursor: ~/.cursor/skills/softaworks/agent-toolkit/meme-factory/SKILL.md
  • Antigravity: ~/.gemini/antigravity/skills/softaworks/agent-toolkit/meme-factory/SKILL.md

🚀 Install with CLI:
npx skills add softaworks/agent-toolkit

Read the Master Guide: Mastering Agent Skills

Recommended Rules

View more rules

Recommended Workflows

View more workflows

Recommended MCP Servers

View more MCP servers

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid creative & visual issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under Creative & Visual and is published by Softaworks, maintained in softaworks/agent-toolkit.

← Browse All Agent Skills
Sponsored AI assistant. Recommendations may be paid.