Skip to content
Back to skills

Bilingual Clean Layout

ASecurity

Split & Continuation Rule for bilingual text

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 16, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned October 16, 2026

npx -y skills add Osama-Alzahrani-UQU/OmniAgentic --skill bilingual-clean-layout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bilingual Clean Layout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bilingual Clean Layout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/osama-alzahrani-uqu-bilingual-clean-layout/badge)](https://www.skillsdirectory.com/skills/osama-alzahrani-uqu-bilingual-clean-layout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bilingual-clean-layout
description: Split & Continuation Rule for bilingual text
---
# Bilingual Clean Layout & BiDi Separation Protocol

The **Bilingual Clean Layout** protocol eliminates text scrambling and inverted reading flow caused by Unicode Bidirectional (BiDi) algorithms and Markdown line-collapse when mixing English (LTR) and Arabic (RTL).

---

## 1. Core Invariants & The Split & Continuation Rule

### 1. The Split & Continuation Rule (قاعدة الشطر والتكملة للنصوص ثنائية اللغة)
- **The Universal Mandate**: When an Arabic sentence contains ANY English word, technical term, button name, acronym, filename, or link (e.g. `DLSS 5`, `DirectX`, `Vulkan`, `ReShade`, `Add Emulator / EXE`, `OptiScaler`, `GEMINI.md`):
  1. **Arabic Text Before**: Write the preceding Arabic text on its own line (ending cleanly or with `:`).
  2. **English Text/Term**: Place the English segment on its own dedicated line, isolated by empty lines (`\n\n`).
  3. **Arabic Continuation**: Place the continuation of the Arabic sentence on the next line after an empty line (`\n\n`).
- **Zero Inline English Words**: It is strictly forbidden for ANY English word or Latin character to appear on the same line as Arabic text.
- **Forbidden Attached Prefixes**: Never attach Arabic prefixes to English words (e.g. ❌ `الـ DLSS`, ❌ `عبر الـ Host`, ❌ `للـ Tool`). Always isolate the English term on its own line or use the Arabic equivalent.

### 2. Mandatory Empty Line Separation (سطر فارغ إلزامي لمنع الانهيار)
- **The Markdown Collapse Hazard**: In Markdown, a single newline (`\n`) is rendered as a space, collapsing separate lines into a single line and triggering BiDi text scrambling.
- **Strict Rule**: You MUST separate Arabic lines, English terms, and links with an **EMPTY LINE** (`\n\n`).

### 3. Dedicated Paragraphs for Links & Filenames (عزل الروابط وأسماء الملفات كلياً)
- Every filename (e.g. `GEMINI.md`), link `[label](url)`, or path MUST sit on its own dedicated line surrounded by empty lines (`\n\n`).

### 4. Sub-Agent Technical Accuracy Carve-Out (عدم تقييد البيانات التقنية للوكيل الفرعي)
- While all Arabic prose and user-facing summaries must strictly obey the **Split & Continuation Rule**, internal sub-agent reports sent to the parent agent may include full fenced code blocks, stack traces, and exact file/line diagnostics so that zero technical precision is lost between agents.

---

## 2. Practical Examples: Split & Continuation in Action

### ❌ WRONG (Inline English causes severe BiDi inversion):
```text
لجميع ألعاب الكمبيوتر تم تفعيل تقنية DLSS 5 وحقن ملفات DirectX أو Vulkan داخل تطبيق DLSS 5 Swapper.
```

### ✅ CORRECT (Split & Continuation with Empty Lines):
```markdown
لجميع ألعاب الكمبيوتر تم تفعيل تقنية:

DLSS 5

وحقن ملفات:

DirectX

أو:

Vulkan

داخل تطبيق:

`DLSS 5 Swapper`
```

---

## 3. Negative Constraints (Strictly Forbidden)
- ❌ Do NOT mix English and Arabic on the same line under any circumstances.
- ❌ Do NOT leave English terms inside Arabic sentences; always split before and continue after.
- ❌ Do NOT use single newlines between Arabic and English; always use empty lines (`\n\n`).
- ❌ Do NOT prepend Arabic prefixes to English words (e.g. `الـ Sub-agent`, `للـ Tool`).

Files in this skill

  • SKILL.md3.4 KB
  • references/bidi_formatting_guide.md3.2 KB
  • scripts/__pycache__/bilingual_formatter.cpython-312.pyc8.6 KB
  • scripts/bilingual_formatter.py6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.