16 במאי 2026

המדריך המלא לפקודות ה-Slash ב-Claude Code: ה-Cheat Sheet שלא ידעתם שאתם צריכים

סקירה מקיפה של כל פקודות ה-Slash המובנות ב-Claude Code, בחלוקה לפי תרחישי עבודה אמיתיים והמלצות לשימוש יומיומי.

רוב המפתחים שמשתמשים ב-Claude Code לא מכירים אפילו חצי מהפקודות שעומדות לרשותם. זה לא בגלל שהן חבויות – מספיק להקליד / כדי לקבל את הרשימה המלאה – אלא פשוט כי מדובר ברשימה ארוכה, לא מספיק מאורגנת, שלא מספקת שום אינדיקציה לגבי מה שבאמת חשוב במהלך העבודה השוטפת.

זה בדיוק המדריך שהייתי רוצה לקבל כשעשיתי את הצעדים הראשונים שלי בכלי. ריכזתי כאן את כל פקודות ה-slash המובנות, כשהן מחולקות ומאורגנות לפי שלבי העבודה האמיתיים שלכם ב-session – בתוספת חוות דעת פרקטית לגבי אילו פקודות כדאי לכם לאמץ לשגרת העבודה היומית שלכם.

עוד לפני שכותבים שורת קוד אחת: /init

אם יש פקודה אחת שמבדילה בין מפתחים שנלחמים ב-Claude לבין אלו שמפיקים ממנו עבודה אמיתית ואיכותית, זו ללא ספק /init.

מריצים אותה פעם אחת בלבד עם תחילת העבודה על פרויקט חדש. Claude יתחיל 'לראיין' אתכם על בסיס הקוד (codebase), ה-stack הטכנולוגי, מתודולוגיית העבודה שלכם וממה כדאי להימנע – ואז ירכז את כל המידע הזה לקובץ CLAUDE.md בתיקיית השורש (root) של הפרויקט. הקובץ הזה ייטען אוטומטית בכל פעם שתפתחו session חדש.

בלי להריץ את הפקודה הזו, Claude יתחיל מאפס בכל פעם מחדש. איתה, הוא נכנס לפרויקט כמו מפתח סיניור מנוסה שכבר מכיר את ה-README ואת הסטנדרטים של הצוות בעל פה.

חמש דקות של הגדרה ראשונית, שיחזירו את ההשקעה בכל session עתידי.

פקודות חובה לשגרת העבודה היומית

אלו פקודות שאינן בגדר רשות – מומלץ להכניס אותן ישירות לזיכרון השריר שלכם.

פתיחת Session:

  • /resume – המשך עבודה ישירות מהנקודה בה עצרתם. אין סיבה להתחיל session מאפס ('קר') כשאפשר להמשיך session קיים ושמור.
  • /context – מציג תמונת מצב של נפח ה-context הנוכחי. מומלץ לבדוק זאת לפני שיוצאים למשימות מורכבות כדי לא להיתקל במגבלת ה-context באמצע העבודה.
  • /model – מאפשר לוודא באיזה מודל אתם משתמשים כרגע ולעבור ביניהם במידת הצורך. קריטי לניהול עלויות וביצועים.

במהלך הפיתוח:

  • /plan – מנחה את Claude למפות את אסטרטגיית הפתרון ולתכנן את הצעדים לפני שהוא ניגש לשינוי קבצים בפועל. זהו 'מהלך הארכיטקט' הקלאסי – חושבים לפני שכותבים.
  • /compact – דוחס את היסטוריית השיחה ככל שה-session מתארך. הפקודה מפנה מקום יקר בחלון ה-context מבלי לאבד את חוט המחשבה וההקשר של המשימה.
  • /diff – מציג את כל השינויים שטרם עברו commit בממשק ויזואלי אינטראקטיבי. מומלץ להריץ לפני כל commit כדי לוודא שלא השתרבבו שינויים לא רצויים.

לפני ה-Merge:

  • /security-review – סורק את השינויים הממתינים ומחפש חולשות אבטחה פוטנציאליות (בעיות Injection, כשלי הזדהות, חשיפת מידע רגיש וכדומה). שלב חובה לפני כל merge.
  • /review – מבצע סקירת קוד (Code Review) מקיפה ישירות בתוך ה-session הנוכחי.

כשמשהו משתבש:

  • /doctor – מריץ בדיקת תקינות (health check) מלאה להתקנה של Claude Code. לחיצה על המקש f תאפשר ל-Claude לתקן אוטומטית את הבעיות שנתגלו.
  • /rewind – מחזיר את השיחה ואת שינויי הקוד לנקודת ביקורת (checkpoint) קודמת. כפתור ה-Undo האמיתי שכולנו צריכים לפעמים.

פקודות מתקדמות שכדאי להכיר

אלו פקודות שלא תשתמשו בהן בכל שעה, אבל הן ישדרגו משמעותית את העבודה שלכם כשתזדקקו להן.

