Persian Rtl Uiのロゴ

Persian Rtl Ui

コミュニティ
MiladJoodi
persian-rtl-ui

ReactとTailwindで、自然なペルシャ語のRTLインターフェースを構築します。ペルシャ語UI、RTLレイアウト、コンポーネントのスタイル設定、フォーム、ダッシュボード、LTRインターフェースのRTL化に使います。論理プロパティを使ったCSS、ペルシャ語のタイポグラフィと数字、ジャラーリー暦の日付、イランのフォーム設計パターン、アクセシブルなRTL動作、トークンベースのスタイル設定を扱います。

概要

公開者MiladJoodi
リポジトリskills
スキル名persian-rtl-ui
スター
24
フォーク
1
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    MiladJoodiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Persian Rtl Ui」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/MiladJoodi/skills/tree/main/skills/persian-rtl-ui
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/persian-rtl-ui .claude/skills/persian-rtl-ui
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPersian Rtl Uiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPersian Rtl Uiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Persian Rtl Uiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Persian RTL UI

Build Persian interfaces as RTL interfaces from the beginning. Adding dir="rtl" to an existing LTR interface is not enough.

Apply these rules to layout, typography, forms, overlays, icons, numbers, dates, accessibility and Iranian product patterns.

1. Direction

  • Set the document direction with <html lang="fa" dir="rtl">. Do not add dir="rtl" to individual components unless a specific nested section requires a different direction.
  • Prefer logical CSS utilities: ms-*, me-*, ps-*, pe-*, start-*, end-*, text-start, text-end, border-s, border-e, rounded-s-*, rounded-e-*, inset-s-*, inset-e-*.
  • Avoid physical-direction utilities when the layout should adapt to RTL: ml-*, mr-*, pl-*, pr-*, left-*, right-*, text-left, text-right, border-l, border-r.
  • Use gap-* instead of space-x-*.
  • Do not add flex-row-reverse just to compensate for RTL.
  • Directional icons should match RTL. For example, "next" points left and "back" points right.
  • Keep inherently LTR values such as phone numbers, email, OTP, IBAN, card numbers, URLs and code in dir="ltr" where appropriate.

2. RTL components

RTL must work beyond the main document flow.

Check direction, alignment and positioning in:

  • Dialog
  • Popover
  • Tooltip
  • Dropdown Menu
  • Context Menu
  • Select and Combobox
  • Drawer and Sheet
  • Toast
  • Nested menus
  • Portals
  • Floating elements
  • Absolutely positioned elements
  • Charts and chart tooltips

Do not assume that a component is RTL-safe just because its parent has dir="rtl".

3. Typography

  • Use the Persian font configured by the project.
  • Do not replace it with a Latin-first font such as Inter, Roboto or Geist unless explicitly required.
  • Do not add artificial letter spacing to Persian text.
  • Avoid tracking-* on Persian text unless there is a deliberate design reason.
  • Use appropriate Persian line-height and the font's available weights.
  • Keep Latin text in its natural form inside mixed Persian content.
  • Use <bdi> or dir="ltr" when a Latin value needs explicit isolation.
  • Do not uppercase Persian text.

Example:

text
کد سفارش SKU-2048

should remain a Persian sentence with the SKU isolated only when necessary, not become an entirely LTR block.

4. Numbers, money and dates

Use Persian digits for visible Persian content when appropriate:

text
۳ کالا
۲ ساعت پیش
۱٬۲۵۰٬۰۰۰ تومان
۲۰٪ تخفیف

Use:

  • ٬ for thousands
  • ٫ for decimals
  • ٪ for percentages

Money should place the unit after the number:

text
۱۲٬۴۵۰٬۰۰۰ تومان

Keep machine-readable values such as API payloads, JSON, database values and form values in their required format. Convert them at the presentation layer.

For Persian-first products, use the Jalali calendar when the product requires it. Do not rely on toLocaleDateString alone when an actual Jalali conversion is required.

