본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)28k · #9875

rtl-aware-development

하는 일

왼쪽에서 오른쪽, 오른쪽에서 왼쪽 방향 모두에서 앱과 레이아웃이 작동하도록 하는 규칙을 제공합니다. 논리적 CSS, 텍스트 분리, 아이콘 뒤집기 등을 포함합니다. 아랍어, 히브리어 같은 RTL 언어를 지원해야 하는 인터페이스를 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓오른쪽에서 왼쪽으로 쓰는 언어를 지원해야 하는 레이아웃을 만들거나 검토할 때.
  • ✓RTL 텍스트에서 뒤집혀야 할 left, right 값이 CSS에 있을 때.
  • ✓메뉴나 목록에서 영어와 RTL 텍스트, 파일 경로가 섞여 어색하게 보일 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/rtl-aware-development/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“아랍어로 바꾸면 제 인터페이스가 깨져요. CSS를 검토하고 레이아웃이 올바르게 뒤집히도록 무엇을 고쳐야 하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 문서의 방향을 확인하고, 물리적인 left, right CSS를 논리 속성으로 바꾸며, 방향이 섞인 텍스트를 분리합니다. 방향에 의미가 있는 아이콘만 뒤집고, 브랜드, 차트, 미디어 컨트롤은 그대로 둡니다.

기술 내용 (원본 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 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

자주 묻는 질문

논리적 CSS란 무엇인가요?

left, right 대신 start, end를 사용해 오른쪽에서 왼쪽으로 쓰는 텍스트에서도 레이아웃이 자동으로 뒤집히게 하는 방식입니다.

모든 아이콘을 뒤집어야 하나요?

아닙니다. 뒤로 가기나 다음처럼 방향의 의미가 있는 아이콘만 뒤집습니다.

섞인 텍스트는 어떻게 처리하나요?

방향을 알 수 없는 텍스트에는 dir 속성이나 bdi 태그를 붙이고, 코드, URL, 경로는 왼쪽에서 오른쪽으로 유지합니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