/odin-writing:markdown-to-pdffrom ODIN Writing
Renders Markdown files to publication-quality PDFs using a local binary with Paged.js pagination, cover page, TOC, watermarks, and emoji support.
Ships in ODIN Writing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | The user runs /markdown-to-pdf on a Markdown file. |
| Authority | Reversible local: writes only the rendered PDF and intermediate artifacts; rollback is deleting them. No remote mutation. |
| Side effect | Writes the output PDF and intermediate HTML/artifacts to the local filesystem; no remote, VCS, credential, or published mutation. |
| Done | A PDF is produced with the emoji, diagram, landscape, and combined gates green. |
input.md (required): the Markdown source to render.$MAKE_PDF_BIN (required): path to the executable PDF renderer binary.output.pdf (optional): explicit output path; defaults to /tmp/<input-basename>.pdf.--cover, --toc, --watermark <text>, --no-confidential, --no-chapter-breaks, --page-size letter|a4|legal, --margins <dim>, --strict, --allow-network, --to pdf.$P): the only path is $MAKE_PDF_BIN, and it is required. If $MAKE_PDF_BIN is unset or not executable, stop and tell the user to set $MAKE_PDF_BIN to the renderer binary path; do not proceed. Done when: an executable $P is found or the run stops naming the missing $MAKE_PDF_BIN.$P setup to confirm headless Chromium, the browse daemon, and pdftotext are available and a smoke test passes. Check that fonts-liberation (Helvetica/Arial metric-compatible fallback) and a color-emoji font (fonts-noto-color-emoji on Linux, Apple Color Emoji on macOS, Segoe UI Emoji on Windows) are installed. If either font is absent, stop and tell the user which package to install (apt install fonts-liberation fonts-noto-color-emoji on Debian/Ubuntu, or the platform equivalent); do not proceed and do not install fonts yourself. Done when: $P setup passes and both fonts are confirmed present, or the run stops naming the missing component and the install command.$P generate <input.md> [output.pdf]. Add --cover --toc --author "..." --title "..." for publication layout (each top-level H1 starts a new page unless --no-chapter-breaks); add --watermark DRAFT for a diagonal 10%-opacity watermark; add --no-confidential to suppress the default CONFIDENTIAL footer. The renderer uses headless Chromium with Paged.js pagination, 1in margins, Helvetica/Liberation Sans body, curly quotes and em dashes, running header and page numbers. Capture the output path from stdout (one line, the path only). Done when: the output path is captured from stdout.✅ done 🚀 launch) and confirm the emoji render as color glyphs, not empty boxes (▯). The print CSS falls back through Apple Color Emoji, Segoe UI Emoji, and Noto Color Emoji. If emoji render as boxes, the color-emoji font is missing: stop and tell the user to install it (apt install fonts-noto-color-emoji on Debian/Ubuntu, or the platform equivalent), then retry. Do not install fonts yourself. Done when: emoji appear as color glyphs.```mermaid fence (for example a simple flowchart) and confirm it renders as a crisp vector diagram, not raw code. Diagrams render fully offline via a vendored bundle (no CDN). Indented fences (inside lists) stay plain code blocks by design. A broken fence must produce a visible red diagnostic block with the parse error, never silent raw code. Done when: the fence renders as a diagram or a broken fence shows a red diagnostic.{page=landscape} directive, and confirm the diagram gets its own landscape page, vertically centered. {page=portrait} vetoes auto-landscape; {page=landscape} forces it. Done when: the wide diagram occupies a landscape page.--allow-network was passed. Done when: the full document renders as a finished artifact.$MAKE_PDF_BIN is unset or not executable. Stop; tell the user to set $MAKE_PDF_BIN to the renderer binary path, then retry. Do not proceed without the renderer.$P setup reports a missing component (Chromium, browse daemon, or pdftotext). Stop; report the missing component and the setup output. Do not attempt to render.fonts-noto-color-emoji (or the platform equivalent), then retry. Do not claim the gate is green and do not install fonts yourself.{page=landscape} directive and re-render; if it still fails, report the renderer defect.--toc (likely no headings). For blank output, check the browse daemon status. For fragmented copy-paste, remove fenced code blocks and regenerate. Re-run after the fix; do not claim success on a partial render.The rendered PDF at the output path (stdout prints the path, one line) plus a gate report: for each of the four gates (emoji, diagram, landscape, combined), green or red with the evidence used to confirm it. Terminal status: DONE with the PDF path when all four gates are green; BLOCKED with the failed gate and evidence when any gate is red or the renderer is unavailable.
What SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/articulateUse when the user knows what they mean but cannot express it completely or clearly. Not for discovery, ideation, or style-only editing: use unslop for style./brand-authorityUse when the user asks for branded or style-governed output. Not for remote, credential, publish, deploy, or irreversible changes./clean-and-trueUse when the user just edited a durable artifact, or says "clean and true", "run the hygiene pass", or "taste the output". Routes the artifact through the hygiene passes it earned./copywritingUse when asked to write or fix product/marketing copy, landing pages, UI strings, brand voice, AI tells, an end-of-article CTA, or a hook/lede. Not for whole articles: use technical-article-writer./copywriting-tone-of-voice-creatorUse when asked to create, refresh, or port a brand tone of voice guide (TONE.md) or measurable prose style rules (PROSE.md). Not for general copywriting: use copywriting./debloat-respect-richnessUse when a user asks to tighten verbose-but-correct prose without a full rewrite. Cuts in place to load-bearing density, preserving every load-bearing claim.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-writingOther plugins' skills for the same job