meme-gen

meme-gen is a skill for Claude Code, Codex from fuyuxiang/echo-agent. It costs 21 tokens per session (486 once invoked), scanned C, original, MIT.

A command-line meme image maker that adds text to popular templates or a supplied image. It uses Pillow, a Python library for working with images.

In plain words
What is it for?
Use it to create memes from templates such as Drake, Distracted Boyfriend, or This Is Fine, or add top and bottom captions to a local or downloaded image. It also supports Chinese text when suitable fonts are available.
Why use it?
It removes the need to edit a meme manually in an image editor. It can wrap long text and choose a suitable font size for the overlay.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fuyuxiang/echo-agent/meme-gen
Any agent
npx skills add fuyuxiang/echo-agent --skill meme-gen
Clone the repo
git clone --depth 1 https://github.com/fuyuxiang/echo-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for meme-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/meme-gen.svg)](https://agentmods.dev/skills/fuyuxiang/echo-agent/meme-gen)
Your own site
<a href="https://agentmods.dev/skills/fuyuxiang/echo-agent/meme-gen"><img src="https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/meme-gen.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 486 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00486
Opus 5 $0.00010 $0.00243
Sonnet 5 $0.00004 $0.00097
Haiku 4.5 $0.00002 $0.00049

Measured 5d ago against content hash 7627e4e1d79d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

meme-gen scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/make_meme.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

Browse templates: `curl -s "https://api.imgflip.com/get_memes" | python3 -c "import sys,json; [print(f\"{m['id']}: {m['name']}\") for m in json.load(sys.stdin)['data']['memes'][:20]]"`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Browse templates: `curl -s "https://api.imgflip.com/get_memes" | python3 -c "import sys,json; [print(f\"{m['id']}: {m['name']}\") for m in json.load(sys.stdin)['data']['memes'][:20]]"`
skills/creative/meme-gen/SKILL.md · 67 lines

What it actually says

Meme Generator

Create meme images with text overlays.

Install

pip install Pillow httpx

Script

python3 scripts/make_meme.py --template drake --top "写文档" --bottom "写 meme"
python3 scripts/make_meme.py --image url_or_path --top "TOP TEXT" --bottom "BOTTOM TEXT"
python3 scripts/make_meme.py --template distracted --top "新框架" --bottom "当前项目"
Template ID Use
Drake drake Yes/No preference
Distracted Boyfriend distracted Attraction comparison
Change My Mind changemymind Strong opinion
This is Fine thisisfine Chaos acceptance
Two Buttons twobuttons Hard choice

How It Works

  1. Download template image (from imgflip or local cache)
  2. Add text with white fill + black outline stroke
  3. Auto-wrap long text and auto-size font
  4. Save to temp file for channel delivery

Chinese Text Support

Font resolution order:

  1. /System/Library/Fonts/PingFang.ttc (macOS)
  2. /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc (Linux)
  3. Bundled fallback font

Custom Images

# From URL
python3 scripts/make_meme.py --image "https://example.com/photo.jpg" --top "顶部文字"

# From local file
python3 scripts/make_meme.py --image /tmp/photo.png --bottom "底部文字"

Template API

Browse templates: curl -s "https://api.imgflip.com/get_memes" | python3 -c "import sys,json; [print(f\"{m['id']}: {m['name']}\") for m in json.load(sys.stdin)['data']['memes'][:20]]"

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 67 lines · 21 tokens per session scan C 7627e4e1d79d

Subscribe to this mod's changes

meme-gen is a skill published in the GitHub repository fuyuxiang/echo-agent (988 stars, last pushed 5d ago), licensed MIT. It adds 21 tokens to every session and 486 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.