All skills
simota avatar

/launch

@e307415
by shingo imotasimota/agent-skills85 stars
15

Planning releases and reporting delivery work from GitHub PR history. Use when versioning, CHANGELOGs, rollout or rollback plans, engineering metrics, retrospectives, or stakeholder reports are needed.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/launch

This session only. Nothing lands on disk.

referencereport-pdf-export.md

≈853 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PDF Export Guide

Purpose: Use this reference when Launch must turn Markdown or HTML reports into stable PDF output without changing the report content.

Contents

  • Preferred export paths
  • Repo scripts and assets
  • Tool selection
  • Mermaid handling
  • Troubleshooting

Preferred Export Paths

Use this order unless the request explicitly requires another tool:

Priority Path Use when
1 scripts/html-to-pdf.sh You already have HTML output and want the most robust repo-native path
2 node scripts/puppeteer-pdf.js input.html output.pdf You have Node/Puppeteer available and need HTML -> PDF
3 md-to-pdf You only have Markdown and need a fast direct export
4 pandoc You need higher-quality typesetting or LaTeX-based control
5 marp --pdf (Marp CLI) Slide-shaped report from Markdown front-matter (marp.app)
6 ASCII + browser print Mermaid or CSS compatibility is poor and a safe fallback is needed

Pandoc 3.x notes (pandoc.org/releases.html):

  • 3.8.3 added asciidoc, pptx, xlsx as input formats and bbcode as output.
  • 3.9 added WASM-targeted builds for in-browser conversion.
  • --pdf-engine accepts groff, lualatex, xelatex, wkhtmltopdf, weasyprint, typst. For Japanese reports, lualatex or xelatex with system CJK fonts remains the most reliable path; typst is a fast modern alternative when LaTeX is unavailable.

Repo Scripts And Assets

Asset Role
scripts/html-to-pdf.sh A4 HTML -> PDF conversion with method selection and validation
scripts/puppeteer-pdf.js Puppeteer fallback for HTML -> PDF
styles/report-style.css Report styling for PDF-friendly layout
templates/client-report.html HTML shell for client reports

Tool Selection

HTML -> PDF

./scripts/html-to-pdf.sh client-report-YYYY-MM-DD.html
./scripts/html-to-pdf.sh --method chrome client-report-YYYY-MM-DD.html output.pdf

Notes:

  • Default timeout is 60s.
  • Supported methods: chrome, wkhtmltopdf, puppeteer.
  • The script checks the PDF header and end-of-file marker, then publishes the result atomically. Small valid PDFs are allowed; these envelope checks do not replace a full PDF parser.

Direct Markdown -> PDF

md-to-pdf client-report-YYYY-MM-DD.md --stylesheet styles/report-style.css

Pandoc

pandoc client-report-YYYY-MM-DD.md -o report.pdf \
  --pdf-engine=lualatex \
  -V geometry:margin=20mm

Mermaid Handling

Use one of these strategies:

Strategy Use when
Native rendering md-to-pdf or browser-based export can execute Mermaid safely
Pre-render to SVG You need deterministic PDF output
ASCII fallback Rendering is unstable or PDF portability matters more than visual richness

ASCII fallback is the safest default for client-facing PDF reports.

Troubleshooting

Problem Action
Japanese text is garbled Use system Japanese fonts and the repo stylesheet
Mermaid does not render Pre-render diagrams or switch to ASCII
PDF header or end-of-file marker is missing Treat as failed export and retry with another method
Output is not a valid PDF Fail the export; do not claim success
CSS layout breaks across pages Prefer HTML template + stylesheet + Chrome/Puppeteer path

Source: SKILL.md on GitHub

2 warnings13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is primarily focused on release reporting and orchestration. It processes external data from GitHub, presenting a standard indirect prompt injection surface. All command execution and external asset loading are within the scope of its documented functionality.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    2/8 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/launch