name: claude-code-slash-commands-discovery description: Discovers all available slash commands in Claude Code by typing a forward slash in the terminal. Essential technique for beginners to understand the full command palette and workflow options. Triggered when starting with Claude Code or exploring available commands. source: 10 Claude Code tips I wish I knew from the start + https://youtu.be/BEIulrjHzMI?si=JiZ_XdfyLiw9nCGP generated_by: SkillJack (skilljacked.com)
Claude Code Slash Commands Discovery
Access the complete command palette by typing a forward slash in the terminal.
Quick Start
- Open Claude Code terminal
- Type
/(forward slash) - View all available slash commands
Core Workflow
When starting with Claude Code or exploring capabilities:
- Type
/in the terminal - Browse the complete list of available commands
- Select commands to understand their functions
- Test key commands like
/compactand/security
When conversation gets long:
- Use
/compactto clear conversation history while keeping summary - Optionally add custom summarization instructions:
/compact focus on error handling patterns
Techniques
Command Discovery Pattern
- Always start exploration with
/to see full palette - Use slash commands instead of typing out full requests
- Explore available options before writing custom prompts
Context Management
- Use
/compactwhen chat history becomes unwieldy - Add specific instructions:
/compact focus on [specific area] - Apply before hitting token limits to preserve important context
Anti-Patterns
- NEVER assume you know all available commands without checking
- NEVER let conversations grow indefinitely without using
/compact - NEVER write long custom prompts when slash commands exist
Edge Cases & Error Handling
- If slash command palette doesn't appear, ensure cursor is in terminal
- Some commands may require specific project contexts to be available
- Custom summarization in
/compactis optional but improves focus