skills/image-from-latex/SKILL.md
Generate images from LaTeX/TikZ compiled with Tectonic and converted to PNG via ImageMagick. Use when the user wants vector-quality graphics, thumbnails, diagrams, or visual assets with precise typography and geometric elements from code.
npx skillsauth add razbakov/skills image-from-latexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate high-quality images from LaTeX/TikZ source, compiled to PDF with Tectonic and rasterized to PNG with ImageMagick.
tectonic: brew install tectonic (auto-downloads LaTeX packages)magick (ImageMagick): brew install imagemagickpython3 (standard library only)import subprocess
from pathlib import Path
PREAMBLE = r"""
\documentclass[tikz,border=0pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{calc,positioning,fadings}
\usepackage{xcolor}
\begin{document}
"""
POST = r"\end{document}"
F = r"\sffamily\bfseries" # bold sans-serif shorthand
def compile_tex(tex_content, name, out_dir):
p = Path(out_dir) / f"{name}.tex"
p.write_text(tex_content)
r = subprocess.run(["tectonic", str(p)], capture_output=True, text=True)
if r.returncode != 0:
print(f"FAIL {name}: {r.stderr[:500]}")
return False
print(f"OK {name}")
return True
# 16:9 landscape (1280x720)
magick -density 300 output.pdf -resize 1280x720! -quality 95 output.png
# 9:16 vertical (1080x1920)
magick -density 300 output.pdf -resize 1080x1920! -quality 95 output.png
# A4 print (300 DPI)
magick -density 300 output.pdf -quality 95 output.png
Use the Read tool on the generated PNG to show it inline.
def st(x, y, text, size, color, anchor="west", sop=0.5, ox=0.12, oy=-0.12):
fs = rf"{F}\fontsize{{{size}}}{{{size+2}}}\selectfont"
return (
rf" \node[anchor={anchor}, font={fs}, text=black, opacity={sop}] at ({x+ox},{y+oy}) {{{text}}};" "\n"
rf" \node[anchor={anchor}, font={fs}, text={color}] at ({x},{y}) {{{text}}};"
)
def stc(x, y, text, size, color, sop=0.5, ox=0.08, oy=-0.08):
return st(x, y, text, size, color, anchor="center", sop=sop, ox=ox, oy=oy)
def esc(text):
for old, new in [
("\\", "\\textbackslash{}"), ("&", "\\&"), ("%", "\\%"),
("$", "\\$"), ("#", "\\#"), ("_", "\\_"),
("{", "\\{"), ("}", "\\}"),
("~", "\\textasciitilde{}"), ("^", "\\textasciicircum{}"),
]:
text = text.replace(old, new)
return text
| Format | Width (cm) | Height (cm) | PNG size | | ------------------- | ---------- | ------------ | ----------- | | 16:9 landscape | 25.6 | 14.4 | 1280x720 | | 9:16 vertical | 10.8 | 19.2 | 1080x1920 |
\usepackage{lmodern} for large font sizes\sffamily\bfseries for bold sans-serif\shade[top color=X, bottom color=Y]\fill[black, opacity=0.12] triangle in a corner\fill rectangle (0.15cm) below title% as \% and $ as \$ in text nodesdevelopment
Seed a new or empty Instagram account with a 9-post grid (3×3) so the profile looks established the moment a new visitor lands. Designed for festivals, new businesses, product launches, conferences, communities — any time an empty IG profile would hurt conversion from external traffic (QR scans, flyer drops, cross-promo). Generates assets via /image-from-gemini (per content-publishing rules — never HTML), writes captions with hashtag sets, and outputs a posting order + cadence plan. Trigger generously: phrases like '9 posts for instagram', 'fill my IG', 'starter grid', 'launch grid', 'instagram seed', '9-post grid', 'IG account not to look empty', 'first instagram posts', 'feed bootstrap', '3x3 grid', 'instagram launch content'. Even if the user mentions only one piece (just the images, just the captions, just the order), use this skill — the grid only works as an integrated bundle.
testing
Translate one English blog post into multiple target languages via parallel sub-agents, preserving frontmatter conventions, hero image, and brand voice. Use when the user shares a published English post URL or markdown path and says 'translate it', 'add other languages', 'publish in DE/ES/RU/UK', 'translate to 5 languages', or asks for localized versions of a specific post.
development
Build a complete press kit for an event, product launch, or campaign — in multiple languages — and publish it as a shareable Google Drive folder ready to send to journalists, partners, or a delegate. Produces press releases (typically DE/EN/ES, or configurable), uploads press photos and flyers, creates an Overview document for at-a-glance briefing, and creates a Handover document with pending tasks, contacts, risks, and decisions so press distribution can be delegated. Use when the user says 'I need a press release', 'create a press kit', 'press release in X languages', 'set up a Drive folder for press', 'handover doc for someone else to run press', or has an upcoming announcement that needs to be sent to media. Trigger generously: even partial requests (just a press release, just a flyer folder) typically evolve into the full kit.
development
Track ticket sales for a live event (concert, festival, conference, workshop) with daily snapshots, generate a burndown chart comparing actual sales to ideal-linear targets and tier-cumulative milestones, and report whether the event is on pace. Use when the user asks how sales are going, wants to know if their event will sell out, asks for a daily sales report, wants to set up sales tracking for an upcoming event, or asks about ticket pace / velocity / projection. Trigger generously: phrases like 'how is concert sales going', 'burndown for my event', 'are we going to sell out', 'sales velocity', 'daily ticket chart', 'how many tickets do we need to sell', or any case where the user has a ticketed event with a fixed sales window and wants visibility on pacing.