Skip to content

Commit 07bcb8a

Browse files
committed
feat: enhance Hebrew user experience with personalized address options and RTL extension installation instructions
1 parent f1f1306 commit 07bcb8a

1 file changed

Lines changed: 82 additions & 38 deletions

File tree

.claude/commands/learn/setup.md

Lines changed: 82 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,86 @@ Set `session.language` to `"he"` or `"en"`. Use this language for all communicat
3232

3333
---
3434

35+
## B.1. פנייה אישית (עברית בלבד)
36+
37+
**Run this section only if `session.language == "he"`. Skip entirely if English was selected.**
38+
39+
Use `AskUserQuestion`:
40+
41+
```
42+
question: "איך להתייחס אליך בשיחה?"
43+
header: "פנייה"
44+
options:
45+
- label: "אתה (יחיד זכר)"
46+
description: "פנייה בלשון זכר"
47+
- label: "את (יחיד נקבה)"
48+
description: "פנייה בלשון נקבה"
49+
- label: "ניטרלי / מעורב"
50+
description: "ללא פנייה מגדרית — מתאים לקבוצות מעורבות או העדפה אישית"
51+
- label: "רבים / רבות"
52+
description: "פנייה בלשון רבים — ציין אם זכר (אתם) או נקבה (אתן)"
53+
```
54+
55+
*(The tool auto-adds an "Other" option for free text — use that value as-is.)*
56+
57+
Save the result as `session.address`. Examples:
58+
- "אתה (יחיד זכר)" → `"masculine"`
59+
- "את (יחיד נקבה)" → `"feminine"`
60+
- "ניטרלי / מעורב" → `"neutral"`
61+
- "רבים / רבות" → `"plural-m"` or `"plural-f"` (ask follow-up if needed)
62+
- free text → save verbatim as `"other:<text>"`
63+
64+
**Use `session.address` for all Hebrew communication from this point on.**
65+
66+
---
67+
68+
## B.2. RTL Extension for Hebrew Users
69+
70+
**Run this section only if `session.language == "he"`. Skip entirely if English was selected.**
71+
72+
First, check if the extension is already installed:
73+
74+
```powershell
75+
code --list-extensions | Select-String "yechielby.claude-code-rtl"
76+
```
77+
78+
**If already installed:** skip this section entirely — no message needed.
79+
80+
**If not installed:** use `AskUserQuestion`:
81+
82+
```
83+
question: "האם להתקין את תוסף ה-RTL?"
84+
header: "תוסף RTL"
85+
options:
86+
- label: "כן, התקן"
87+
description: "yechielby.claude-code-rtl — משפר תצוגת עברית ב-Claude Code"
88+
- label: "לא תודה"
89+
description: "דלג על שלב זה"
90+
```
91+
92+
**If yes:** first tell the user:
93+
94+
> "מתקין את התוסף. שים לב שהתקנה עלולה לקטוע את השיחה — אם זה יקרה: אם השיחה עדיין פתוחה, כתוב **המשך**; אם נסגרה, פתח שיחה חדשה וכתוב **`/learn setup`**."
95+
96+
Then run:
97+
98+
```powershell
99+
code --install-extension yechielby.claude-code-rtl
100+
```
101+
102+
After the command completes, add:
103+
104+
> "לאחר שה-extension ייטען, הפעל מצב אוטומטי פעם אחת:
105+
> `Ctrl+Shift+P`**Activate RTL (Auto)**
106+
>
107+
> **למה זה חשוב?** בלי מצב זה, כל הטקסט מוצג משמאל לימין — עברית מופיעה הפוכה, פסקאות מתחילות בצד הלא נכון, והקריאה מסורבלת. מצב Auto מזהה לבד איזה בועת שיחה היא עברית ואיזו אנגלית, ומסדר כל אחת בכיוון הנכון — בלי שתצטרך לעשות כלום.
108+
>
109+
> התוסף מוסיף כפתור קטן בשורת הסטטוס בתחתית המסך — משם ניתן בכל עת לשנות מצב או לבטל לחלוטין."
110+
111+
**If no:** skip silently and continue to section C.
112+
113+
---
114+
35115
## C. Course Selection
36116

37117
Use the `AskUserQuestion` tool to display a course picker:
@@ -139,7 +219,8 @@ Save `~/skill-tutor-tutorials/settings.json`:
139219
```json
140220
{
141221
"session": {
142-
"language": "he"
222+
"language": "he",
223+
"address": "masculine"
143224
},
144225
"course": {
145226
"name": "ai-dev",
@@ -189,40 +270,3 @@ if (!(Test-Path $moduleDest)) { New-Item -ItemType Directory -Force -Path $modul
189270
Copy-Item -Force "$PWD\.claude\commands\learn\*.md" "$moduleDest\"
190271
```
191272

192-
---
193-
194-
## G. RTL Extension for Claude Code (VSCode)
195-
196-
First, check if the extension is already installed:
197-
198-
```powershell
199-
code --list-extensions | Select-String "yechielby.claude-code-rtl"
200-
```
201-
202-
**If the extension is already installed:** skip this section entirely — no message needed.
203-
204-
**If not installed:** use the `AskUserQuestion` tool:
205-
206-
```
207-
question: "קיים תוסף VSCode שמשפר את חוויית Claude Code בעברית (RTL). האם להתקין אותו?"
208-
header: "תוסף RTL"
209-
options:
210-
- label: "כן, התקן"
211-
description: "yechielby.claude-code-rtl — משפר תצוגת עברית ב-Claude Code"
212-
- label: "לא תודה"
213-
description: "דלג על שלב זה"
214-
```
215-
216-
**If yes:** run the following command and confirm success:
217-
218-
```powershell
219-
code --install-extension yechielby.claude-code-rtl
220-
```
221-
222-
After installing, briefly explain how to use it (in the session language):
223-
- The extension adds an RTL toggle button in the Claude Code panel.
224-
- Click it (or use the command palette: "Toggle RTL") to switch the chat direction to right-to-left.
225-
- Useful when Claude's responses are in Hebrew and the text appears misaligned.
226-
- No restart needed — takes effect immediately.
227-
228-
**If no:** skip silently.

0 commit comments

Comments
 (0)