/rtl-chat-fixer:rtl-chatfrom rtl-chat-fixer
Formats chat responses for RTL languages (Hebrew, Arabic, Persian, Urdu) to ensure readable bidirectional text when mixing with English. Activates on any RTL content.
Ships in rtl-chat-fixer. 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.
You are responding to a user who writes in an RTL (right-to-left) language in a chat interface (Cowork / Claude Desktop) that has LIMITED RTL support. The renderer right-aligns RTL text but struggles with word ordering when RTL and LTR scripts mix on the same line. Structure responses so they are as readable as possible given this constraint.
This skill applies when the user writes in any of these languages/scripts:
Hebrew (עברית), Arabic (العربية), Persian/Farsi (فارسی), Urdu (اردو), Pashto (پښتو), Sindhi (سنڌي), Kurdish (Sorani: کوردی), Yiddish (ייִדיש), Dhivehi/Maldivian (ދިވެހި)
Detect the language from the user's input and respond in the same language. All formatting rules below apply equally to every RTL language.
When RTL and LTR text appear on the same line, the BiDi (bidirectional) algorithm often scrambles the word order. The more LTR terms on a single line, the worse it gets. The strategy: minimize mixing on any single line.
DO NOT use Unicode directional marks (RLM, LRM, RLE, etc.). They do not improve rendering in this environment and can make things worse.
The most important rule. Each line should contain at most ONE English/LTR term or phrase. If multiple LTR terms are needed, split them across separate lines with a blank line between each.
Bad — multiple LTR terms on one line:
לניהול סטייט אני ממליץ על Zustand או Redux Toolkit עם TypeScript
لإدارة الحالة أنصح باستخدام Zustand أو Redux Toolkit مع TypeScript
Good — one term per line:
לניהול סטייט אני ממליץ על Zustand
אפשרות נוספת היא Redux Toolkit
שניהם עובדים מצוין עם TypeScript
لإدارة الحالة أنصح باستخدام Zustand
خيار آخر هو Redux Toolkit
كلاهما يعمل بشكل ممتاز مع TypeScript
Structure the RTL sentence so the English/LTR term appears at the end. The BiDi algorithm handles trailing LTR text better.
Less readable:
ה-React Query ספרייה עוזרת עם קריאות שרת
More readable:
לקריאות מהשרת כדאי להשתמש ב-React Query
Wrapping LTR terms in backticks creates clear visual boundaries that help the reader parse the text, even when word order is slightly off.
מריצים את `npx create-next-app@latest`
نشغّل الأمر `npx create-next-app@latest`
Short paragraphs (1-3 sentences) are much more readable than long ones. Every new thought gets its own paragraph with a blank line above it.
Numbered lists and bullet lists with mixed RTL/LTR content render poorly. Use separate short paragraphs instead. If a list is truly needed, keep each item to pure RTL text or very short with one LTR term max.
Instead of a numbered list, write separate paragraphs:
קודם כל, מתקינים את הפרויקט
אחר כך מגדירים את TypeScript
בשלב הבא מוסיפים את הספריות
أولاً، نثبّت المشروع
بعد ذلك نضبط TypeScript
في الخطوة التالية نضيف المكتبات
If a list is really needed, keep items simple:
- להתקין את הפרויקט
- להגדיר TypeScript
- להוסיף ספריות
Lines that are 100% RTL (no LTR at all) always render correctly. Use the native language where it flows naturally. Don't force-translate standard tech terms, but do use RTL words where natural.
Translate when natural (Hebrew examples):
"ספריות" instead of "libraries", "להתקין" instead of "to install", "להגדיר" instead of "to configure", "להריץ" instead of "to run"
Translate when natural (Arabic examples):
"مكتبات" instead of "libraries", "تثبيت" instead of "install", "إعداد" instead of "configure", "تشغيل" instead of "run"
Keep in English when standard across all languages:
API, SDK, CLI, npm, React, TypeScript, Python, etc. Package names, function names, file paths, commands.
Parentheses, square brackets, and quotation marks placed directly around an English term inside an RTL line are one of the most common causes of "the punctuation moved" complaints. The bracket belongs to the LTR run, so the renderer often pushes the closing bracket — or both — to the wrong side of the line.
Less readable:
מומלץ לעבוד עם הגרסה האחרונה (React 18) בפרויקט
More readable — lift the parenthetical onto its own line, or drop the brackets entirely:
מומלץ לעבוד עם הגרסה האחרונה של React
הכוונה לגרסה 18
The same goes for a label ending in a colon right before an LTR term: put the command or term on the next line so the colon stays attached to the RTL text.
Markdown tables are the worst case for the BiDi algorithm. Each cell is its own tiny direction context, the column alignment fights the RTL reading order, and the header row can flip independently of the body rows. A table that mixes Hebrew or Arabic with English collapses into something genuinely unreadable.
Present structured data as short labelled paragraphs instead:
ספרייה: React
תפקיד: ניהול ממשק המשתמש
ספרייה: Zustand
תפקיד: ניהול הסטייט
A table is fine only when every cell is pure RTL, or every cell is pure LTR (for example a table of npm commands) — never a mix.
Code blocks (fenced with ```) render correctly since they are always LTR. Use them freely for commands, code snippets, and configuration examples. They also provide a natural visual break in the text.
A heading that mixes RTL and LTR scripts jumbles exactly like body text — and because headings are visually prominent, a broken one stands out more. Keep headings short and, where possible, pure RTL. If a heading needs an English term, prefer moving it into the paragraph below and leaving the heading itself in the RTL language.
In Cowork and other agent/desktop modes, replies to RTL-language users tend to be unusually LTR-dense: file paths, branch names, PR numbers, shell commands, git output, and progress summaries. That is precisely the content that jumbles worst, so it needs deliberate handling.
Status and progress lines: keep each update on its own line, and keep that line either fully RTL or fully LTR. A line carrying one backticked path reads fine; a line like "עדכנתי את cookies.js, schema.js ו-config.js" stacks three LTR terms — split it across three lines.
File paths, URLs, branch names, and PR references: always wrap them in backticks, and count each as one LTR term for the one-per-line rule. Better still, put the path on its own line beneath a short RTL label.
Final summaries and reports: don't assemble them as one long bullet list of mixed-direction lines — that is the single worst pattern. Use short RTL paragraphs, and isolate every command or path in a fenced code block.
Quoted terminal or command output: always place it in a fenced code block. It is pure LTR, and the block stops it from contaminating the surrounding RTL text.
Good — a status update written for clean rendering:
סיימתי את העדכון של הסקיל
הקובץ ששונה:
plugins/rtl-chat-fixer/skills/rtl-chat/SKILL.md
השינוי נדחף לענף main
<div dir="rtl"> won't render in chatFor detailed language-specific guidance (Hebrew, Arabic, Persian, Urdu), read references/language-specifics.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub msapps-mobile/claude-plugins --plugin rtl-chat-fixerOther plugins' skills for the same job