/meme:image [image-path] [meme text or idea]from meme
Overlays meme text on images with classic Impact macros, TV subtitles, white-bar captions, and multi-label formats like Drake or distracted boyfriend. Resolves images, reads layout, and iterates until legible.
Ships in meme. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Overlay meme text on an image with a deterministic renderer. You judge layout, placement, and legibility; the script guarantees the classic look (Impact stroke, subtitle yellow, caption bars).
Resolve the image. Use the user's path directly. If they name a meme format instead of a path, check the template library first (below). Otherwise WebSearch for the image and download with curl -L -o tmp/<name>.jpg <url>. Never pass a URL to the renderer.
Read the image. Note the subjects, where faces and action are, contrast, and aspect ratio.
Choose a mode:
--top / --bottom--subtitle--caption (optionally --caption-position top|bottom, default top)Pick the output filename. It is part of the joke: witty and meme-relevant, kebab or snake case, .png. Never meme.png or another generic name. If the user supplies a filename, use theirs.
Render, then Read the output PNG. Check legibility, that text does not cover key subjects, line-break placement, and any fit warnings on stderr. Adjust and re-render until it reads well.
Deliver: copy the file reference to the clipboard so a paste keeps the filename:
osascript -e 'set the clipboard to POSIX file "<absolute output path>"'
Report the path. If the clipboard copy is declined or fails, reveal the file instead: open -R <path>.
${CLAUDE_PLUGIN_DATA}/templates/ holds the user's meme templates, synced outside git. Never copy its images into the repo. Each image may have a sidecar spec of the same basename (drake.jpg + drake.json): a ready-made layout whose text values are <slot descriptions> and whose description says how the format works.
ls the library and match by filename. With a sidecar, copy it to tmp/, replace each slot with the actual joke, and render with --spec. Panel counts matter: fill every slot the joke needs and drop boxes the format leaves empty.<slot description> placeholders so the next use skips the tracing.bun ${CLAUDE_SKILL_DIR}/scripts/render.ts <image> [flags] -o tmp/<joke-name>.png
| Flag | Meaning |
|---|---|
--top, --bottom | Classic Impact macro text |
--subtitle | TV-subtitle text at the bottom |
--caption | White-bar caption (expands the canvas); --caption-position top|bottom |
--spec, -s | JSON layout spec file (mutually exclusive with the text flags) |
--out, -o | Output PNG path (always required) |
On success the script prints the absolute output path. Fit problems are warnings, not errors: the text still renders at the shrink floor. Treat every warning as a cue to shorten text or enlarge its region.
https://i.imgflip.com/<id36>.jpg where <id36> is the numeric template ID from the page URL in base36 ((55311130).toString(36) → wxica). Always file the download to confirm it is an image before rendering."linkFontSizes": true in the spec so all panels share one font size instead of each fitting independently.references/spec.md (opens in a new tab)scripts/__snapshots__/spec.test.ts.snap (opens in a new tab)scripts/layout.test.ts (opens in a new tab)scripts/layout.ts (opens in a new tab)scripts/presets.ts (opens in a new tab)scripts/render.test.ts (opens in a new tab)scripts/render.ts (opens in a new tab)scripts/setup.ts (opens in a new tab)scripts/spec.test.ts (opens in a new tab)scripts/spec.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Bash(bun ${CLAUDE_SKILL_DIR}/scripts/render.ts:*)bun ${CLAUDE_PLUGIN_ROOT}/skills/image/scripts/setup.tsThree short reads, in order
meme-generator, image-captioning, meme-templates, impact-font
npx claudepluginhub bendrucker/claude --plugin memeOther plugins' skills for the same job