5. Forms

  • Keep labels visible and separate from placeholders.
  • Use htmlFor and correctly associated inputs.
  • Phone inputs should support common Iranian formats such as ۰۹۱۲۳۴۵۶۷۸۹ and +989123456789 when required.
  • Use dir="ltr" for phone, OTP, email, IBAN, card and URL inputs where it improves input behavior.
  • OTP inputs should support paste and autoComplete="one-time-code" where applicable.
  • Normalize Persian and Arabic-Indic digits before validation when the field accepts numeric input.
  • Show validation errors close to the relevant field and use aria-invalid where appropriate.
  • Keep the primary action clear and visually distinct.
  • Avoid unnecessary visual clutter in forms.

6. Colors and shape

Use the project's existing semantic design tokens.

Prefer tokens such as:

text
background
foreground
card
primary
secondary
muted
accent
border
input
ring
destructive

Do not introduce arbitrary colors or hard-coded values inside components when an existing token can be used.

Use the project's radius system consistently.

7. Motion

  • Keep interface animations short and purposeful.
  • Respect prefers-reduced-motion.
  • Directional animations should follow RTL.
  • Prefer animating transform and opacity instead of layout properties such as top, left and width.

8. Accessibility

  • Preserve a visible focus state.
  • Do not use outline-none without an equivalent focus treatment.
  • Give icon-only buttons meaningful Persian aria-label values.
  • Preserve keyboard navigation and focus management in dialogs and menus.
  • Use lang="fa" for Persian document content.
  • Make sure muted text remains readable in both light and dark themes.

9. Iranian product patterns

When the product requires Iranian-specific UI patterns, use existing project components and utilities instead of reimplementing them unnecessarily.

Common patterns include:

  • شماره موبایل
  • کد ملی
  • شماره شبا
  • شماره کارت
  • کد پستی
  • پلاک خودرو
  • استان، شهر، خیابان، پلاک، واحد
  • تومان و ریال
  • تقویم شمسی
  • وضعیت پرداخت
  • روش‌های ارسال

Examples of natural field structures:

text
استان
شهر
آدرس
پلاک
واحد
کد پستی

Do not invent validation rules for Iranian identifiers without checking the project's existing implementation or requirements.

10. Copy inside components

User-facing text should be natural Persian:

  • labels
  • placeholders
  • empty states
  • errors
  • loading states
  • confirmations
  • notifications
  • accessible labels

Keep code identifiers, props, variables, component names and file names in English.

Use the persian-ui-copy skill when available for detailed Persian UI wording and terminology.

11. RTL review

Before returning the implementation, inspect the complete interface.

Pay particular attention to:

  • nested components
  • Portal-based components
  • Dropdowns
  • Tooltips
  • Popovers
  • Charts
  • Dialogs
  • absolute-positioned elements
  • floating controls
  • directional icons
  • mixed Persian and Latin content

A component that looks correct in the main DOM can still be incorrect when rendered through a Portal or nested inside another component.

12. Final checklist

  1. Document direction is RTL.
  2. Layout uses logical CSS utilities.
  3. No unnecessary physical-direction utilities.
  4. No unnecessary flex-row-reverse.
  5. Persian text has no artificial letter spacing.
  6. LTR values are handled with the correct direction.
  7. Visible Persian numbers and money use the product's formatting rules.
  8. Jalali dates are used where required.
  9. Colors and radius come from existing design tokens.
  10. Directional icons match RTL.
  11. Portals, overlays and nested components have been checked.
  12. Focus states and accessible labels are preserved.
  13. User-facing text is natural Persian.
  14. Iranian-specific patterns use existing project utilities where available.

よくある質問

AIスキル「Persian Rtl Ui」では何ができますか?

ReactとTailwindで、自然なペルシャ語のRTLインターフェースを構築します。ペルシャ語UI、RTLレイアウト、コンポーネントのスタイル設定、フォーム、ダッシュボード、LTRインターフェースのRTL化に使います。論理プロパティを使ったCSS、ペルシャ語のタイポグラフィと数字、ジャラーリー暦の日付、イランのフォーム設計パターン、アクセシブルなRTL動作、トークンベースのスタイル設定を扱います。

TypingMindでPersian Rtl Uiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Persian Rtl Uiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPersian Rtl Uiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/MiladJoodi/skills/tree/main/skills/persian-rtl-uiを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Persian Rtl Uiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Persian Rtl Uiで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPersian Rtl Uiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Persian Rtl Ui」は無料ですか?

はい。MiladJoodiがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