image
БесплатноЗапускает вложенные скриптыНе проверенGenerate a meme by overlaying text on an image. Use when asked to make a meme, caption an image, add meme text, or produce classic Impact macros, TV-subtitle…
от bendrucker★ 18 звёзд на GitHubОб этом скилле
Meme Image
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).
Workflow
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 macro text:
--top/--bottom - TV-subtitle quote (yellow, bottom center):
--subtitle - White bar above or below the image:
--caption(optionally--caption-position top|bottom, default top) - Multi-label formats or custom placement: write a JSON spec file. Read references/spec.md first.
- Top/bottom macro text:
Pick the output filename. It is part of the joke: witty and meme-relevant, kebab or snake case,
.png. Nevermeme.pngor 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>.
Template Library
${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.
- User names a format:
lsthe library and match by filename. With a sidecar, copy it totmp/, 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. - No sidecar (new template): Read the image, trace regions, render, iterate. Once the layout looks right, save it back as a sidecar with
<slot description>placeholders so the next use skips the tracing.
Rendering
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.
Gotchas
- Web search returns template pages, not image files, and meme-site pages are often JS-rendered so the image URL is not in the static HTML. Imgflip: the direct image is
https://i.imgflip.com/<id36>.jpgwhere<id36>is the numeric template ID from the page URL in base36 ((55311130).toString(36)→wxica). Alwaysfilethe download to confirm it is an image before rendering. - Multi-panel formats: set
"linkFontSizes": truein the spec so all panels share one font size instead of each fitting independently. - Images narrower than 400px are auto-upscaled 2x before drawing, so tiny templates still get readable text. Expect output dimensions to differ from the input.
- Spec coordinates and font sizes are normalized (0-1 fractions of image dimensions). Judge placement from the Read image in fractions, not pixels: Read may downscale.
Установить image в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bun ${CLAUDE_SKILL_DIR}/scripts/render.ts:*)Вложенные файлы
FAQ
Что делает скилл image?
Generate a meme by overlaying text on an image. Use when asked to make a meme, caption an image, add meme text, or produce classic Impact macros, TV-subtitle stills, white-bar captions, or multi-label formats (Drake, distracted boyfriend, whiteboard).
Как установить скилл image?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл image запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub