Claude Code Slash Commands

SkillAI & models

A skill for ai & models by thelobbi.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Claude Code Slash Commands skill

What this skill tells your AI

The instructions your AI receives, as published by thelobbi/claude in plugins/claude-code-expert/skills-old/slash-commands/SKILL.md and read by ahel’s review.

Complete reference for all built-in and custom slash commands.

Built-in Slash Commands

Session Management

CommandDescription
/clearClear conversation and start fresh (same session)
/compactCompress conversation to reduce context usage
/compact [instructions]Compact with custom focus instructions
/resumeResume a previous session
/continueContinue current session
/statusCurrent session info
/contextView context window usage

Help & Info

CommandDescription
/helpShow available commands
/doctorRun diagnostics and health checks
/versionShow Claude Code version
/settingsView active settings

Model & Configuration

CommandDescription
/modelView or change the current model
/model <name>Switch to specific model (sonnet, opus, haiku)
/permissionsManage permission rules

Conversation Modes

CommandDescription
/planEnter plan mode (read-only analysis)
/fastToggle fast mode (faster output, same model)

Memory & Instructions

CommandDescription
/memoryEdit CLAUDE.md and auto-memory
/initGenerate project CLAUDE.md
/init-onlyGenerate CLAUDE.md and exit

Agents & Skills

CommandDescription
/agentsView, create, edit, delete subagents
/agents listList all available agents
/skillsBrowse available skills
/pluginManage plugins (install, enable, disable)

Tools & Servers

CommandDescription
/mcpCheck MCP server status, authenticate
/hooksConfigure lifecycle hooks
/add-dir <path>Add additional working directory

Code & Navigation

CommandDescription
/diffView git diff interactively
/reviewReview pull request
/fork [name]Fork current conversation

Display & Preferences

CommandDescription
/themeChange color theme
/vimToggle Vim editing mode
/terminal-setupConfigure keybindings

Built-in Skills

CommandDescription
/simplifyReview code quality and refactor
/batch <instruction>Parallel codebase changes
/debug [description]Debug session issues
/loop <interval>Recurring prompts
/claude-apiLoad Claude API reference docs

Security & Sandbox

CommandDescription
/sandboxView or configure sandbox settings
/security-reviewRun security analysis on codebase

Export & Sharing

CommandDescription
/exportExport conversation
/copyCopy last response to clipboard

Monitoring & Insights

CommandDescription
/tasksView background tasks
/insightsSession insights and analytics
/statsUsage statistics
/usageToken/cost usage for current session
/extra-usageExtended usage details

Releases & Updates

CommandDescription
/release-notesView release notes for current version
/upgradeUpgrade Claude Code to latest

Hooks & Plugins

CommandDescription
/save-hooksSave current hooks configuration
/reload-pluginsReload installed plugins

Browser & Display

CommandDescription
/chromeOpen Chrome browser session
/desktopDesktop view mode
/mobileMobile view mode
/ideIDE integration mode

Account & Auth

CommandDescription
/loginLogin to Anthropic
/logoutLogout from Anthropic

Configuration

CommandDescription
/renameRename current conversation
/keybindingsView or edit keybindings
/statuslineConfigure status line display
/output-styleChange output formatting style
/privacy-settingsView or edit privacy settings
/add-dirAdd working directory to context

Remote & Apps

CommandDescription
/remote-envConfigure remote environment
/remote-controlStart remote control session

GitHub & Slack Apps

CommandDescription
/install-github-appInstall Claude GitHub App
/install-slack-appInstall Claude Slack App

Bug Reporting

CommandDescription
/bugReport a bug (can be disabled via env var)

Input Prefixes

PrefixAction
/Invoke command or skill
!Bash mode (execute shell command)
@File mention (add file to context)
?Show shortcuts

Keyboard Shortcuts

Input Controls

ShortcutAction
EnterSend message
Shift+EnterMulti-line input
Ctrl+CInterrupt current operation
Ctrl+DExit Claude Code
EscapeRewind to last checkpoint
Escape (2x)Full rewind
TabAuto-complete
Up/DownNavigate command history
?Show shortcuts

Mode & Toggle Controls

ShortcutAction
Shift+TabCycle permission modes
Ctrl+OToggle verbose output
Ctrl+BSend task to background
Ctrl+TToggle task list
Option+PSwitch model
Option+TToggle extended thinking
Ctrl+GOpen input in text editor
Ctrl+VPaste image

Line Editing

ShortcutAction
Ctrl+KKill text from cursor to end of line
Ctrl+UKill text from cursor to start of line
Ctrl+YYank (paste) killed text
Alt+YCycle through kill ring
Alt+BMove back one word
Alt+FMove forward one word
Alt+MToggle multiline mode

Display & Navigation

ShortcutAction
Ctrl+LClear screen
Ctrl+RReverse search history
Ctrl+FKill background agents

Permission Prompts

ShortcutAction
y / EnterApprove (Allow Once)
aAllow Always (for this session)
nDeny
dDeny Always (for this session)
eEdit (modify the tool call)

Custom Slash Commands

Creating Custom Commands

Custom commands are skill files in .claude/skills/ or plugin directories.

Skill File Format
---
name: my-command
description: What this command does
triggers:
  - /my-command
  - /mc
args:
  - name: target
    description: Target to operate on
    required: false
---

# My Custom Command

Instructions for Claude when this command is invoked.

## Steps
1. Do this first
2. Then do this
3. Finally do this

## Rules
- Always follow this pattern
- Never do this other thing
Plugin Command Format

Commands in plugin commands/ directories:

# Command Name

Description of what the command does.

## Usage
\`\`\`
/plugin-prefix:command-name [args]
\`\`\`

## Arguments
- `arg1` — Description
- `--flag` — Description

## Implementation

When this command is invoked:
1. Step one
2. Step two
3. Step three

Command Resolution Order

  1. Built-in commands (highest priority)
  2. Project skills (.claude/skills/)
  3. Installed plugin commands
  4. User-level skills (~/.claude/skills/)

Invoking Custom Commands

# Direct invocation
/my-command

# With arguments
/my-command some-argument

# Plugin-namespaced command
/plugin-name:command-name

# Via Skill tool (programmatic)
Skill(skill="my-command", args="some-argument")

Plan Mode Details

When /plan is active:

  1. Claude analyzes the request
  2. Writes a step-by-step plan to a plan file
  3. Calls ExitPlanMode to present plan to user
  4. User reviews and approves/modifies/rejects
  5. On approval, Claude executes the plan

Plan Mode Permissions

  • Read-only tools work normally
  • Write/Edit/Bash require plan approval first
  • Use AskUserQuestion for clarifications during planning
  • Use ExitPlanMode when plan is ready (not AskUserQuestion)

Context Management Commands

/compact

Compresses the conversation to free up context window space.

/compact                    # Default compression
/compact focus on the API   # Compress with focus on API-related content

When to use:

  • Context window is getting large
  • Conversation has covered many topics
  • You want to focus on a specific area

How it works:

  • Summarizes previous conversation
  • Preserves key decisions and context
  • Reduces token count significantly
  • Maintains file state awareness

/clear

Starts a completely fresh conversation.

/clear

When to use:

  • Switching to unrelated task
  • Want a clean slate
  • Context is too polluted

Difference from /compact:

  • /compact preserves summarized context
  • /clear removes all context entirely

Signals

GitHub stars
21
Forks
2
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
slash-commands-thelobbi
Source
github.com/thelobbi/claude