Claude Code in Action
https://anthropic.skilljar.com/claude-code-in-action
-
Tips
#: set memory@: mention filesCtrl-v: paste image
-
Context
- Escape: interrupt and redirect the conversation
- Double-tap Escape: rewind the conversation
- /compact: summarize current conversation for things learned and continue a related task
- /clear: dump current conversation and start an unrelated task
-
Intelligence
- Planning mode for breadth-first tasks
- Thinking mode for depth-first tasks. Use keywords (sorted from less to more tokens):
- Think: Basic reasoning
- Think more: Extended reasoning
- Think a lot: Comprehensive reasoning
- Think longer: Extended time reasoning
- Ultrathink: Maximum reasoning capability
-
Custom commands
- Create a markdown in
.claude/commands/<COMMAND>.md. - In the command, use
$ARGUMENTSto receive user prompt. For example,- Create
.claude/commands/test.md:Your task is to write tests for $ARGUMENTS - Usage:
/test the User model
- Create
- I found if you create commands in
~/.claude/commands/, they become global. For example,- Create
~/.claude/commands/backup.md:Create a backup for ~/.claude/CLAUDE.md using gist - Use in any conversation:
/backup
- Create
- Create a markdown in
-
MCP servers
- Add server
claude mcp add playwright npx @playwright/mcp@latest - Pre-configure permissions: open the
.claude/settings.local.jsonfile and add the server to theallowarray:{ "permissions": { "allow": ["mcp__playwright"], "deny": [] } }
- Add server
#claude
#course