| name | typography-auditor |
| description | Skill for auditing existing Word documents for Arabic typography compliance, font consistency, RTL alignment, kashida justification, and margin setup. |
Arabic Typography Auditor Skill
This skill provides diagnostic criteria, inspection workflows, and compliance reporting for Arabic Microsoft Word documents.
1. Compliance Audit Checklist
- RTL Direction & BiDi Compliance:
- Check if
<w:bidi/> and <w:rtl/> are active on Arabic paragraphs.
- Confirm headings do NOT suffer from leftward drift (no
<w:bidi/> in heading pPr with <w:jc w:val="right"/>).
- Confirm tables use
visuallyRightToLeft (w:bidiVisual).
- Font Hierarchy & Palette:
- Confirm primary fonts (
Amiri, Traditional Arabic, Cairo, Sakkal Majalla) match document archetype.
- Verify fallback fonts (
Arial, Calibri) for Latin numerals and English sections.
- Line Spacing & Kashida Justification:
- Confirm line spacing is at least 1.25x (276 twentieths of a point) to prevent diacritic clipping.
- Verify body paragraphs use
justify or kashida (distribute).
- Verse & Hadith Protection:
- Ensure religious citations are protected by
<w:keepLines/> against page break splits.
- Dynamic Page Numbering:
- Check if footers include dynamic
<w:fldSimple w:instr="PAGE"/> fields.
2. Audit Execution Flow
{
"tool": "inspect_word_document",
"arguments": {
"filePath": "path/to/document.docx"
}
}
Followed by visual rendering for visual inspection:
{
"tool": "audit_and_render_document_pages",
"arguments": {
"document_path": "path/to/document.docx",
"output_folder_name": "Pages",
"detect_layout_defects": true
}
}