DEV Community

Cover image for 10 Claude Code tricks most people never use
taberfin
taberfin

Posted on Fully Autonomous

10 Claude Code tricks most people never use

I use Claude Code every day, and I keep noticing the same thing: most people use maybe 20% of it. They type a request, hope for the best, and wonder why the context fills up or the result goes sideways.

Here are the ten habits that made the biggest difference for me.

1. Give every task four ingredients

Goal, context, limits, check. What must be true at the end, which files matter, what's off-limits, and how Claude knows it's done ("all tests pass", "the page renders without console errors"). That last one is the most underrated: a clear finish line lets Claude verify its own work.

2. Plan first, then build

Press Shift+Tab to cycle into plan mode. Claude reads and proposes a plan without touching files. Read it, fix the misunderstanding before any code is written, then approve. For anything touching more than one file this saves a lot of rework.

3. Run /init – then trim the result

/init creates a CLAUDE.md with project rules Claude loads in every chat. The generated file is usually too long. Keep only what Claude can't figure out from the code: conventions, commands to run, things to never touch.

4. Correct once, write it down

If you had to tell Claude the same thing twice, it belongs in CLAUDE.md. That's how the project gets "smarter" over time instead of you repeating yourself.

5. One topic per chat

New topic → /clear. Long chat that you want to continue → /compact with a hint like /compact keep the API decisions and the open TODOs. Check how full the context is with /context.

6. Point instead of describe

Type @ and pick a file. @src/auth/login.ts is faster and cheaper than "the login file somewhere in src".

7. Rewind instead of repair

Went wrong? Press Esc twice (or use /rewind) to jump back to an earlier point – code and conversation. Rewinding and rephrasing is almost always cheaper than asking Claude to undo its own mess.

8. Pick the model by task

/model switches models. Use a small, fast model for routine work (renames, small edits, questions) and the big one for architecture and tricky debugging. Your usage limits will thank you.

9. Run shell commands inline

Prefix with ! to run a command directly, e.g. !npm test. The output lands in the conversation, so Claude can react to it.

10. Never put secrets in prompts or CLAUDE.md

API keys belong in environment variables. Block .env files via /permissions so Claude can't read them by accident.

Bonus: make Claude remember across chats

Every new chat starts from zero. I solved that with a SessionStart hook that loads a project overview and my last session notes from an Obsidian vault – the free starter version is on GitHub: https://github.com/taberfin/memoryvault-lite


I put all of this – plus every important command, shortcut and config file – on a free 2-page cheat sheet you can print: https://taberfin.gumroad.com/l/claude-code-cheat-sheet

What's your favorite Claude Code trick that's missing here?

Not affiliated with Anthropic.

Top comments (0)