# arabic rtl fix

> Fixes reversed or left-aligned Arabic, Hebrew, and Urdu text in Electron desktop apps via renderer injection.

arabic rtl fix is a free AI agent skill on Agensi by Omar Hussien, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Omar Hussien](https://www.agensi.io/creators/omar-hussien)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-08
- Security: scan passed (2026-10-08); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/arabic-rtl-fix
- Tags: ai-agents, electron, rtl-support, bidi, desktop-apps, automation

## About this skill

Arabic and Hebrew speakers often struggle with Electron-based desktop apps that render text in the wrong direction. While Chromium handles character shaping, it frequently defaults to LTR alignment, resulting in scrambled, unreadable paragraphs. This skill fixes the problem at the source by injecting a bidi-aware patch into the app's renderer.

### What it does
- **Electron detection** identifies if the target application is built on Electron by scanning for specific resource structures.
- **Safety validation** checks Electron fuses to prevent breaking apps that have integrity validation or ASAR loading restrictions enabled.
- **Automated extraction** unpacks `app.asar` archives and merges external native binaries to ensure the app remains functional post-patch.
- **Injection patching** inserts a battle-tested CSS/JS snippet into renderer HTML files to force `dir="auto"` behavior.
- **Atomic swapping** uses background watchers to replace application resources the moment the user closes the app, avoiding file-in-use errors.
- **Maintenance generation** creates local scripts for the user to easily roll back changes or re-apply the patch after an app update.

### How it works
1. **Identify** the application's resource directory and confirm Node.js version compatibility.
2. **Execute** a fuse check to ensure the application allows modified ASAR contents.
3. **Patch** the renderer HTML entry points by injecting the RTL snippet.
4. **Deploy** the changes by renaming the original archive and activating the patched folder.

### Frameworks & tools
The skill utilizes `node.js`, the `@electron/asar` utility for archive manipulation, and the `@electron/fuses` library for security checks. It relies on standard shell commands (`find`, `cp`, `mv`) and PowerShell for Windows process management.

### Why this beats prompting it yourself
Manual patching of Electron apps is high-risk, as missing the `app.asar.unpacked` merge or ignoring fuse settings will crash the application immediately. This skill handles the specific edge cases of file locking and code signing that generic prompts overlook.

### Use cases
- Fix reversed Arabic text in desktop apps like Slack, Discord, or Notion.
- Restore RTL support to Cursor or Claude Code after a software update.
- Patch custom internal Electron tools that lack native bidi support.
- Automate the rollback of patches if an application fails integrity checks.

### Known limitations
Does not fix terminal panels using `xterm.js` or native non-Electron applications. macOS users may need to re-sign the app ad-hoc after patching to satisfy Gatekeeper requirements.

## Requires

- Node.js
- @electron/fuses
- @electron/asar
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the arabic rtl fix skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill fix RTL text issues in desktop applications?

This skill automatically injects a bidirectional (bidi) patch into Electron-based software to fix common rendering bugs like reversed characters or left-aligned text in Arabic, Hebrew, and Urdu.

### Which AI agents and applications are compatible with this skill?

It is compatible with any AI agent capable of executing Node.js and shell commands, and it supports major Electron apps like Slack, Discord, Notion, and Cursor.

### Will applying this patch break my application or prevent it from launching?

The skill includes safety checks that scan for Electron fuses and integrity validation to ensure the patch won't crash the app or trigger security blocks.

### Can I undo the changes if I no longer need the RTL fix?

Yes, the skill automatically generates local maintenance scripts that allow you to roll back changes instantly or re-apply the patch after the application updates.

### Are there any specific requirements for using this on macOS versus Windows?

On macOS, modifying the application package may require an ad-hoc re-signature to satisfy Gatekeeper, while Windows users may need to grant temporary file-write permissions.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
