agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/make-pdf/SKILL.md

make-pdf

Skill4 starsChanged 4 months agoMITView on GitHub

Convert markdown or brain pages into a polished PDF using available local document tooling.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to turn markdown, a report, or a brain page into a PDF.

    line 8
  2. Distinctive:

    Check whether it is a brain page with YAML frontmatter.

    line 13
  3. Distinctive:

    Verify the output file exists and report the path.

    line 18
  4. Distinctive:

    Use preview output for fast iteration and a strict CI mode when the caller needs missing assets or rendering failures to stop the run.

    line 26
  5. Distinctive:

    Keep confidentiality footers and draft watermarks opt-in and driven by the source's status.

    line 27
  6. Distinctive:

    Do not mutate the source markdown to make the PDF.

    line 31
  7. Distinctive:

    Do not invent a PDF path if rendering failed.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Make PDF

Use this skill when the user asks to turn markdown, a report, or a brain page into a PDF.

Workflow

  1. Identify the source markdown file.
  2. Check whether it is a brain page with YAML frontmatter; if so, preserve the source and strip frontmatter only for rendering.
  3. Choose the best available renderer:
    • upstream gstack make-pdf if installed
    • Pandoc, browser print, or repo-local tooling if available
  4. Render with readable margins, page numbers, links, and a table of contents when appropriate.
  5. Verify the output file exists and report the path.

Current Upstream Coverage

  • Support memo/letter and publication layouts, including cover pages, tables of contents, and chapter breaks when appropriate.
  • Render Mermaid or Excalidraw source as diagrams when the available renderer supports it.
  • Scale images without truncation and fail clearly when required assets are missing.
  • Support Markdown, single-file HTML, and Word inputs when the installed document runtime can convert them faithfully.
  • Use preview output for fast iteration and a strict CI mode when the caller needs missing assets or rendering failures to stop the run.
  • Keep confidentiality footers and draft watermarks opt-in and driven by the source's status.

Guardrails

  • Do not mutate the source markdown to make the PDF.
  • Do not invent a PDF path if rendering failed.
  • Mark drafts clearly when the source is draft content.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.