rtl-aware-development
यह क्या करती है
यह ऐप्स और layouts को left-to-right और right-to-left, दोनों दिशाओं में काम करने के नियम देती है, जिसमें logical CSS, टेक्स्ट अलगाव और icons का mirroring शामिल है। यह उन डेवलपर्स के लिए है जिन्हें Arabic, Hebrew या दूसरी RTL लिपियाँ समर्थित करनी हैं।
कब इस्तेमाल करें
- ✓जब आप ऐसा layout बना या समीक्षा कर रहे हों जो right-to-left भाषाएँ समर्थित करे।
- ✓जब CSS में left और right मान हों जो RTL टेक्स्ट के लिए पलटने चाहिए।
- ✓जब मेनू या सूची में मिश्रित English और RTL टेक्स्ट या file paths गलत दिखें।
Skill का लिंक
https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/rtl-aware-development/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Arabic पर बदलने पर मेरा इंटरफ़ेस टूट जाता है। CSS की समीक्षा कीजिए और बताइए कि क्या बदलूँ, ताकि layout सही पलटे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट document की दिशा जाँचता है, भौतिक left और right CSS को logical properties से बदलता है, और मिश्रित-दिशा टेक्स्ट को अलग करता है। वह केवल दिशात्मक अर्थ वाले icons को mirror करता है, और brands, charts व media controls को छोड़ देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
RTL-Aware Development
Treat direction as independent from language. Test English in both directions as well as real RTL and mixed-script content.
Guidelines
- Set
langanddiron the document, and propagate direction through component providers used by portaled menus and popovers. Do not change the selected locale merely to force RTL. - Keep DOM and focus order semantic. Flexbox and Grid already follow
dir; do not addrow-reverse, CSSorder, or reversed markup just to mirror a layout. - Prefer logical CSS for semantic layout. Reserve physical coordinates for pointer positions, canvas geometry, native window controls, and other genuinely physical placement.
/* Avoid */
padding-left: 12px;
right: 0;
border-right: 1px solid;
text-align: left;
/* Prefer */
padding-inline-start: 12px;
inset-inline-end: 0;
border-inline-end: 1px solid;
text-align: start;
- Isolate mixed-direction text. Use
dir="auto"or<bdi>for unknown text; keep code, URLs, IDs, and filesystem paths LTR without forcing the surrounding component LTR.
<span class="file-row"><bdi dir="auto">README.md</bdi></span> <bdi dir="ltr"><code>C:\src\app.ts</code></bdi>
- Mirror directional meaning, not every image. Back/forward, previous/next, disclosure, indentation, and directional progress may need mirroring. Do not mirror brands, clocks, media controls, charts, or text. Reverse physical gradients,
translateX, SVG transforms, and animation deltas explicitly. - Map interactions through direction.
clientXremains physical; resizing a logical edge needs an RTL-aware delta. Logical previous/next keyboard controls may swap ArrowLeft/ArrowRight. Follow the relevant WAI-ARIA widget pattern. - Do not assume LTR scrolling. RTL
scrollLeftcan start at0and become negative. PreferscrollIntoView({ inline: "nearest" })or a tested direction-normalizing helper. - For Electron title bars, prefer native caption controls and use
titleBarOverlayplusenv(titlebar-area-*)for the safe content rectangle. Keep Windows/macOS native-control avoidance andtrafficLightPositionphysical; keep app navigation inside that rectangle logical. Mark interactive titlebar childrenapp-region: no-drag. - Verify behavior, not screenshots alone. Check computed styles, pseudo-element geometry, hit zones, focus order, keyboard behavior, submenu direction, zoom/scaling, and both LTR and RTL scroll endpoints.
Test Matrix
- English + LTR
- English + forced RTL
- A real RTL locale + RTL
- Mixed RTL/LTR content, long labels, numbers, code, and paths
- Keyboard, pointer resize, scrolling, menus/submenus, and Electron titlebar controls in both directions
References
- RTL Styling 101, Ahmad Shadeed
- CSS-Tricks: RTL Styling 101
- CSS-Tricks: CSS Logical Properties and Values
- W3C: Structural markup and right-to-left text
- W3C: Inline bidirectional markup
- MDN: CSS logical properties and values
- MDN:
dir - MDN:
scrollLeft - web.dev: Logical properties
- Electron: Custom title bar
- WAI-ARIA: Window splitter pattern
- Kobalte: I18n Provider
अक्सर पूछे जाने वाले सवाल
logical CSS क्या है?
यह left और right के बजाय start और end इस्तेमाल करता है, इसलिए layouts right-to-left टेक्स्ट के लिए अपने-आप पलट जाते हैं।
क्या हर icon को mirror करना चाहिए?
नहीं। केवल दिशात्मक अर्थ वाले icons, जैसे back या next, mirror होते हैं।
मिश्रित टेक्स्ट कैसे संभाला जाता है?
अज्ञात टेक्स्ट को direction attribute या bdi tag मिलता है, और code, URLs व paths left-to-right रहते हैं।
जानकारी
लेखक का मूल विवरण
OpenCode Desktop should be RTL-aware. Use when implementing or reviewing RTL/LTR behavior in the web app, desktop app, CSS, menus, scrolling, resizing, icons, mixed-direction text, or Electron title bars.
repo: Kilo-Org/kilocode
लोकप्रियता
- GitHub स्टार
- 28k
- रैंकिंग में स्थान
- #9875
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
chart
28kआपके एजेंट को आपके माँगने पर bar, line, pie, scatter या मिलते-जुलते chart बनाने देती है, डेटा दिखाने वाले chart tool से।
jetbrains-sandbox
28kआपके एजेंट को Linux cloud sandbox में IntelliJ इंस्टॉल करने देती है, साथ में browser दृश्य और IDE चलाने के tools, जाँच या स्वचालन के लिए।
effect
28kआपके एजेंट को Effect के साथ TypeScript लिखना सिखाती है, typed services, schemas और workflows के लिए मौजूदा v4 APIs का उपयोग करते हुए, पुराने उदाहरणों के बजाय।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।