All skills
garrytan avatar

/make-pdf

@636175d official
by Garry Tangarrytan/gstack135k stars
20,051

Turn any markdown file into a publication-quality PDF. (gstack)

Use this Skill: https://skilld.dev/gh/garrytan/gstack/make-pdf

This session only. Nothing lands on disk.

testfixtureslandscape-gate.md

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

Landscape Gate

Intro text under the first heading.

Negative: screenshot stays portrait

just a screenshot of the app

Positive: alt-hinted wide image promotes

architecture diagram of the system

Positive: directive forces a small image

small forced{page=landscape}

Positive: wide diagram auto-promotes

sequenceDiagram
  participant A as seqalpha
  participant B as seqbeta
  participant C as seqgamma
  participant D as seqdelta
  participant E as seqepsilon
  participant F as seqzeta
  participant G as seqeta
  participant H as seqtheta
  participant I as seqiota
  participant J as seqkappa
  A->>J: long hop
  B->>I: cross

Negative: directive vetoes a wide diagram

sequenceDiagram
  participant A as vetoalpha
  participant B as vetobeta
  participant C as vetogamma
  participant D as vetodelta
  participant E as vetoepsilon
  participant F as vetozeta
  participant G as vetoeta
  participant H as vetotheta
  participant I as vetoiota
  participant J as vetokappa
  A->>J: long hop

Closing text.

Source: SKILL.md on GitHub

No alerts8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    This skill is a well-engineered tool for converting markdown to publication-quality PDFs. It includes robust security features such as HTML sanitization, blocking of remote image fetches by default to prevent tracking, and protection against unauthorized file access from within markdown files. All external dependencies and scripts are part of the local installation or standard system tools.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: LOW · No issues

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

Last checked against GitHub 17 hours ago.

Activeupdated last week
What it can do
Runs commands Reads files
preamble-tier
1
version
1.0.0
triggers
[
  "markdown to pdf",
  "generate pdf",
  "make pdf",
  "export pdf"
]
All 3 allowed tools
BashReadAskUserQuestion
  • pdf
  • markdown
  • document-generation
  • export
  • typography
  • page-layout

README badge

README badge for garrytan/gstack/make-pdf

Converts markdown files to publication-quality PDFs with proper margins, page breaks, page numbers, table of contents, and styled formatting. Use when asked to export markdown to PDF or generate a finished document.

Generated from the current SKILL.md.

What output formats does this skill support?
This skill converts markdown to PDF only. It does not generate other formats like HTML or DOCX.
Does this skill add features like table of contents or cover pages?
Yes. The skill supports optional flags for cover pages, table of contents, page numbers, running headers, and diagonal watermarks via the `--cover`, `--toc`, and `--watermark` flags.
What happens if the make-pdf binary is not available?
The skill will report `MAKE_PDF_NOT_AVAILABLE` and instruct you to run `./setup` in the gstack repo to build the binary before retrying.
Can I preview the PDF before generating the final output?
Yes. The skill includes a `$P preview <input.md>` command that renders HTML and opens it in your browser for fast iteration.
Does this skill work in plan mode?
Yes. The skill follows plan mode safe operations and treats the skill file as executable instructions; AskUserQuestion calls satisfy plan mode's end-of-turn requirement.

Generated from the current SKILL.md. These answers refresh after source changes.