Skills / rtl-check
rtl-check
After editing UI code in a project that supports right-to-left languages (it has i18n.config.json with an Arabic locale), check the changed files for RTL problems such as physical Tailwind classes, hardcoded dir="ltr", unflipped directional icons and locale-less number or date formatting. Read-only. Use when you have just written or changed React, Next.js or CSS files in such a project. Don't use in projects without RTL support.
- Author
- agentsaisle
- Latest
- v0.1.1
- Aisle
- i18n, web
- Works with
- Claude Code, Codex, Cursor
- Source
- HazemSalah29/agentsaisle
- Stars
- 2
Install
Install rtl-check
npx @agentsaisle/cli add rtl-checkInstalls into your project's skills folder. Add --global to install it for every project.
Runs scriptsThis skill includes scripts
Your agent may run these scripts on your machine. A maintainer has read every one in full, and the CLI lists the files when you install. You can read them on GitHub first.
Read the files on GitHubAudit
- Critical
- 0
- High
- 0
- Medium
- 0
- Low
- 0
7 files · audited 2026-10-29 · rules 1.0.0
No findings.
What this skill can use
Tools
- Read
- Grep
- Glob
- Bash(node *)
- Bash(git diff *)
- Bash(git status *)
Scripts
- scripts/_classmap.mjs
- scripts/_lib.mjs
- scripts/rtl-scan.mjs
Domains mentioned
None
Automated checks found no known risky patterns. This is not a guarantee of safety. How audits work · Read the rules
Show this grade in a README
The badge updates when the registry is rebuilt. Paste this Markdown into the README:
[](https://agentsaisle-vercel.vercel.app/skills/rtl-check)SKILL.md
Rendered from commit 823cfe8
RTL check
Use when
- You changed UI files (
.tsx,.jsx,.css) in a project withi18n.config.jsonlisting an Arabic locale.
Don't use when
- The project has no
i18n.config.json, or no Arabic locale in it. - The task is a full Arabic conversion. That is
/arabic-rtl.
Steps
- Get the changed files:
git diff --name-onlyplusgit status --shortfor new files. Keep only source and style files. - Run
node <skill>/scripts/rtl-scan.mjs <file> <file> ...with those paths. Add--errors-onlyfor a quiet pass. - Fix each
errorin the code you just wrote, using the suggestion in the output. Logical classes:ms-*,me-*,ps-*,pe-*,start-*,end-*,text-start,rounded-s-*. - For
warns in your own new code, fix the clear ones (explicit locale forIntl,DirectionalIconfor arrows). Mention the rest in one line. - Do not edit files you did not change. Do not run a codemod; suggest
/arabic-rtlif many old files fail.
Budget
-
Search first (grep, glob, symbol search). Read line ranges, not whole files.
-
Read at most 8 files per step. If you need more, write down what you learned and narrow the question.
-
Do not re-read a file you just wrote or edited.
-
Prefer the smallest command output that answers the question: head, tail, quiet flags, filtered lists.
-
One scan call for all changed files; do not read the files again unless a finding needs context.
Output
- One line:
RTL check: N error(s), M warning(s)and the fixes made. Nothing if the scan is clean and the project has no Arabic locale.
Done when
- The scan of the changed files reports 0 errors.
Version history
| Version | Commit | Install |
|---|---|---|
| 0.1.1latest | 823cfe8 | add rtl-check |