instagram-tweet-carousel
БесплатноБез исполняемых скриптовНе проверенCreates high-quality Instagram carousels in an X (Twitter) post visual format, delivered as swipeable HTML previews with export-ready slides (1080×1350px…
от marcolang★ 73 звезды на GitHubОб этом скилле
Instagram Tweet-style Carousel Generator (X / Twitter Layout)
Generates fully self-contained, swipeable HTML carousels where every slide mimics an authentic X (Twitter) post — designed to be exported as individual 1080×1350px PNGs for Instagram.
Working Directory Rules
All file operations MUST use the current working directory (cwd) as the base. Never use hardcoded absolute paths like C:\Users\marco\.
- Detect cwd at the start of every session using
pwdoros.getcwd() - Save all generated files (HTML, PNGs) relative to cwd
- The
ASSETS/folder is always{cwd}/ASSETS/ - The
.claude/launch.jsonis always{cwd}/.claude/launch.json - The export output folder is always
{cwd}/slides/ - Never scan directories outside of cwd for project files or images
Step 0 — Ask Background Preference First
Before collecting any other details, always ask:
"Você prefere o fundo claro (branco, estilo X padrão) ou escuro (preto, estilo X dark mode)?"
This choice determines the entire color system and font colors. Do not proceed until the user answers.
Step 1: Collect Brand Details
After background preference is confirmed, ask for:
- Display name — shown in the post header (e.g., "Marco Lang")
- X handle — shown below the name (e.g., @marcolang)
- Verified badge — blue checkmark yes/no (default: yes)
- Profile photo — before asking the user anything about the photo, search in this order:
{cwd}/assets/— check the project folder first (case-insensitive:assets/orASSETS/)- Skill folder
assets/— if not found above, check the skill's own assets folder at~/.claude/skills/instagram-carousel-tweet/assets/
- Use the Glob tool or
lsto list files in each location - If an image file is found (JPG, PNG, WEBP) in either location, use it automatically and tell the user which file was picked — do not ask
- Only ask the user to provide a photo if no image is found in either location
- Content / topic — what the carousel is about
- Idioma dos slides — default: Português (BR) unless specified otherwise
- Number of slides — default: 7
If the user provides a website URL or brand assets, derive name and handle from those.
If the user says "make me a carousel about X" without brand details, ask before generating. Don't assume defaults.
Handling User-Provided Images
This section applies from the very first HTML generation — not only during export.
The profile photo will be located inside the ASSETS/ folder in the working directory. Always:
- Find the file in
ASSETS/(e.g.,ASSETS/foto.jpg,ASSETS/profile.png) - Check the actual file format with the
filecommand — extension may lie - Embed as base64
data:URI — never use relative paths
⚠️ Critical Rules
- NEVER use relative paths (
ASSETS/foto.jpg) — they break in every browser context except the exact folder the HTML lives in. - NEVER use
background: url(filepath)— leads to 1.5MB+ base64 inline strings that crash the browser parser. - ALWAYS embed as base64
data:URI — works in preview, export, and any environment. - ALWAYS generate the HTML via Python (
Path.write_text()) — shell heredocs interpolate$and backticks, corrupting base64 strings.
Step-by-step: embed the profile photo
# 1. Check the actual file format (extension may lie)
file ASSETS/profile.jpg
import base64
from pathlib import Path
# 2. Read and encode
img_path = Path("ASSETS/profile.jpg") # adjust filename
# Use "image/jpeg" if `file` command says JPEG, else "image/png"
mime = "image/jpeg" # or "image/png"
b64 = base64.b64encode(img_path.read_bytes()).decode()
avatar_uri = f"data:{mime};base64,{b64}"
# 3. Inject into HTML template as a Python variable — never via shell
html = f"""...<img src="{avatar_uri}" style="width:100%;height:100%;object-fit:cover;">..."""
Path("carousel.html").write_text(html, encoding="utf-8")
Common image mistakes to avoid
| Mistake | What goes wrong | Fix |
|---|---|---|
<img src="ASSETS/foto.jpg"> |
Broken image in browser | Always use base64 data: URI |
background: url('data:...') inline with 1.5MB base64 |
Browser parser crash | Use <img> tag with object-fit:cover |
| Generating HTML via shell heredoc | $ and backtick chars corrupt base64 |
Always use Python Path.write_text() |
Assuming .png extension = PNG |
Wrong MIME type breaks rendering | Run file command first |
Step 2: Color System
Two modes only — no gradients, no brand-derived palettes. The X aesthetic is deliberately minimal.
Light Mode (fundo claro)
SLIDE_BG = #FFFFFF // Slide background
TEXT_PRIMARY = #0F1419 // Display name, tweet body text
TEXT_MUTED = #536471 // Handle, timestamps, muted labels
DIVIDER = #EFF3F4 // Separator lines, borders
ICON_COLOR = #53647
Установить instagram-tweet-carousel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл instagram-tweet-carousel?
Creates high-quality Instagram carousels in an X (Twitter) post visual format, delivered as swipeable HTML previews with export-ready slides (1080×1350px PNG). Handles the full workflow: brand setup, slide copy, X-style visual design (profile header, clean background, X engagement bar), HTML generation, and Playwright-based export. Use this skill whenever the user asks to create, design, or generate an Instagram carousel in tweet-style or X-style format (e.g., "tweet-style carousel", "X-style carousel", "carrossel estilo tweet", "carrossel estilo X"), including requests for carrossel, Instagram slides, or any multi-image Instagram post — even if they don't explicitly mention "carousel" or "skill". Also trigger for requests like "create a post with multiple slides", "make a tweet-style/X-style carousel", or "export slides for Instagram" in this format.
Как установить скилл instagram-tweet-carousel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл instagram-tweet-carousel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic