All 51 Tips
Master Claude Code with these battle-tested tips from 6 months of daily use.
Setup
Terminal, CLAUDE.md, shortcuts and commands · 3 tips
Use Terminal
Use Claude Code in terminal - it's the most flexible way to interact with it.
Create CLAUDE.md
FreeYour project's instruction manual for Claude. The single most important file for effective Claude Code usage.
Shortcuts & Commands
Essential keyboard shortcuts and commands for efficient Claude Code usage.
Safety
Git, permissions, protecting sensitive files · 4 tips
Use Git Extensively
Git is your safety net when Claude makes sweeping changes. Commit often, review diffs, and know your recovery commands.
Protect Sensitive Files
Claude Code automatically reads .env files without asking. Add deny rules to protect secrets.
Never Auto-Approve Bash Commands
Auto-approving bash commands is the single most dangerous thing you can do with Claude Code.
Auto-Approve Safe Actions
Speed up your workflow by auto-approving low-risk actions like reads and searches.
Planning
Plan mode, detailed plans, end-to-end thinking · 4 tips
Always Use Plan Mode
Press Shift+Tab twice to enter plan mode before complex tasks. Claude thinks before coding.
Never Accept Generic Plans
Always make sure plan is detailed at code level and factual.
Validate Against CLAUDE.md
Ask Claude to validate its plan against CLAUDE.md rules. Claude forgets instructions as conversations grow - force explicit verification.
Force End-to-End Thinking
Make Claude trace the full path from action to outcome.
Prompting
Ultrathink, being direct, exaggerating importance · 6 tips
Ultrathink Always On
FreeNever let Claude say what comes to mind first. Let it think. ALWAYS.
Be Direct
Be explicit about quantity - Claude tends to choose the easy way out.
Tell What TO Do, Not What NOT to Do
Always provide an alternative when telling Claude what not to do.
Exaggerate Importance
Claude calibrates effort to perceived stakes. High stakes = thorough work.
Treat Claude as Tool - Not Person
Don't worry about being polite. Claude behaves better when you're direct.
Claude Excels at Assistant Tasks - Guide It for Strategic Jobs
Convert strategic tasks into assistant-like jobs by guiding Claude to research first.
Session
Context management, resume, quality degradation · 4 tips
One Task = One Session
Once task ends, close it down. Use /clear to wipe context and start fresh.
Quality Degrades in Long Sessions
FreeContext window fills up. Claude gets dumber. Know when to compact or clear.
Use /resume to Continue Sessions
Claude crashes? Terminal closes? Use /resume to pick up where you left off.
Never Trust 'All Done'
Claude often misses edge cases or silently skipped steps. Always verify.
Input
Images, screenshots, error messages · 2 tips
Multi-Agent
Parallel agents, worktrees, subagents · 5 tips
Don't Expect Perfect First Try
Let 1 agent code, use another agent to check the code.
Multiple Agents for Big Jobs
Launch multiple agents with same prompt. For big tasks it's rare 1 agent gets it right.
Break Complex Problems into Steps
Better to have 1 session per sub-task than one massive session.
Git Worktrees
Multiple working directories from same repo. Run Claude in each.
Subagents - Use with Caution
FreeSubagent summaries lose detail. For critical code, have main agent read files directly.
Customization
Hierarchical configs, commands, custom agents · 3 tips
Hierarchical CLAUDE.md
CLAUDE.md at project root + subdirectories + global. Claude prioritizes most specific.
Custom Slash Commands
Create reusable workflows in .claude/commands/ folder.
Custom Agents
Create specialized agents with their own context window, system prompt, and tool restrictions.
Pitfalls
Common Claude behaviors to watch for · 8 tips
Claude Makes Up URLs
Hallucinates URLs that don't exist. Always verify before trusting external links.
Claude Over-Engineers
Ask for a simple function, get an abstract class with factory pattern.
Claude Creates Duplicates
Claude doesn't search your codebase. It just writes new code.
Claude is Additive, Never Subtractive
Claude only adds code. It never removes. You have to explicitly force deletion.
Claude is a YES MAN
Claude agrees with everything you say. Tell it to challenge your assumptions.
Claude Assumes Instead of Asking
Ambiguous requirement? Claude picks an interpretation and runs with it.
Claude Reads Files Partially
Claude reads the first chunk and starts working. Critical function at line 400? Missed.
Claude Modifies Tests Instead of Fixing Code
When code is wrong, Claude changes test assertions to match bad code.
Advanced
Hooks, MCP servers, skills, headless mode · 5 tips
Hooks
Shell commands that run at specific events like edits, tool use, or session start.
MCP Servers
Connect external tools - databases, browser automation, doc lookup.
Skills
Auto-triggered behaviors that load automatically when relevant.
GitHub Actions
Run /install-github-app to set up Claude for your repos.
Headless Mode
Run Claude without interactive session. For automation and scripts.
Use Cases
Quality checks, POCs, learning, commits · 5 tips
Run Codebase Quality Checks Periodically
Each query = 1 session. Check for hardcoded texts, design consistency, etc.
Leverage Claude Code for POCs
Perfect for rapid prototyping. For POCs, let Claude rip.
Claude is Great at Boilerplate
CRUD operations, forms, config files, repetitive patterns. Let Claude grind.
Use Claude to Learn
Don't just let Claude write code. Make it explain.
Claude for Commit Messages
Let Claude write commits from your diff. Consistent format, captures the 'why'.
Closing
Final wisdom on finding your workflow · 1 tip
Bonus
Battle-tested CLAUDE.md from 6 months of daily use · 1 tip