/oleh-kit:translate-official-pdffrom oleh-kit
Translate an official Hebrew PDF letter (pension fund, Tax Authority, bank, Bituach Leumi, municipality, health fund) into a natural English PDF saved next to the original as <name>-en.pdf, locally or in the same Google Drive folder. Handles password-locked PDFs (often the last 4 digits of the ID), RTL extraction order, keeps every amount, date and ID exactly, and stamps an UNOFFICIAL MACHINE TRANSLATION notice on top. Use on "translate this letter", "what does this Hebrew PDF say in English", "English version of this document", a Drive link or file ID to a Hebrew PDF.
Ships in oleh-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Output: <original stem>-en.pdf beside the original, with the notice box on top and "Translated by Claude." in
the footer. Plugin root below is ${CLAUDE_PLUGIN_ROOT}. Read ~/.config/oleh-kit/config.json first if it exists
(OLEH_KIT_CONFIG overrides the path; schema config/config.example.json); every key has a default.
Never compile or build anything. Python runs only as a short script (with uv run --with ... when it needs a
package, never pip). The PDF is a headless-browser print, not Typst or LaTeX.
references/google-drive.md. In short: the MCP
download URL only works when the MCP server runs on this machine; otherwise use rclone backend copyid.Working files go in a temp dir (mktemp -d), never next to the original.
uv run --with pypdf --with cryptography ${CLAUDE_PLUGIN_ROOT}/scripts/decrypt_pdf.py "<file.pdf>"
{"encrypted": false}: carry on with the original.{"needs_password": true}: ask the user for the password. Say that Israeli institutions usually lock letters with
the last 4 digits of the ID number (some use the full ID, or the date of birth); show pdf_password_hint from
config if set. Re-run with --password. Exit code 2 = wrong password: ask again, don't guess in a loop.python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extract_text.py "<file.pdf>" --images "$TMP/pages"
It strips the bidi control characters, repairs lines stored in visual order, and renders each page to PNG. Read
every page image. Use the text for exact strings (numbers, names, URLs) and the image for structure: letterhead,
which value belongs to which label, table columns (in RTL tables the rightmost column is first), stamps,
handwriting. Act on every warning. No text layer = a scan: translate from the images and say so in a
translator-note. Details: references/rtl-extraction.md.
Default engine: Claude, in-session (engine: "claude"). Why this is the default: references/engines.md.
references/glossary.md and use its renderings (הוראת קבע = standing order / direct debit, עמית = member,
אסמכתא = proof of payment, ...).english_variant, default en-GB): it should read like a letter an
English-speaking institution would send, not word-for-word Hebrew. Don't add, soften or summarise. Keep threats,
deadlines and conditions exactly as strong as the original.* codes). After writing, check each number in your JSON against the extracted text.references/translation-schema.md (sender, meta, address,
salutation, subject, paragraphs, fields, tables, lists, closing, letter-footer), top to bottom as in the original.translator-note, not a guess.With engine: "deepl": send the paragraphs and table cells through scripts/deepl_translate.py (key from the env var
in deepl.api_key_env), then put the results into the same block structure and fix glossary terms. Set engine in
the JSON to "DeepL API (EN-GB)" and footer_credit to "Translated by DeepL; laid out by Claude." If the key is
missing or the call fails, say so and fall back to Claude.
Fill source.filename (the original filename), source.location (the folder path, or "Google Drive, folder X"),
engine (engine and model, e.g. "Claude (claude-opus-5-5), translating in-session") and translated_on (today,
YYYY-MM-DD). Write the JSON to the temp dir.
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/render_pdf.py "$TMP/translation.json" "$TMP/out/<stem>-en.pdf"
pdftoppm -r 80 -png "$TMP/out/<stem>-en.pdf" "$TMP/out/check"
Read every check-*.png before saving. Check: the notice box is on top with the right filename, location, date and
engine; tables have the right columns; nothing is cut off; "Translated by Claude." is in the footer of every page.
Fix the JSON and re-render if not.
<stem>-en.pdf. If that file exists, ask before overwriting.<stem>-en.pdf (create_drive_file, routes in
references/google-drive.md). If staging, say in one line that the file is leaving the machine. Delete the staged
object afterwards. Then download the uploaded file and compare SHA-256 with the local PDF.The output path or Drive link, the engine used, and anything the reader must act on, in two or three lines (for example: "it says the 10 Nov standing order bounced because the account is closed; they want 1,500.00 NIS by cheque or transfer"). Don't paste the whole translation back.
tests/fixtures/ holds a synthetic one.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/find-my-rightsAnswer "what am I entitled to?" for an English-speaking oleh using Kol Zchut, Israel's rights wiki, which has had no English edition since February 2023. Searches in Hebrew, reads the article, and explains it in English with the Hebrew source linked. Routes to the full Kol Zchut skills in israel-research or israel-agent-skills when installed. Use on "what are my rights", "am I entitled to", "as a new immigrant can I get", "kol zchut", arnona discount, olim tax credit points, sal klita, Bituach Leumi benefits, severance, notice period, maternity leave./handy-toolsRecommend the right AI or Hebrew-language tool for a task, from a curated, dated bookmark list - adding nikud (vowel points) to Hebrew, decoding Hebrew abbreviations (ראשי תיבות / kitzurim), machine translation, speech recognition (dictating English with Hebrew words in it, transcribing Hebrew audio), Hebrew LLMs and TTS, Israeli open-data APIs, and the Israeli AI index. Use on "how do I add nikud", "what does this abbreviation stand for", "best Hebrew ASR", "voice typing with Hebrew words", "Hebrish", "Hebrew LLM", "Israeli open data API", "handy tools", "bookmarks"./install-israeli-skillsSet an oleh up with Israel-specific agent skills - Daniel's picks (olim-friendly skills he has personally used, dated), plus a live scan of the Israeli AI index for anything newer - then install the chosen ones on an explicit yes. Use on "install Israeli skills", "set me up for life in Israel", "skills for olim", "what's new in the Israeli skills index", "what other Israel plugins are there"./israeli-pluginsGuide to the public Claude Code plugins for life in Israel and what each does for an oleh, starting with Green Invoice (invoicing for osek patur and osek murshe freelancers), then rights and offices, writing in Hebrew, everyday services (Israel Post, health fund, cancelling subscriptions), shopping, and data. Says which one fits a task and how to install it. Use on "is there a plugin for X in Israel", "Green Invoice", "invoicing as a freelancer in Israel", "which Israeli plugins are there", "what else works with Oleh-Kit"./olim-starter-resourcesA starter pack of checked resources for new immigrants to Israel (Ministry of Aliyah and Integration, Nefesh B'Nefesh, AACI counselling on rights and bureaucracy, Kol Zchut, Bituach Leumi and Tax Authority English pages, the ERAN olim support line), each marked verified with a date or unverified. Shows them, filters by need, and adds new ones. Use on "where do I get help as an oleh", "who helps new immigrants", "olim resources", "add a resource".oleh-kit@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin oleh-kit