Claude Code: the CLI for real work.
Claude Code is Anthropic's command-line tool that gives Claude direct access to your codebase, terminal, and file system. It's the most powerful AI coding tool available — and the most dangerous if misused. This lesson covers setup, the prompt patterns that ship code, MCP servers, and the workflows that justify the Pro+ tier.
The mental model
Claude Code isn't an IDE assistant. It's a junior engineer who can run commands.
The mental model is delegating to a junior engineer who can read your code, write code, run tests, search the web, and make commits. You're the senior who reviews and approves. The difference between this and Copilot/Cursor is autonomy: Claude Code does multi-step work and then reports back.
Workflow 01 Setup and first task
Install, authenticate, run your first task
Install Claude Code (`npm install -g @anthropic-ai/claude-code` or via your platform's package manager). Run `claude` in any repo. Start with low-stakes tasks.
The prompt that works
Best use cases
- Documentation generation
- Test coverage additions
- Repetitive refactors with low blast radius
- Codebase Q&A ("how does authentication work in this repo?")
Workflow 02 The MCP server pattern
Connect Claude Code to your real tools
MCP (Model Context Protocol) servers let Claude Code access your tools — your Linear, your GitHub, your Slack, your database. Configured once, available forever.
The prompt that works
Best use cases
- Issue → code → PR workflow within Claude Code
- Database-aware code (it can query the schema)
- PR review with full context (it sees the description, comments, related issues)
- Production-aware debugging (with logs/observability MCP servers)
Workflow 03 Multi-step development sessions
Real feature development end-to-end
Give Claude Code a feature brief. It plans, codes, tests, and prepares the PR. You review at key checkpoints.
The prompt that works
Best use cases
- New feature development with clear specs
- Bug fixes with reproducible test cases
- Refactors across multiple files
- Documentation generation tied to code changes
Final challenge: ship something with Claude Code
Pick a small feature or chore in your current project. Use Claude Code end-to-end: brief, plan, code, test, PR. Review carefully. Notice which parts saved time vs. which needed your full attention. That calibration is the actual skill.
What you can do now
- Install Claude Code and authenticate it for your accounts
- Configure MCP servers for the tools you use daily
- Use the plan-first pattern for any multi-step work
- Recognize the boundaries (when to delegate vs. when to drive yourself)
- Maintain safe-guard patterns (no auto-commit, read-only DB access, etc.)