Skip to content
Scatlion
AI

Claude Code commands

Summary of most used Claude Code commands

1 min read
On this page

Built in commands

Start claude

TEXT
claude 

Init Claude

  • Generates CLAUDE.md file
TEXT
/init

Check context size

TEXT
/context

Clear context (start from scratch)

TEXT
/clear

Change model

TEXT
/model

When context too high, this does

TEXT
/compact

To update claude to remember things use

TEXT
# Talk to me in this tone 

Select previous conversations

TEXT
/resume

Swap through modes

TEXT
shift+tab

Add rules for permissions

TEXT
/permissions

Run claude without asking permissions

TEXT
claude —dangerously-skip-permissions

Custom commands

Custom commands are stored as md files in

TEXT
~/.claude/commands

Example command that produces

TEXT
~/.claude/commands/health-check.md
I want to create a new command /health-check which displays in a table format the ram usage, cpu usage, disk space usage on /  and top 5 processes that are consuming resources

Hooks

When it finishes a task it can do other tasks.

Hooks are stored as md files in

TEXT
~/.claude/hooks

Skills

When it finishes a task it can do other tasks.

Hooks are stored as md files in

TEXT
~/.claude/skills