markdown-pdf-pipeline
Skill0 starsChanged 19 days agoMITView on GitHub
Use when rendering a tutorial or report PDF from Markdown.
- Installs packages
In this repository86 other files it gives its agents.
- ai-assistant-editor-setupSkill
- api-and-interface-designSkill
- banner-designSkill
- brainstormingSkill
- caveman-exploreSkill
- caveman-reviewSkill
- chat-silence-diagnosisSkill
- ci-cd-and-automationSkill
- code-auditSkill
- codebase-designSkill
- koordinator-team-dispatchSkill
- constraint-driven-developmentSkill
- context-engineeringSkill
- cpanel-shared-hosting-deploySkill
- cross-profile-cron-opsSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- domain-modelingSkill
- doubt-driven-developmentSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- git-workflow-and-versioningSkill
- graphic-design-laneSkill
- hermes-gateway-web-uiSkill
- hermes-profile-hygieneSkill
- hermes-profile-provisioningSkill
- hermes-service-persistenceSkill
- hermes-stream-stale-diagnosisSkill
- hermes-team-dashboardSkill
- idea-refineSkill
- incremental-implementationSkill
- indonesian-official-lettersSkill
- internal-commsSkill
- interview-meSkill
- investigate-firstSkill
- kanban-rate-limit-resilienceSkill
- karpathy-guidelinesSkill
- large-project-gated-deliverySkill
- lean-buildSkill
- live-agent-office-operationsSkill
- live-react-runtime-qaSkill
- live-web-release-verificationSkill
- marketing-strategySkill
- meta-social-publishingSkill
- meta-threads-oauth-lifecycleSkill
- migrationSkill
- multi-profile-project-orchestrationSkill
- network-operationsSkill
- observability-and-instrumentationSkill
- office-skill-distributionSkill
- organization-site-menu-researchSkill
- performance-optimizationSkill
- php-upload-size-limitsSkill
- planning-and-task-breakdownSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-reviewSkill
- ponytailSkill
- portable-app-handoffSkill
- receiving-code-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
When the owner asks for a PDF document (tutorial, installation guide, report), render a prose-quality PDF from Markdown via pandoc+xelatex …
- Distinctive: line 22
Use when the user asks for a tutorial, installation guide, report, or any multi-page prose deliverable as a PDF — e.g.
- Distinctive: line 35
Keep commands short enough to fit an A4 line (see Pitfalls).
- Very specific: line 70
--tocgenerates its own TOC: If the Markdown also has a handwritten "Daftar Isi" section, the PDF ships TWO tables of contents — delete … - Distinctive: line 81
Read the source README's honest caveats into the guide: If the package's own docs warn that a feature is metadata-only or untested, the …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Markdown → Polished PDF Pipeline
When the owner asks for a PDF document (tutorial, installation guide, report),
render a prose-quality PDF from Markdown via pandoc+xelatex and QA it visually.
Library-level PDF operations (forms, merge, OCR) belong to the pdf skill;
this skill is the render-and-QA loop for multi-page prose documents.
When to Use
Use when the user asks for a tutorial, installation guide, report, or any
multi-page prose deliverable as a PDF — e.g. "buatkan tutorial PDF" or
"dokumentasi dalam PDF". Not for form fill/merge/OCR/encrypt (those go to the
pdf skill) and not for spec-driven one-shot stubs unless layout polish is
requested.
Procedure
- Read the source of truth first. Pull content from the project's real
docs (README, spec, brief) — never write an installation guide from memory.
read_filethe whole README before drafting. - Draft Markdown into the scratch dir. Structure: title block → numbered sections → tables for config/mappings → fenced blocks for commands. Keep commands short enough to fit an A4 line (see Pitfalls).
- Render (tools present on this host: pandoc, xelatex, lmodern,
poppler-utils):
pandoc doc.md -o out.pdf --pdf-engine=xelatex \ -V geometry:a4paper,margin=2.2cm \ -V mainfont='DejaVu Sans' -V monofont='DejaVu Sans Mono' \ -V fontsize=11pt -V colorlinks=true -V linkcolor=NavyBlue \ --toc --toc-depth=2 -V toc-title='Daftar Isi' \ -V classoption=oneside \ -V header-includes='\usepackage{fancyhdr}\pagestyle{fancy}\fancyhead[L]{<judul singkat>}\fancyhead[R]{\thepage}\fancyfoot{}' \ --metadata title='...' --metadata author='...' - Verify structurally:
pdfinfo out.pdf(Pages > 0, A4) andpdftotext out.pdf - | head(content present, no mojibake). - Verify VISUALLY — mandatory:
pdftoppm -png -r 90 -f 1 -l 1 out.pdf p1(plus 1-2 interior pages incl. any wide table/code page), thenvision_analyzeeach PNG asking specifically about: text running off the right margin, duplicate TOCs, overlapping tables, garbled glyphs, and raw Markdown markers (e.g.**bold**) visibly leaking into the PDF. Asterisks inside expressions such asCOUNT(*)can break Markdown bold parsing; rewrite as plain wording or code spans. Fix source, re-render, re-check — iterate until clean. Text extraction cannot show overflow, so step 4 does not substitute for this. - Deliver the finished document as
MEDIA:<abs path>(never a file:/// link) when the user asks for an attachment; include a concise conclusion and material caveats in chat, but avoid duplicating the entire report in the message. Only report that the PDF was created after checking file existence, page count, A4 size, extracted text, and visual legibility.
Pitfalls
--toc-titledoes not exist in this pandoc — it aborts with exit 6 ("Unknown option"). Title the TOC with the variable form-V toc-title='...'instead; same meaning, valid flag.--tocgenerates its own TOC. If the Markdown also has a handwritten "Daftar Isi" section, the PDF ships TWO tables of contents — delete the manual one from the source before rendering.- xelatex does not wrap long code lines. URLs/commands in fenced blocks
silently run off the right page edge (visible only in the rendered PNG).
Wrap them in source with
\line continuation or split the string. - Build LaTeX-heavy commands as raw strings/concatenation, never Python
f-strings —
$,\u, and backslash sequences get mangled before reaching the shell and corrupt flags invisibly. - First run may fail on missing
lmodern.sty—apt-get install -y lmodernonce. - Read the source README's honest caveats into the guide. If the package's own docs warn that a feature is metadata-only or untested, the tutorial must repeat the caveat — do not let a clean layout oversell the product.
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
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.

