cli-masterylisted
Install: claude install-skill seanwinslow28/code-brain
# Commands, Shortcuts, and CLI Mastery
## Purpose
Provide a complete reference for Claude Code keyboard shortcuts, slash commands, CLI flags, and power user workflows. Master the interaction model to work faster and manage context effectively.
## When to Use
- Looking up a keyboard shortcut or slash command
- Switching between permission modes (Normal, Auto-Accept, Plan)
- Using Plan Mode vs Extended Thinking (critical distinction)
- Finding CLI flags for headless or automated execution
- Optimizing workflow with context resets, parallel sessions, or worktrees
- Using special prefixes (!, #, @, &) for quick actions
## Examples
**Example 1: Mode confusion**
```
User: "How do I enter Plan Mode?"
Claude: [Uses cli-mastery]
Plan Mode: Press Shift+Tab TWICE (double Shift+Tab) or type /plan.
This is NOT the same as Extended Thinking (single Tab or Alt+T).
- Plan Mode: Claude creates a plan, gets approval, then executes. Uses Opus for planning, Sonnet for coding.
- Extended Thinking: Claude reasons silently before responding. Toggle with Tab or Alt+T.
```
**Example 2: CLI flags for automation**
```
User: "How do I pipe a file into Claude Code?"
Claude: [Uses cli-mastery]
cat build.log | claude -p "Analyze these logs for errors"
Key flags:
- -p "prompt": Headless mode (execute and exit)
- --output-format json: Structured output for parsing
- --max-turns 5: Prevent infinite loops
- --model opus: Force a specific model
```
**Example 3: Context management**
```
User: "My sessio