/maagarim-reader:maagarim-readerfrom maagarim-reader
Checks verbatim Mishnah, Tosefta, and Talmud quotes in Word documents against Maagarim manuscript transcriptions. Adds short Hebrew RTL comments and Word tracked changes. Use for verify Talmud quotes, check nusach against manuscript, annotate docx with Maagarim, Kaufmann, Tosefta Wien, first witness, or maagarim-reader. Do not use for Tanakh nikud (use tanakh-nikud skill), Sefaria-only checks, general proofreading, or non-verbatim quotes.
Ships in maagarim-reader. 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.
Verify verbatim Mishnah, Tosefta, Bavli, Yerushalmi quotes in a .docx against Maagarim. Output: short Hebrew RTL comments + tracked changes (Word → Review → All Markup).
For Tanakh nikud (מנוקד בלי טעמים via Sefaria), use the sibling skill tanakh-nikud — not this one.
If something went wrong, use feedback (דיווח).
The person who uploaded the file is not technical. Do not mention sandboxes, UUIDs, fetch-and-summarize, HTML, APIs, or model names unless they ask.
Say this (Hebrew) when you are still working:
אני בודק את הציטוטים מול המסירה במאגרים. אעדכן כשקובץ ה-Word עם ההערות והשינויים המוצעים מוכן.
Say this when blocked (no browser / cannot load witness):
לא הצלחתי לפתוח את המאגרים באופן אמין בסביבה הזו, ולכן לא אוסיף שינויי נוסח שלא נבדקו. אפשר לנסות שוב עם Claude in Chrome מחובר, או לשלוח את הקובץ למי שמריץ את הבדיקה ב-Cursor.
Do not send long technical post-mortems to the user. File an internal failure report instead (below).
Find the file — never assume a UUID upload name. Hebrew titles may appear as underscores in tool output.
python3 scripts/find_uploaded_docx.py --root .
Use the newest path printed (not under output/).
Backup if the doc already has tracked changes (accept into a clean copy first).
Quote inventory (mandatory) — before any Maagarim lookup, build a numbered list of every verbatim quote in scope (Mishnah / Tosefta / Bavli / Yerushalmi). Do not skip footnotes, “secondary” quotes, or long blocks unless the user explicitly asked to limit scope.
python3 scripts/list_docx_quotes.py --input <path>.docx
python3 scripts/list_docx_quotes.py --input <path>.docx --json
Tell the user the total count in plain Hebrew (e.g. «מצאתי 24 ציטוטים לבדיקה»). Work through the list in order; tick each #id when done.
Deliverable-first: start writing comments + tracked changes to the .docx after the first 3 verified quotes, then continue through the rest of the inventory. Do not spend the whole session only “checking” without an annotated file.
| Rule | Required |
|---|---|
| Every in-scope verbatim quote gets an outcome | Yes — tracked change, «תואם», or «לא נבדק» comment |
| Skip “central quotes only” / «ציטוטים מרכזיים» | Never unless user opts in |
| Skip footnotes silently | Never — mark «לא נבדק» if you run out of time |
| Leave a quote with no comment | Never — silence means “forgot”, not “matches” |
When quote budget or time runs out: add «לא נבדק במסירה בבדיקה זו» on each remaining #id and list their numbers in the failure report (QUOTE_BUDGET).
| Rule | Limit |
|---|---|
| Maagarim lookups per quote | ≤ 2 (one deep link + one retry) |
| Progress update to user | every 5 quotes or 5 minutes, whichever comes first |
| Max verification-only time before partial deliverable | 10 minutes |
| Yerushalmi without working mm15 | comment-only — no invented diffs |
If a quote exceeds the budget → comment-only for that quote (לא נבדק…) and move on. Do not drop it from the inventory without a comment.
Use the quote inventory from list_docx_quotes.py (merge split paragraphs; do not re-guess quotes by eye).
Lookup in Maagarim:
misyzira/mishibbur + mm15 deep link → confirm המסירה → load the full quoted span (GetYzira / GetYziraFull or copy entire block from the open composition).GetYzira / GetYziraFull on the open composition, then compare locally.Full-block compare (mandatory): diff the entire quoted span from the docx against the witness — not a 3–6 word search hit.
python3 scripts/compare_quote_span.py --doc "<full quote from article>" --witness "<full witness text>"
python3 scripts/compare_quote_span.py --doc "…" --witness "…" --json
If any letter-normalized difference exists → tracked change on the doc span (all diffs in that quote, not just the first). Use free-text search only to navigate inside Maagarim; the decision to annotate comes from full-block compare.
Annotate outcomes:
?query= (ORA-04036).If you have no browser and no GetYzira/GetYziraFull → stop verification and file NO_BROWSER (below). Comment-only + link is OK; fake diffs are not.
| Include | Skip silently |
|---|---|
| משנה (incl. footnotes) | Tanakh (use tanakh-nikud skill) |
| תוספתא (incl. footnotes) | Ketubah formulas |
| בבלי / ירושלמי verbatim quotes | Paraphrases, [glosses] |
| Corpus | Default mesira |
|---|---|
| משנה | Kaufmann A 50 (31000) |
| תוספתא | Wien 46 (28000) |
| בבלי ברכות | Oxford Bodleian 366 (80001) |
| בבלי כתובות | Vatican ebr. 130 (80025) |
| תלמוד ירושלמי | Leiden Scaliger 3 (first hit) — comment-only when mm15 missing |
There is no reliable chapter/halakha mm15 in Maagarim for Yerushalmi in most tractates. For Yerushalmi quotes:
If you catch yourself searching for a Yerushalmi mm15 pattern → file code YERUSHALMI_NO_MM15 once per session (informational) and continue comment-only.
?misyzira=…&mm15=…; בבלי ?mishibbur=…&mm15= in daf mode (000000000000+daf+amud). Never FreeText ?query=.Helper (print links only, no fetch):
python3 scripts/list_docx_quotes.py --input <path>.docx
python3 scripts/compare_quote_span.py --doc "…" --witness "…"
python3 scripts/maagarim_links.py bavli-daf --daf 11 --amud 1 --id 80001
python3 scripts/maagarim_links.py mishnah-unit --tractate 001 --chapter 1 --unit 3
Maagarim Reader. Set w:bidi on Hebrew comment paragraphs.When blocked, prefer the feedback skill for user-facing sessions. If you must report inline, see skills/feedback/SKILL.md · references/failure-reporting.md.
Quick inline (agent-only, no user interview):
python3 scripts/report_skill_failure.py \
--skill maagarim-reader \
--code NO_BROWSER \
--source "skills/maagarim-reader/SKILL.md" \
--step "<what happened>" \
--step "<next causal step>" \
--quote-file "<original .docx name>" \
--next-action "<what the skill should do instead>" \
--send
Email subject prefix (parse in your loop): [MAAGARIM-READER-ACI-FAIL]
Body starts with ACI_FAIL block (machine-readable). Also written to output/skill-failure.eml and output/skill-failure.md.
| Code | When |
|---|---|
NO_BROWSER | No Chrome / no GetYzira; agent considered fetch-and-summarize |
FETCH_SUMMARIZE_LOOP | Used or attempted page summarization instead of witness text |
FILENAME_ENCODING | Assumed UUID name; Hebrew path mangled to underscores |
YERUSHALMI_NO_MM15 | Yerushalmi — comment-only path (informational) |
QUOTE_BUDGET | Exceeded lookup budget / 10m without deliverable |
WITNESS_NOT_LOADED | המסירה not confirmed; would have invented a diff |
Env for SMTP --send: MAAGARIM_READER_SMTP_HOST, MAAGARIM_READER_SMTP_PORT, MAAGARIM_READER_SMTP_USER, MAAGARIM_READER_SMTP_PASSWORD, MAAGARIM_READER_REPORT_TO (default [email protected]). Without SMTP, add --mailto-open on macOS to draft mail.
Details: references/failure-reporting.md.
references/troubleshooting.md — ORA-04036, homepage links, pre-existing revisions, Cowork filename mangling.
python3 -m pytest tests/ -q
Contract tests ensure this skill forbids fetch-and-summarize, defines quote budget, and points at failure reporting.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/feedbackReport a problem or unclear result from maagarim-reader or tanakh-nikud in plain Hebrew. Sends a structured report to the maintainer. Use for feedback, something went wrong, the check did not finish, report issue, or דיווח תקלה./tanakh-nikudAdds nikud without te'amim to unpointed Tanakh (Bible) quotations in Word documents, using Sefaria. Use for menukadim bli te'amim, auto-nikud, Tanakh pointing, Bible quotes in docx, or tanakh-nikud. Do not use for Mishnah, Talmud, Maagarim manuscript checks, or general proofreading.Other plugins' skills for the same job
npx claudepluginhub yodem/maagarim-reader --plugin maagarim-reader