Skip to content
Meme Factory

Meme Factory Skill

Lets a coding agent make memes as image links from the free memegen.link API, with 100+ templates, URL text encoding rules and text-only meme formats for chat and docs.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from softaworks/agent-toolkit.

$ npx skills add softaworks/agent-toolkit --skill meme-factory

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/meme-factory/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/softaworks/agent-toolkit.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/meme-factory ~/.claude/skills/meme-factory

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/meme-factory/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Builds meme image URLs for the free memegen.link API, no API key needed
  • 100+ templates, with a guide to which template fits which message
  • Escape rules for spaces, newlines and special characters in meme text
  • Size, layout, font, format (PNG, JPG, WebP, GIF) and custom background options
  • Platform sizes for Open Graph, Slack and Discord
  • Text-only meme formats for places where images do not render
  • Validation checklist and anti-patterns

Meme Factory is an agent skill from Softaworks' agent-toolkit collection that teaches an assistant to produce memes on request without any image model or API key. Instead of generating pixels, the agent builds a URL for the free memegen.link service (https://api.memegen.link/images/{template}/{top}/{bottom}.png), which renders the meme on the fly, so the result can be dropped straight into Markdown, a Slack or Discord message, a pull request comment or a slide.

The skill carries the details an agent usually gets wrong: the escape codes memegen expects for spaces, newlines, question marks, slashes and quotes; a short list of popular templates (drake, buzz, this-is-fine, fry, change-my-mind, distracted boyfriend, one-does-not-simply) with a guide to which one suits a comparison, a win, an ignored problem or a hot take; and query options for size (for example 1200x630 for Open Graph cards), layout, font, output format (PNG, JPG, WebP, animated GIF) and a custom background image. It also lists anti-patterns such as too much text or an unencoded character, and a validation step that checks the image URL returns HTTP 200. Reference files add more than 15 text-only meme formats for places where images do not render, worked examples, and a small Python helper script.

Use it to lighten release notes, team updates, social posts or presentations, or whenever a user asks for a meme. It needs network access to api.memegen.link and nothing else. MIT-licensed.

Try it

Once installed, ask your agent something like:

Make a drake meme about manual testing versus automated testing for our release notes.

SKILL.md

The instructions your agent loads, as published by Softaworks.

SKILL.md
name
meme-factory
description
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.

Meme Factory

Create memes using the free memegen.link API and textual meme formats.

---

Triggers
TriggerDescription
/meme-factoryManual invocation
/meme-factory {template} {top} {bottom}Direct meme generation
meme-factory: create a meme about XNatural language request

---

Quick Reference
ActionFormat
Basic memehttps://api.memegen.link/images/{template}/{top}/{bottom}.png
With sizing?width=1200&height=630
Custom background?style=https://example.com/image.jpg
All templateshttps://api.memegen.link/templates/
Interactive docshttps://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
CharacterEncoding
Space_ or -
Newline~n
Question mark~q
Percent~p
Slash~s
Hash~h
Single quote''
Double quote""

---

TemplateUse CaseExample
buzzX, X everywherebugs/bugs_everywhere
drakeComparisonsmanual_testing/automated_testing
successVictoriesdeployed/no_errors
fineThings going wrongserver_on_fire/this_is_fine
fryUncertaintynot_sure_if_bug/or_feature
changemindHot takestabs_are_better_than_spaces
distractedPrioritiesmy_code/new_framework/current_project
mordorOne does not simplyone_does_not_simply/deploy_on_friday

---

Template Selection Guide
ContextTemplateWhy
Comparing optionsdrakeTwo-panel reject/approve format
Celebrating winssuccessPositive outcome emphasis
Problems ignoredfineIronic "everything is fine"
Uncertaintyfry"Not sure if X or Y" format
Controversial opinionchangemindStatement + challenge
Ubiquitous thingsbuzz"X, X everywhere"
Bad ideasmordor"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
PlatformDimensions
Social media (Open Graph)1200x630
Slack/Discord800x600
GitHubDefault

---

Anti-Patterns
AvoidWhyInstead
Spaces without encodingURL breaksUse _ or -
Too much textUnreadable2-6 words per line
Wrong templateMessage mismatchMatch template to context
Missing extensionInvalid URLAlways include .png, .jpg, etc.
Unencoded special charsURL breaksUse ~q, ~s, ~p, etc.
Assuming template exists404 errorCheck 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
ExtensionUse Case
.pngBest quality, default
.jpgSmaller file size
.webpModern, good compression
.gifAnimated 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
EndpointPurpose
/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
DocumentContent
[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
ScriptPurpose
[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.

Install

Replicate's official skill for running models via its API — predictions, polling, Prefer: wait, webhooks with signature validation, streaming and file handling.

Browse all skills →