scenario-text-overlay
БесплатноЗапускает вложенные скриптыНе проверенUse when text must appear letter-perfect on generated media: taglines, CTAs, prices, legal supers, lower thirds, end cards, nameplates, or styled rich cards…
от scenario-labs★ 4 422 звезды на GitHubОб этом скилле
Scenario Text Overlay
Overview
Generation models drift on type, so text that must be exact is rendered deterministically here and
composited over the media. One JSON payload describes one overlay, in one of two kinds: a text layer
(plain styled text in a box) or a rich layer (HTML/CSS typography: gradients, strokes, shadows, card
layouts). Both substitute Mustache {{variables}} strictly (a missing variable fails the render) on
a transparent canvas.
scripts/overlay.py renders the payload to a PNG with an installed
Chromium-family browser (both kinds, discovered automatically) or a Pillow fallback (text layers
only), embeds the payload JSON into the PNG, and prints the path. Its modules:
scripts/templating.py (strict Mustache),
scripts/html_render.py (browser engine),
scripts/pillow_render.py (fallback). The field-by-field contract and
example payloads live in references/payloads.md. The script needs
pip install chevron pillow.
Connection and the core MCP loop: see the scenario skill. The overlay meets its content on the
platform, never locally: model_run on the compose tool models, model_scenario-compose-image for
stills and model_scenario-compose-video for video (fixed ids: each is Scenario's single
deterministic compositor for its medium, so discovery would only re-derive them), whose layer
contract lives in scenario-video-assembly. If a sibling skill named here is missing from your
available skills, load it with skill_get (Scenario MCP) or ask the user to install it
(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag
the gap.
Quick reference
| Step | Detail |
|---|---|
| 1. Write the payload | Kind by field (text_template or html_template); every changeable string in variables |
| 2. Render | python3 overlay.py --payload card.json --out card.png |
| 3. Verify | Open the PNG: glyphs verbatim, box placement right, background transparent |
| 4. Upload | upload_asset (kind image, multipart path) |
| 5. Persist the template | asset_update sets metadata.description to the payload JSON; asset_add_tags adds text-overlay |
| 6. Composite | model_run on model_scenario-compose-image or model_scenario-compose-video, overlay on top |
Choose the face for its meaning
The face is part of the message: heavy condensed sans shouts (hooks, prices, CTAs), light geometric
or grotesque sans reads neutral and premium (legal supers, lower thirds, nameplates), serif signals
editorial or heritage weight, rounded forms read friendly and casual. Match the media's art
direction rather than fighting it, keep one family per card, and build hierarchy with font_weight
(100 to 900) and size instead of mixing faces. font_family reaches any Google Fonts family, so
every class above is available by name; a contractual brand face rides font_url instead. Meaning
survives only above legibility, so judge the flattened preview at destination size, where a subtle
face turns generic.
Worked example: a localized legal super
- Payload, with the changeable line as a variable:
{
"text_template": "{{disclaimer}}",
"variables": [
{
"key": "disclaimer",
"value": "EPA-estimated 310 mi. Actual range varies."
}
],
"font_family": "Inter",
"font_weight": 500,
"size": 34,
"color": "#FFFFFF",
"align": "center",
"bbox": [{ "x": 86, "y": 1560, "w": 908, "h": 120 }],
"canvas_width": 1080,
"canvas_height": 1920,
"overflow": "shrink"
}
python3 overlay.py --payload super.json --out super.png, then opensuper.png: the line must read exactly as written, shrunk to fit the box.- Upload with
upload_asset, thenasset_updatewith the payload JSON asmetadata.descriptionandasset_add_tagswith["text-overlay"](asset_update's ownmetadata.tagsreplaces the whole set): the template now lives on the platform beside its render, and the PNG itself carries it in atEXtchunk. - Composite over the spot:
model_schema_getonmodel_scenario-compose-video, thenmodel_runwith the base video atzIndex0 and the super as an image layer above it (layer fields:scenario-video-assembly);jobs_wait, thenasset_display. - The French variant is the same payload with one
valueedited, never a new template.
Common mistakes
- Baking changeable strings into the template: variants and localizations should be edit
Установить scenario-text-overlay в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scenario-text-overlay?
Use when text must appear letter-perfect on generated media: taglines, CTAs, prices, legal supers, lower thirds, end cards, nameplates, or styled rich cards composited over Scenario images and video. Keywords: text overlay, text card, caption card, CTA, legal super, tagline, end card, lower third, price card, HUD text, transparent PNG.
Как установить скилл scenario-text-overlay?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-text-overlay запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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