/background – מעביר את ה-session הנוכחי לעבודה כסוכן (agent) ברקע. הטרמינל שלכם מתפנה מיד לעבודה אחרת בזמן ש-Claude ממשיך לבצע את המשימה מאחורי הקלעים. ניתן לעקוב אחר ההתקדמות באמצעות /tasks.

/batch – מאפשר לבצע שינויים רחבי היקף במקביל על פני כל ה-codebase. Claude יפרק את המשימה הגדולה לתתי-משימות עצמאיות, ויקצה סוכן (sub-agent) ייעודי לכל אחת מהן. אידיאלי לביצוע refactoring מורכב על פני קבצים רבים.

/branch – מפצל את השיחה הנוכחית לענף חדש תוך שמירה על שיחת המקור. שימושי במיוחד כשרוצים לבחון כיוון פיתוח ניסיוני או מסוכן מבלי 'ללכלך' את ה-session המרכזי.

/effort [low/medium/high/max] – מאפשר לשלוט ברמת 'המאמץ המחשבתי' של Claude לפני מתן תשובה. ברירת המחדל מצוינת לרוב המשימות השוטפות, אך מומלץ להעלות ל-high או max כאשר נדרשות החלטות ארכיטקטוניות מורכבות.

/memory – פותח ועורך ישירות את קבצי הזיכרון (CLAUDE.md). בנוסף, מאפשר לנהל את ה-auto-memory (תובנות ש-Claude למד עצמאית במהלך העבודה). זהו למעשה הזיכרון לטווח ארוך של הסוכן שלכם.

/fewer-permission-prompts – סורק את היסטוריית ה-sessions ומוסיף פעולות קריאה (read-only) נפוצות לרשימת האישורים המורשים מראש. חוסך מ-Claude את הצורך לבקש מכם אישור חוזר ונשנה על פעולות טריוויאליות שהוא מבצע בכל ריצה.

המדריך המלא לפקודות ה-Slash

ריכוז מקיף של כל פקודות ה-slash ב-Claude Code, בחלוקה נושאית לפי שלבי העבודה השונים.

Cheat Sheet מוכן לשימוש – מומלץ לשמור במועדפים

# Claude Code - Built-In Commands Reference
### AI Architects Lab | May 2026 | Rani Ifrah

> This guide covers every built-in slash command in Claude Code.
> These are hardcoded into the tool - not skills or custom workflows.
> Organized by **situation**, not alphabetically - because architects think in context, not dictionaries.

---

## How Commands Work

Type `/` in the Claude Code prompt to see available commands. Built-in commands are always there. Skills (custom workflows) also appear in the same list.

**Rule of thumb:** If you didn't create it and it's not in your `~/.claude/` folder - it's built-in.

---

## 1. Starting a New Project

| Command | What it does |
|---|---|
| `/init` | Creates a `CLAUDE.md` file in your project - this is how you give Claude permanent memory about your project. Run this on every new project before writing a single line. |
| `/memory` | Opens and edits your `CLAUDE.md` memory files. Also manages auto-memory (things Claude learns automatically). Think of this as the agent's long-term brain. |
| `/permissions` | Controls what tools Claude is allowed to use without asking - file editing, bash commands, MCP calls. Use this to reduce friction or tighten security. |
| `/mcp` | Connects Claude to external tools via MCP servers (APIs, databases, Slack, etc.). This is how the agent gets "hands" beyond your local machine. |
| `/agents` | Define and manage background sub-agents for your project. Used for parallel work and complex orchestration. |
| `/hooks` | View and configure hooks - scripts that run automatically before or after Claude does something (e.g., run tests after every file edit). |

---

## 2. During a Work Session

### Controlling the Model

| Command | What it does |
|---|---|
| `/model` | Switch the AI model mid-session. Claude Sonnet, Opus, Haiku - each has different speed/cost/intelligence tradeoffs. Changing model clears the cache. |
| `/effort [low/medium/high/xhigh/max]` | How hard Claude thinks before responding. `low` = fast, cheap. `max` = slow, expensive, deeply reasoned. Default is usually fine - crank it up for architecture decisions. |
| `/fast` | Toggle fast mode on/off. Optimizes for speed. Use when you're doing repetitive, simple tasks and don't need deep reasoning. |

### Managing Context

| Command | What it does |
|---|---|
| `/context` | Shows a visual map of how full your context window is. Includes warnings when you're running low. Pass `/context all` for a full breakdown per item. |
| `/compact [instructions]` | Compresses the conversation history into a summary, freeing up context space. You can add instructions to guide what gets kept. Use this when sessions get long. |
| `/clear` | Starts a completely fresh conversation. Previous session is saved and accessible via `/resume`. Aliases: `/reset`, `/new` |
| `/btw <question>` | Ask a quick side question without adding it to your main conversation thread. Keeps the context lean. |

### Planning Before Building

| Command | What it does |
|---|---|
| `/plan [description]` | Enters plan mode. Claude maps out the approach before touching any files. This is the architect move - think before you build. |
| `/goal [condition]` | Sets a completion condition. Claude keeps working across multiple turns until the goal is met. Use for longer autonomous runs. |
| `/ultraplan <prompt>` | Drafts a full plan in a cloud session. You review it in the browser, then execute it locally or remotely. For big initiatives. |

