/arabic-ready:arabic-readyfrom arabic-ready
Ensures Arabic text renders correctly across websites, apps, documents, images, and messages. Covers RTL layout, letter shaping, mixed-direction ordering, fonts, numerals, dates, currency, and natural wording.
Ships in arabic-ready. 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.
Read when SKILL.md points to them; scripts run unread.
Goal: Arabic that renders, reads and feels native on the first attempt, in any output format.
| Decision | Default | Change when |
|---|---|---|
| Audience locale | ar + region if known (ar-SA, ar-EG, ar-AE, ar-MA...) | User names a country/city/market |
| Digits | Western 0-9 for UI, prices, phones, code, charts. Arabic-Indic ٠-٩ for formal/editorial text aimed at Egypt, Saudi Arabia, Iraq, the Levant, Sudan, Yemen | User asks, or the brand/region clearly uses ٠-٩. Maghreb (MA/DZ/TN) always uses 0-9 |
| Register | Modern Standard Arabic (فصحى), clear and modern, not classical | User asks for a dialect (Egyptian, Gulf, Levantine...) or the channel is casual (WhatsApp promos, social posts): see references/writing.md |
Never mix digit systems in one piece of output.
<html> + style="direction:rtl" sprinkled on elements
✅ <html lang="ar" dir="rtl"> · docx <w:bidi/> + <w:rtl/> · pptx rtl="1" · Flutter Directionality(textDirection: TextDirection.rtl) / locale: Locale('ar')margin-left, ml-4, text-left, left: 0, EdgeInsets.only(left:)
✅ margin-inline-start, ms-4, text-start, inset-inline-start: 0, EdgeInsetsDirectional.only(start:)اتصل على +966 50 123 4567. → renders as 4567 123 50 966+
✅ اتصل على <bdi dir="ltr">+966 50 123 4567</bdi>. · plain text: wrap in LRI…PDI (…) or put LRM before -5dir="ltr" even inside an RTL form (align them with text-end).references/typography.md), line-height ≥ 1.6 for body text, and leave room above and below for tashkeel. Never apply letter-spacing/tracking-*, uppercase, italic or tight overflow:hidden heights to Arabic.set_text_shaping() shape Arabic themselves: pass the raw string.
reportlab, PyMuPDF insert_text, OpenCV, matplotlib ≤ 3.10, Pillow without raqm draw glyph by glyph: pass prepare(text) from scripts/shape_text.py.
Reshaping text for a renderer that already shapes reverses it again (verified in matplotlib 3.11 and Pillow+raqm).، comma, ؛ semicolon, ؟ question mark, «» quotes. Keep . and !. Use no space before punctuation and one space after.أرسل, احفظ, ابدأ الآن), and no English word order. See references/writing.md.Intl.NumberFormat('ar-SA', ...) / Intl.DateTimeFormat('ar-EG-u-nu-latn', ...), and always set nu (digits) and ca (calendar) explicitly.Read only what the task needs:
| Output | Read |
|---|---|
| HTML, CSS, Tailwind, React, Next.js, Vue, React Native, Flutter, email HTML | references/web.md + references/bidi.md |
| Mixed Arabic + English/numbers anywhere (incl. markdown, plain text, SMS, JSON strings) | references/bidi.md |
| Fonts, line-height, tashkeel, weights, justification | references/typography.md |
| Word (.docx), PowerPoint (.pptx), PDF | references/documents.md |
| matplotlib, Pillow, SVG, canvas, OpenCV, Plotly, any image with text | references/charts-images.md |
| Copywriting, translation, dialects, numerals, dates, currency, names, Hijri | references/writing.md |
| Flips (mirror the layout) | Stays the same |
|---|---|
| Reading order, text alignment, nav order, sidebar side | Phone numbers, credit cards, IBANs (always LTR) |
Breadcrumbs, pagination, steppers: "next" points left. Text › > ( mirror automatically, but → and SVG icons do not | Code blocks, terminal output, URLs, emails |
| Back/next arrows, chevrons, carousels/slider swipe direction | Time-series chart x-axis (time runs left→right). Category axes may flip |
| Table column order (first column on the right) | Media controls (play ▶, fast-forward), clocks, checkmarks |
| Progress bars and range sliders fill from the right | Logos, brand marks, photos, maps |
Form labels on the right, close button × on the left of a dialog | Math expressions and numbers themselves (1,234.5 stays 1,234.5) |
| Toast/drawer slide-in side, badges on avatars, list bullets | Keyboard shortcuts (Ctrl+S) |
python <skill-dir>/scripts/rtl_check.py <file-or-folder>
Fix every error. Fix warnings unless they are intentional, and mark intentional ones with an rtl-ok comment.python -m playwright screenshot --full-page file://$PWD/index.html shot.png (or npx playwright screenshot …). If no browser is available, weasyprint index.html out.pdf gives a static render.soffice --headless --convert-to pdf file.docx, then rasterize the PDF.python -c "import pymupdf; pymupdf.open('f.pdf')[0].get_pixmap(dpi=110).save('f.png')"dir="rtl" + lang="ar…" (or the format's equivalent)left/right in spacing, positioning or alignment، ؛ ؟ used, one digit system, natural MSA (or the requested dialect)scripts/rtl_check.py <path>: lints HTML/CSS/Tailwind/JSX/TSX/Vue/Svelte/React Native/Flutter for RTL bugs. Prints file:line, the problem and the exact fix. Exit code 1 on errors. Stdlib only.scripts/shape_text.py: prepare(text, target) for renderers that don't shape Arabic. It detects matplotlib/Pillow native support and returns the text unchanged when shaping is not needed. It uses arabic-reshaper + python-bidi (pip-installed on demand) or falls back to a built-in stdlib shaper. python shape_text.py --check reports what this machine needs.references/bidi.md (opens in a new tab)references/charts-images.md (opens in a new tab)references/documents.md (opens in a new tab)references/typography.md (opens in a new tab)references/web.md (opens in a new tab)references/writing.md (opens in a new tab)scripts/rtl_check.py (opens in a new tab)scripts/shape_text.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jubyuhanna-create/arabic-ready --plugin arabic-readyOther plugins' skills for the same job