Skip to content
Back to skills

Rtl Bidi Lint

ASecurity

Use when reviewing or generating Arabic text, UI strings, HTML or Markdown that mixes RTL with LTR content, to catch digit mixing, unbalanced bidi isolates, stray LTR marks and hardcoded dir="ltr".

  • 24 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 5, 2026
ai-agentspythongitapi

Works with

  • api

Security analysis

A100/100

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

Scanned October 5, 2026

npx -y skills add h9-tec/arabic-ai-atlas --skill rtl-bidi-lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rtl Bidi Lint?

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

Security grade badge for Rtl Bidi Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/h9-tec-rtl-bidi-lint/badge)](https://www.skillsdirectory.com/skills/h9-tec-rtl-bidi-lint)

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: rtl-bidi-lint
description: Use when reviewing or generating Arabic text, UI strings, HTML or Markdown that mixes RTL with LTR content, to catch digit mixing, unbalanced bidi isolates, stray LTR marks and hardcoded dir="ltr".
---

# RTL / Bidi Lint

Runs a small stdlib-only linter over text files and explains each finding.

## Run

```
python ${CLAUDE_PLUGIN_ROOT}/skills/rtl-bidi-lint/bidi_lint.py <files...>
```

Output lines look like `path:line: CODE message`. Exit code 1 means findings, 0 means clean.

## Codes and fixes

| Code | Meaning | Fix |
| --- | --- | --- |
| `MIXED_DIGITS` | Arabic-Indic (٠-٩ or ۰-۹) and ASCII (0-9) digits on one line | Pick one digit system per document. Use ASCII for code, IDs, prices and data; Arabic-Indic only for prose when the audience expects it. |
| `UNBALANCED_ISOLATE` | U+2066, U+2067 or U+2068 opened without a matching U+2069 | Close every isolate. Wrap embedded LTR runs (names, URLs, code) as U+2068 ... U+2069 (first-strong isolate). |
| `LTR_MARK_IN_ARABIC` | U+200E sits between Arabic letters | Remove it. It breaks letter joining and shaping. If direction needs forcing, use an isolate around the foreign run instead. |
| `HARDCODED_LTR` | `dir="ltr"` on a line that contains Arabic | Use `dir="auto"` for user content, or `dir="rtl"` for known-Arabic blocks. |

## Procedure

1. Run the script on the files in question (or write the text to a temp file first).
2. For each finding, show the line and apply the fix from the table.
3. Re-run until exit code 0.

## Limits

The linter is line-based and heuristic. It does not render text, so check the final result visually when layout matters.

Files in this skill

  • SKILL.md1.6 KB
  • bidi_lint.py1.8 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.