---

## 3. Running Work in the Background

| Command | What it does |
|---|---|
| `/background [prompt]` | Detaches the current session to run as a background agent. Your terminal is free. Monitor progress with `/agents`. Alias: `/bg` |
| `/batch <instruction>` | Orchestrates large-scale changes across a codebase in parallel. Claude breaks the work into 5-30 independent units, spawns one sub-agent per unit in an isolated git worktree, each opens its own PR. Requires a git repo. |
| `/tasks` | Shows all background tasks running in the current session. Alias: `/bashes` |
| `/stop` | Stops the current background session. Transcript and worktree are kept. |

---

## 4. Reviewing and Shipping Work

| Command | What it does |
|---|---|
| `/diff` | Opens an interactive diff viewer showing all uncommitted changes. |
| `/review [PR]` | Reviews a pull request locally in your current session. |
| `/security-review` | Analyzes your pending changes specifically for security vulnerabilities. Run before every merge. |
| `/simplify [focus]` | Spawns three parallel review agents that check your changed files for code reuse, quality, and efficiency issues - then applies the fixes. |
| `/ultrareview [PR]` | Deep multi-agent code review running in a cloud sandbox. More thorough than `/review`. |

---

## 5. Session Management

| Command | What it does |
|---|---|
| `/resume [session]` | Resumes a previous conversation by ID or name. Opens a picker if no ID given. Alias: `/continue` |
| `/branch [name]` | Creates a branch of the current conversation. The original is preserved. Alias: `/fork` |
| `/rewind` | Rewinds the conversation (and code changes) to a previous checkpoint. Aliases: `/checkpoint`, `/undo` |
| `/rename [name]` | Renames the current session for easy identification in `/resume`. |
| `/color [color]` | Sets the color of your prompt bar - useful when running multiple sessions simultaneously. |
| `/export [filename]` | Exports the full conversation as plain text. |
| `/copy [N]` | Copies the last assistant response to clipboard. |

---

## 6. Working with IDEs and Desktop

| Command | What it does |
|---|---|
| `/ide` | Manages IDE integrations (VS Code, JetBrains, Cursor, Windsurf). |
| `/desktop` | Continues the current session in the Claude Code Desktop app. Alias: `/app` |
| `/terminal-setup` | Configures terminal keybindings for special shortcuts. |

---

## 7. Connecting Claude to the Web and Cloud

| Command | What it does |
|---|---|
| `/teleport` | Pulls a Claude Code web session into your terminal. Alias: `/tp` |
| `/remote-control` | Makes your terminal session available for remote control from claude.ai. Alias: `/rc` |
| `/schedule [description]` | Creates recurring automated routines that run on Anthropic's cloud infrastructure. Alias: `/routines` |
| `/loop [interval] [prompt]` | Runs a prompt repeatedly while the session stays open. |
| `/autofix-pr [prompt]` | Watches a PR and automatically pushes fixes when CI fails or reviews come in. |

---

## 8. Debugging and Troubleshooting

| Command | What it does |
|---|---|
| `/doctor` | Full health check of your Claude Code installation. Press `f` to have Claude fix issues it finds. |
| `/debug [description]` | Enables debug logging from that point forward. |
| `/rewind` | Rolls back conversation and code changes to a previous checkpoint. |
| `/fewer-permission-prompts` | Scans your past session transcripts and automatically adds common read-only operations to the allowlist. |

---

## 9. Settings, Appearance, and Info

| Command | What it does |
|---|---|
| `/config` | Opens the full settings interface. Alias: `/settings` |
| `/theme` | Changes the color theme. |
| `/status` | Shows version, model, account info, and connectivity. |
| `/usage` | Shows session cost, plan usage limits, and activity stats. Aliases: `/cost`, `/stats` |
| `/insights` | Generates a session analysis report - [here's how to actually use it](/he/blog/claude-insights-command/). |

---

## 10. Skills and Extensions

| Command | What it does |
|---|---|
| `/skills` | Lists all available skills (built-in + your custom ones). |
| `/plugin` | Manages Claude Code plugins - install, update, remove. |

---

## Architect's Quick Reference

**Starting a session:**
```
/resume          → pick up where you left off
/context         → check how much room you have
/model           → confirm you're on the right model
```

**Before building:**
```
/plan            → map the approach first
/effort high     → crank up reasoning for complex decisions
```

**While building:**
```
/compact         → clean up context when it gets heavy
/background      → detach long-running work
/tasks           → check what's running in background
```

**Before shipping:**
```
/diff            → review what changed
/security-review → catch vulnerabilities
/review          → full PR review
```

**When something breaks:**
```
/doctor          → health check
/rewind          → roll back to a working state
```

המדריך נכתב ונערך עבור קהילת AI Architects Lab – קוהורט מאי 2026. עדכון אחרון: 16 במאי, 2026