| name | arabic-doc-designer |
| description | Universal master skill for designing, structuring, and generating all formats of Arabic and English Microsoft Word (.docx) documents (letters, reports, contracts, manuals, decisions, memos, academic papers, books, press releases, meeting minutes, and custom structured writings). |
Universal Arabic Document Designer & RAG Logic Engine
This skill provides universal principles, cognitive reasoning, and automated tool workflows for generating, structuring, styling, and polishing ANY Microsoft Word document in Arabic or English using the mcp-arabic-ms-word server.
1. Cognitive RAG Archetype Analysis
Never limit documents to a fixed subset of types. When receiving ANY document request from the user, dynamically evaluate:
-
Archetype Grounding:
- Official Letters & Ministerial Memos: High-clarity serif fonts (
Amiri), formal Basmala, recipient block, justified body with Kashida, and formal sign-offs.
- Academic Research Papers & Theses: Classic academic fonts (
Traditional Arabic), multi-tier sections (المقدمة، المباحث، المطالب), Quranic verses wrapped in <w:keepLines/>, footnotes, and isolated English abstracts.
- Executive Reports & Dashboards: Sleek modern sans fonts (
Cairo, Sakkal Majalla), dark blue headings (#1F4E78), styled data tables with alternating row shading, and KPI metrics.
- Legal Contracts & Commercial Agreements: Preamble, numbered articles (H3), binding obligations, and side-by-side signature blocks.
- Operating Manuals & Policy Guidelines: Multi-level heading hierarchy (H1-H6), process tables, callouts, and clean margins.
-
Standard Typography Hierarchy:
- Title / H1: 20-22 pt, Bold, Color
#003366 or #1F4E78, <w:keepNext/>.
- Section / H2: 16-18 pt, Bold,
<w:keepNext/>.
- Subsection / H3: 14-15 pt, Bold.
- Body Text: 13-14 pt, 1.25x line spacing, RTL, justified (
w:bidi + w:jc="both").
- Footers: Centered dynamic page numbers (
صفحة X من Y).
2. Autonomous Tool Invocation Workflows
Pattern A: Single-Shot RAG Generation (Recommended)
{
"tool": "resolve_and_execute_document_intent",
"arguments": {
"prompt": "أنشئ لي بحث أكاديمي محكم عن الذكاء الاصطناعي في الفقه المقارن...",
"outputPath": "AI_Comparative_Jurisprudence_Research.docx",
"subject": "الذكاء الاصطناعي في الفقه المقارن",
"author": "الباحث الأكاديمي"
}
}
Pattern B: Step-by-Step Custom Assembly
create_word_document: Initialize A4 layout, 2.54cm margins, and default font (Amiri/Cairo).
add_header_footer_to_document: Configure running header text and Arabic page numbering.
add_heading_to_document: Append H1 title and H2 section titles.
add_paragraph_to_document: Append justified body content with 1.25x line spacing.
add_table_to_document: Insert RTL structured tables (isRtl: true).
enforce_arabic_bidi_and_typography: Run OpenXML BiDi surgery to eliminate heading drift.
audit_and_render_document_pages: Render high-res PNG images in Pages/ folder.
3. Clean Workspace Standards
- Deliver only pristine
.docx, .pdf, and Pages/ image artifacts.
- Never write temporary test scripts in the user's workspace.