global proposal
БесплатноЗапускает вложенные скриптыНе проверенCreate Arabic (.docx) Word documents with proper right-to-left (RTL) layout, correct font splitting (Arabic script font for Arabic text + Latin font for…
от alsoulm146 установок в других каталогахОб этом скилле
Skill: arabic-docx
Create professional Arabic Word documents (.docx) that render correctly in Microsoft Word: proper RTL layout, the right fonts for Arabic vs English text, Arabic-Indic numerals (٠-٩), a working table of contents, and clean formatting.
Why this skill exists
Generating Arabic .docx with generic tools produces documents that look wrong in Word: English fonts applied to Arabic text, Western numerals (0-9) where Arabic-Indic (٠-٩) is expected, LTR page numbers, and broken TOC fields. This skill encodes the exact configuration that produces correct output, tested end-to-end in Word.
The four key principles
1. Font splitting (the most important pattern)
In OOXML, a run has three font slots. You must set all three explicitly on every TextRun, or Arabic text silently falls back to the wrong font:
const FONT_EN = "Times New Roman"; // for Latin/English text
const FONT_AR = "Simplified Arabic"; // for Arabic text
font: { ascii: FONT_EN, hAnsi: FONT_EN, cs: FONT_AR }
// ↑ Latin chars ↑ high-ANSI ↑ Complex Script (Arabic)
ascii— applied to basic Latin characters (A-Z, 0-9, punctuation)hAnsi— applied to extended Latin / high-ANSI characterscs— Complex Script slot; this is the one Arabic text actually uses
Common mistake: setting only font: "Times New Roman" applies Times New Roman to the cs slot too, so Arabic renders in a Latin font and looks broken. Always split the three slots.
Recommended Arabic fonts (all ship with Microsoft Office on Windows):
| Font | Style | Good for |
|---|---|---|
Simplified Arabic |
Clean, traditional | Body text, general use |
Traditional Arabic |
Heavier, serif-like | Headings, titles |
Arial |
Universal | If Simplified Arabic unavailable |
Sakkal Majalla |
Modern, elegant | Body or headings |
Recommended English fonts: Times New Roman (academic), Arial (modern), Calibri (default).
2. Right-to-left layout
Every Arabic paragraph and every run needs RTL flags:
new Paragraph({
bidirectional: true, // ← paragraph-level RTL
alignment: AlignmentType.JUSTIFIED, // or RIGHT / CENTER
children: [new TextRun({
text: "النص العربي",
rightToLeft: true, // ← run-level RTL
// ...
})],
})
bidirectional: true→ emits<w:bidi/>in paragraph properties (sets paragraph direction to RTL)rightToLeft: true→ emits<w:rtl/>in run properties (marks the run as RTL)
Both are needed. Without bidirectional, the paragraph flows left-to-right. Without rightToLeft, the run's internal ordering and numeral form may be wrong.
3. Arabic-Indic numerals (٠-٩)
Arabic documents should display Arabic-Indic digits (٠١٢٣٤٥٦٧٨٩) in Arabic text, and Western digits (0123456789) in English text. Because Arabic-Indic digits are in the Arabic Unicode block (U+0660–U+0669), they automatically render with the cs font (Arabic font) — so the font assignment is already correct once principle #1 is in place. The remaining task is converting the digit characters.
Do not hand-convert digits in source text. Generate the document normally with ASCII digits, then run the post-processing script (see Pipeline below) that converts them in-place. The script is content-aware: it only converts digits inside paragraphs that contain Arabic text, so English references and DOIs keep their Western digits.
4. Font sizes are in half-points
In docx-js / OOXML, size values are half-points, not points:
| Desired | size value |
|---|---|
| 11 pt | 22 |
| 12 pt | 24 |
| 14 pt (typical Arabic body) | 28 |
| 15 pt | 30 |
| 18 pt (H1) | 36 |
5. RTL tables (critical — easily missed)
Every content table must have visuallyRightToLeft: true on the Table object, or columns flow left-to-right (wrong for Arabic):
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
layout: TableLayoutType.FIXED,
visuallyRightToLeft: true, // ← emits <w:bidiVisual/>, columns read right-to-left
// ...
})
This is separate from the bidirectional: true / rightToLeft: true flags on paragraphs and runs inside cells (those control text direction within each cell). Both are needed: visuallyRightToLeft on the table for column ordering, plus RTL flags on cell content for text direction.
Common mistake: adding RTL flags to cell paragraphs but forgetting visuallyRightToLeft on the table itself — the text in each cell is RTL, but the columns still read left-to-right, so the first column appears on the left instead of the right.
Check every new Table(...) call in your script. Layout-only tables with a single cell (e.g., a full-page cover wrapper) do not need it, but any multi-column table does.
The pipeline
Generate the document in five stages. Save the generation script to disk first (per project rules about persisting scripts), then run e
Установить global proposal в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл global proposal?
Create Arabic (.docx) Word documents with proper right-to-left (RTL) layout, correct font splitting (Arabic script font for Arabic text + Latin font for English text), Arabic-Indic numerals (٠-٩), working table of contents, and verified formatting. Use this skill whenever the user wants to create, generate, or build an Arabic Word document, Arabic report, Arabic thesis/proposal/research, Arabic letter, or any RTL document that must look correct in Microsoft Word — even if they don't explicitly say "Arabic docx" but the content is clearly Arabic. Also use it when the user asks to fix Arabic font issues, convert numbers to Arabic numerals (٠-٩), or configure RTL page numbers in an existing docx.
Как установить скилл global proposal?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл global proposal запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic