skills/latex-pdf/SKILL.md
Generate high-quality, professionally styled PDF documents and reports using Python-generated LaTeX compiled with Tectonic. Use when the user asks to create a PDF, generate a report, build a PDF document, produce a printable report, or needs a polished multi-page document with tables, color coding, or statistical formatting.
npx skillsauth add razbakov/skills latex-pdfInstall 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 professional PDF documents by writing a Python script that constructs LaTeX source strings and compiles them to PDF using Tectonic. No TeX distribution installation required — Tectonic auto-downloads packages on first use.
.tex filetectonic <file>.tex → produces .pdf in the same directoryThis approach is preferred over HTML-to-PDF or JS-based PDF libraries because LaTeX produces typographically superior output with precise control over layout, tables, math, headers/footers, and page breaks.
When NOT to use LaTeX:
image-from-html skill instead (HTML/CSS slides → Chrome headless → PNG → PDF). HTML gives pixel-perfect brand control that LaTeX can't match.image-from-html for exact brand guideline matching.When to use LaTeX:
brew install tectonic (macOS) or cargo install tectonicimport subprocess
from pathlib import Path
def generate_report(data: dict, output_path: Path):
tex = build_latex(data)
tex_path = output_path.with_suffix(".tex")
tex_path.write_text(tex)
result = subprocess.run(
["tectonic", str(tex_path)],
capture_output=True, text=True,
)
if result.returncode != 0:
raise RuntimeError(f"tectonic failed:\n{result.stderr}")
Always include these in the Python script:
def esc(text: str) -> str:
"""Escape LaTeX special characters."""
for old, new in [
("\\", "\\textbackslash{}"), ("&", "\\&"), ("%", "\\%"),
("$", "\\$"), ("#", "\\#"), ("_", "\\_"),
("{", "\\{"), ("}", "\\}"),
("~", "\\textasciitilde{}"), ("^", "\\textasciicircum{}"),
]:
text = text.replace(old, new)
return text
def pct(v: float, decimals: int = 1) -> str:
"""Format a 0-1 value as a LaTeX percentage."""
return f"{v * 100:.{decimals}f}\\%"
result = subprocess.run(
["tectonic", str(tex_path)],
capture_output=True, text=True,
)
if result.returncode != 0:
print(result.stderr)
sys.exit(1)
Tectonic downloads LaTeX packages automatically on first run. No tlmgr or TeX Live needed. It produces the PDF in the same directory as the .tex file.
development
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.