hebrew-document-generator

hebrew-document-generator is a skill for Claude Code, Codex from skills-il/localization. It costs 247 tokens per session (9,253 once invoked), scanned A, original, MIT.

A guide to creating Hebrew documents in PDF, Word, and PowerPoint formats with correct right-to-left layout, mixed Hebrew-and-English text, and Hebrew fonts.

In plain words
What is it for?
Use it when generating Hebrew invoices, contracts, reports, forms, proposals, meeting notes, or slide decks in PDF, DOCX, or PPTX format.
Why use it?
It addresses formatting problems that can make Hebrew documents unreadable, such as reversed text, incorrect alignment, and mixed-language text appearing in the wrong order.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/skills-il/localization/hebrew-document-generator
Any agent
npx skills add skills-il/localization --skill hebrew-document-generator
Clone the repo
git clone --depth 1 https://github.com/skills-il/localization

Made for: Claude Code, Codex.

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 hebrew-document-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/skills-il/localization/hebrew-document-generator.svg)](https://agentmods.dev/skills/skills-il/localization/hebrew-document-generator)
Your own site
<a href="https://agentmods.dev/skills/skills-il/localization/hebrew-document-generator"><img src="https://agentmods.dev/badge/skills/skills-il/localization/hebrew-document-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 247 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00247 $0.09253
Opus 5 $0.00123 $0.04627
Sonnet 5 $0.00049 $0.01851
Haiku 4.5 $0.00025 $0.00925

Measured 5d ago against content hash 854ea6f9c185, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

hebrew-document-generator 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_doc.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

hebrew-document-generator/SKILL.md · 541 lines

How it starts

The opening of the file, as written. The whole thing — 541 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hebrew Document Generator

Instructions

Step 1: Choose the Output Format

Format Library Best For RTL Support
PDF reportlab Invoices, tax docs, printable forms Register Hebrew font, use canvas.drawRightString()
PDF WeasyPrint Styled documents from HTML/CSS Native via dir="rtl" in HTML
DOCX python-docx Contracts, proposals, meeting minutes Set paragraph bidi; split mixed runs, set w:cs font + w:rtl on Hebrew runs only
PPTX pptxgenjs (Node) Presentations, slide decks RTL text boxes with rtlMode: true

Step 2: Install Dependencies and Hebrew Fonts

Python PDF generation:

pip install reportlab weasyprint

Python DOCX generation:

pip install python-docx python-bidi

Node.js PPTX generation:

npm install pptxgenjs

Recommended Hebrew fonts (install on system):

Font Style Best For Source
Heebo Sans-serif, modern Web-style documents, invoices Google Fonts
David Classic serif Legal contracts, formal letters System (Windows/macOS)
Narkisim Serif, elegant Proposals, invitations System (Windows)
Frank Ruehl Traditional serif Academic, literary Google Fonts (Frank Ruhl Libre)
Rubik Sans-serif, rounded Presentations, marketing Google Fonts
Assistant Sans-serif, clean Business correspondence Google Fonts

See references/hebrew-fonts.md for download links and installation instructions.

Step 3: Generate Hebrew PDF with reportlab

See scripts/generate_doc.py for the full generation pipeline.

from reportlab.lib.pagesizes import A4
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.lib.units import mm
from bidi import get_display  # python-bidi 0.6.x; see note below

# Register Hebrew font
pdfmetrics.registerFont(TTFont('Heebo', 'Heebo-Regular.ttf'))
pdfmetrics.registerFont(TTFont('Heebo-Bold', 'Heebo-Bold.ttf'))

def create_hebrew_pdf(filename, title, content_lines):
    c = canvas.Canvas(filename, pagesize=A4)
    width, height = A4

    # Title -- right-aligned for RTL
    c.setFont('Heebo-Bold', 18)
    hebrew_title = get_display(title)
    c.drawRightString(width - 20*mm, height - 30*mm, hebrew_title)

    # Body lines
    c.setFont('Heebo', 12)
    y = height - 50*mm
    for line in content_lines:
        display_line = get_display(line)
        c.drawRightString(width - 20*mm, y, display_line)
        y -= 7*mm

    c.save()

Read the full file on GitHub · 541 lines

Files

What ships with it

7 files 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. 5d ago First seen · 541 lines · 247 tokens per session scan A 854ea6f9c185

Subscribe to this mod's changes

hebrew-document-generator is a skill published in the GitHub repository skills-il/localization (23 stars, last pushed 11d ago), licensed MIT. It adds 247 tokens to every session and 9,253 once invoked, about $0.0012 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-30.

Related

Other skills, from other repositories

pdf_translator

Extract text from PDF files, translate it to a target language, and save the result as a Markdown file. Use this skill when the user wants to translate a PDF document or asks to "convert PDF to Chinese".

ForceInjection/AI-fundamentals · 47 tokens

translate-book

Translate books (PDF/DOCX/EPUB) into any language using parallel sub-agents. Converts input -> Markdown chunks -> translated chunks -> HTML/DOCX/EPUB/PDF.

deusyu/translate-book · 42 tokens

docutranslate

Use when translating documents locally via LLM — PDF, Word, Excel, Markdown, SRT subtitles with format preservation. DocuTranslate: LLM-powered multi-format local file translation tool with MCP server support.

znlgis/opengis-skills · 47 tokens

lov-academic-translator

将英文论文、arXiv、期刊/会议文章及技术 PDF 翻译为中文 PDF 或可发布的中文 Markdown。用户提出“翻译英文 PDF”“翻译论文”“论文超级翻译官”“保留图片、公式和原版式”“原文译文对照”“页数对应”或“PDF 图文排版不要乱”时使用。.

lovstudio/skills · 87 tokens

doc-translator

将 PDF 格式或 Web Page 格式的源文档转换成保持原排版格式的 Markdown 格式精译中文文档。.

ThreeFish-AI/negentropy · 34 tokens

pdf-translate

Translate local, text-based PDFs into Vietnamese or another supported Latin-script language while preserving the original layout, formulas, tables, and figures. Use for PDF translation, batch translation, terminology-sensitive handoff translation, or diagnosing incomplete translated output. Do not use for image-only…

breslee1707/VI-Translate · 76 tokens