rtl-persian-pdf

rtl-persian-pdf is a skill for Claude Code, Cursor from mamahoos/dot-files. It costs 60 tokens per session (392 once invoked), scanned A, original, MIT.

A tool for turning Markdown or HTML containing Persian text into print-ready PDF files, with right-to-left writing displayed correctly.

In plain words
What is it for?
Use it to create Persian documents, reports, and other PDFs from Markdown or HTML, including A4 print layouts and mixed-language pages.
Why use it?
Persian and mixed Persian-Latin text can appear in the wrong order or with broken letter shapes when exported. It provides a checked, repeatable export process.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/.

Good fit Use it to create Persian documents, reports, and other PDFs from Markdown or HTML, including A4 print layouts and mixed-language pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mamahoos/dot-files/rtl-persian-pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mamahoos/dot-files --skill rtl-persian-pdf
Clone the repo
git clone --depth 1 https://github.com/mamahoos/dot-files

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rtl-persian-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/mamahoos/dot-files/rtl-persian-pdf/github.svg)](https://agentmods.dev/skills/mamahoos/dot-files/rtl-persian-pdf)
Your own site
<a href="https://agentmods.dev/skills/mamahoos/dot-files/rtl-persian-pdf"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/rtl-persian-pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rtl-persian-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/mamahoos/dot-files/rtl-persian-pdf"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/rtl-persian-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.00392
Opus 5 $0.00030 $0.00196
Sonnet 5 $0.00012 $0.00078
Haiku 4.5 $0.00006 $0.00039

Measured 8d ago against content hash ec514b0209ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rtl-persian-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

home/.cursor/skills/rtl-persian-pdf/SKILL.md · 65 lines

What it actually says

RTL Persian PDF

Purpose

Orchestrate a deterministic Persian RTL PDF pipeline from user request to verified artifact.

Single Responsibility Contract

This file handles orchestration only:

  • decide the pipeline path
  • enforce validation gates
  • report output contract

Detailed implementation (HTML baseline, commands, fallback internals, troubleshooting) lives in reference.md.

Inputs

  • source path (.md or .html)
  • output path (.pdf)
  • optional page settings (default A4, margin 14mm)
  • optional style intent (default formal and minimal)

Outputs

  • generated PDF path
  • renderer used (primary or fallback)
  • fonts used
  • validation status and residual risks

Core Workflow

  1. Confirm input/output contract.
  2. Choose route:
    • HTML input -> normalize and render
    • Markdown input -> convert then render
  3. Use primary renderer first (Chromium).
  4. Run validation gates.
  5. If validation fails, apply controlled fallback path.
  6. Return output contract.

Validation Gates (Mandatory)

  • PDF exists and is non-empty
  • pdfinfo passes and metadata is sane
  • first-page visual spot-check completed
  • mixed Persian/Latin bidi is visually acceptable

Guardrails

  • Do not skip validation gates.
  • Do not silently change page size, margin, or font stack.
  • Do not rely on unverifiable claims about output quality.
  • Prefer local explicit fonts over system-dependent defaults.

Additional Resources

  • For command recipes and templates, see reference.md.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 65 lines · 60 tokens per session scan A ec514b0209ba

Subscribe to this mod's changes

rtl-persian-pdf is a skill published in the GitHub repository mamahoos/dot-files (4 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 392 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

md2pdf

Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.

joshukraine/dotfiles · 22 tokens

processing-pdfs

Processes PDF files. Extracts text and tables, fills forms, merges and splits documents, batch-processes files, converts to images, and generates PDFs programmatically. Use when working with .pdf files. Do NOT use for Word documents, spreadsheets, or presentations.

telagod/code-abyss · 57 tokens

docling-mcp-skill

Docling reference and workflows — layout-aware extraction for complex tables, multi-column, scanned PDFs where markitdown fails. CLI and MCP tiers, consent policy. Triggers: docling, scanned PDF OCR, markitdown insufficient.

darellchua2/opencode-config-template · 54 tokens

import-papers

Process PDFs in research/dump/, extract metadata, generate bibtex entries, and move files to research/papers/. Use when importing research papers or managing a paper bibliography. Only applies inside a checkout that has research/dump/ and research/papers.bib, and requires the pdftotext CLI (poppler-utils) — skip on…

DJRHails/dotfiles · 76 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

malob/nix-config · 92 tokens

remarkable

Render a Markdown or Org document to a PDF for reading on Petar's reMarkable Paper Pure, in the clean classic CS/Lisp-paper aesthetic (Computer Modern Book, small-caps numbered sections, monochrome code, links as footnotes), using pandoc and tectonic. Use when the user asks for a PDF for the reMarkable, a "paper PDF"…

wunki/dotfiles · 122 tokens