- Home
- Skills
- Frontend & Web Apps
- RTL mirror
Works with the AI Agents you already use
RTL mirror
Audit and fix web projects for RTL support, converting physical properties to logical ones for Arabic localization.
$3
RTL mirror
Example session with this skill installed
Run a scan on my React/Tailwind project in the ./src folder. I need to support Arabic and English. Fix the safe Tailwind classes automatically and give me a report.
- Read your context and instructions
- Compiled the rtl mirror
- Generated the UI component
I have scanned the ./src directory and applied safe RTL fixes to your Tailwind classes. 42 files were modified. Physical properties like ml-, pr-, and text-left have been converted to ms-, pe-, and text-start.
RTL Audit & Fix Results
| Category | High Severity | Medium Severity | Fixed |
|---|---|---|---|
| Layout (CSS/Tailwind) | 0 | 12 | 84 |
| Typography | 3 | 5 | 0 |
| Bidirectional Content | 4 | 2 | 0 |
| Localization (Dates/Currency) | 1 | 3 | 0 |
Findings & Changes
Automated Fixes: Successfully migrated 84 Tailwind utilities to logical properties (e.g., rounded-l-lg to rounded-s-lg).
Typography (High): Found letter-spacing in 3 CSS files. This will break Arabic script joining. Recommended fix: :lang(ar) { letter-spacing: 0 }.
Bidi (High): Phone number inputs in ContactForm.tsx lack dir="ltr". These will display incorrectly in RTL mode.
- Root Attribute: The
<html>tag inlayout.tsxis missing dynamicdirandlangattributes.
Next steps
- Review the diff in
src/components/to ensure the logical property migration matches your design intent. - Add the
:lang(ar)overrides fromtemplates/rtl-base.cssto your global stylesheet to fix cursive text joining. - Manually wrap phone number and email display fields in
<bdi dir="ltr">to prevent punctuation mirroring.
ContactForm.tsx
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Layouts break when you flip them to Arabic. Static text aligns incorrectly, icons point the wrong way, and cursive typography falls apart due to legacy letter-spacing rules. This skill audits your web project for RTL (Right-to-Left) readiness and automates the migration from physical to logical properties.
What it does
- Static analysis Scans CSS, HTML, JSX, Vue, and Svelte files for hardcoded directional properties like
margin-leftortext-align: right. - Automated fixing Safely converts physical CSS and Tailwind 3.3+ utilities into logical counterparts like
margin-inline-startorms-4. - Typography auditing Identifies broken cursive joining caused by letter-spacing and flags missing
dirattributes on root elements. - Bidi handling Detects improper handling of mixed Arabic/Latin text and phone numbers that must remain LTR.
- Localized reporting Generates a client-ready QA report with a readiness score, categorized by severity and effort.
How it works
- Orient Run a project-wide check to identify the stack, i18n method, and language switching logic.
- Scan Execute the
rtl_scan.pyscript to generate a baseline report of layout, typography, and form errors. - Auto-fix Apply the
--fixflag to automatically update CSS and Tailwind classes without changing LTR appearance. - Manual Review Address high-severity findings that require judgment, such as directional transforms, icons, and complex date/currency formatting.
Frameworks & tools
Works with plain CSS, SCSS, Tailwind CSS 3.3+, React, Next.js, Vue, Nuxt, and Svelte. The scanner requires Python 3.8+.
Why this beats prompting it yourself
Generic prompts often suggest "flipping" everything, which breaks logos, media controls, and phone numbers. This skill uses a specialized regex engine to target only safe properties while providing a structured reference for Maghreb-specific locale data like TND currency and Western digit defaults.
Use cases
- Migrating a Tailwind-based React dashboard for a client in Tunisia or Saudi Arabia.
- Auditing a bilingual French/Arabic site for bidirectional text rendering bugs.
- Preparing a legacy SCSS codebase for multi-language support by switching to logical properties.
- Generating a technical debt report for RTL support before a project launch in the MENA region.
Known limitations
The scanner is regex-based and may produce false positives on non-style objects. It cannot perform visual regression testing; a manual browser check is required to confirm layout integrity.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Regex-based scanner may flag non-style objects. Does not support JS-in-CSS objects or complex transforms automatically. Manual visual check required for layout confirmation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 12 days ago
- Software
Git