Claude Code Help & Reference Guide

Future reference documentation for commands, prompt engineering, workflows and coding productivity.

Models Overview

Model Usage
claude-haiku-4-5 Simple tasks, boilerplate, quick fixes
claude-sonnet-4-6 Best balance for daily coding
claude-opus-4-7 Complex architecture and debugging

Slash Commands

/help
/clear
/compact
/config
/cost
/status
/memory
/fast
/review
/exit

Keyboard Shortcuts

  • Enter — Send message
  • Shift + Enter — New line
  • Ctrl + C — Cancel response
  • Ctrl + L — Clear screen

Token Saving Tips

  • Use /clear between unrelated tasks
  • Use /compact when context gets long
  • Paste only relevant code sections
  • Ask specific technical questions

Settings Reference

{
  "model": "claude-sonnet-4-6",
  "autoCompact": true
}

Prompt Engineering Tips

Bad Prompt Better Prompt
fix my login Fix login() in auth/Login.php line 45
write CRUD Create Laravel 11 CRUD controller with validation
why slow? Optimize MySQL query taking 8s on 50k rows

Cost Guide

Model Input Output
Haiku 4.5 $0.80 $4
Sonnet 4.6 $3 $15
Opus 4.7 $15 $75