Saltar al contenido
Skillpedia
Interfaces (UI/UX)28 mil · #9875

rtl-aware-development

Qué hace

Ofrece reglas para que aplicaciones y diseños funcionen en direcciones de izquierda a derecha y de derecha a izquierda, incluidos el CSS lógico, el aislamiento de texto y el espejado de iconos. Es para desarrolladores que construyen interfaces que deben admitir árabe, hebreo u otros idiomas RTL.

Cuándo usarla

  • ✓Cuando construyes o revisas un diseño que debe admitir idiomas de derecha a izquierda.
  • ✓Cuando el CSS usa valores de izquierda y derecha que deberían invertirse para texto RTL.
  • ✓Cuando el texto mixto en inglés y RTL, o las rutas de archivo, se ven mal en un menú o en una lista.

Link de la skill

https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/rtl-aware-development/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/rtl-aware-development/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi interfaz se rompe cuando cambio a árabe. Revisa el CSS y dime qué cambiar para que el diseño se invierta correctamente.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente comprueba la dirección del documento, sustituye los márgenes físicos de izquierda y derecha del CSS por propiedades lógicas y aísla el texto de dirección mixta. Solo espeja los iconos con significado direccional y deja en paz las marcas, los gráficos y los controles de medios.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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 lang and dir on 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 add row-reverse, CSS order, 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. clientX remains 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 scrollLeft can start at 0 and become negative. Prefer scrollIntoView({ inline: "nearest" }) or a tested direction-normalizing helper.
  • For Electron title bars, prefer native caption controls and use titleBarOverlay plus env(titlebar-area-*) for the safe content rectangle. Keep Windows/macOS native-control avoidance and trafficLightPosition physical; keep app navigation inside that rectangle logical. Mark interactive titlebar children app-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

Preguntas frecuentes

¿Qué es el CSS lógico?

Usa start y end en lugar de left y right, así que los diseños se invierten solos para el texto de derecha a izquierda.

¿Hay que espejar todos los iconos?

No. Solo se espejan los iconos con significado direccional, como atrás o siguiente.

¿Cómo se trata el texto mixto?

El texto desconocido recibe un atributo de dirección o una etiqueta bdi, y el código, las URL y las rutas se quedan de izquierda a derecha.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
28 mil
Posición en el ranking
#9875
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas