Zayed BalochManama

5 Claude Code tricks I wish I knew on day one

VERIFIEDTested in Claude Code 2.1.143 · 28 Nov 20265 min readBy Zayed Baloch
SHORT ANSWER

Press Shift+Tab for plan mode, Esc Esc to rewind, @ to hand Claude an exact file, ! to run a command and let Claude read the output, and put a SKILL.md in .claude/skills/ to make your own /command. All five tested and working.

Most people use Claude Code as a chat box: type a request, hope for the best. These five built-in shortcuts give you more control: plan before editing, undo mistakes, point at the right file, feed it real output, and save your own workflows. I tried every one in my own Claude Code (version 2.1.143) on 28 November 2026, and each works as the official docs describe.

1. Plan before it touches anything

Press Shift+Tab until the mode indicator shows plan. Now ask for your change. Claude explores the code and writes a plan, and it doesn’t edit a single file until you approve it.

It’s the safest way to start anything bigger than a one-line fix: you read the plan, push back, and only then let it work.

VERIFIED tested 28 Nov 2026 · docs/interactive-mode

Watch out: Shift+Tab cycles through several modes, not just plan. Check the indicator. On some Windows terminals the shortcut is Alt+M.

2. Rewind when it breaks something

Claude broke something? Press Esc twice on an empty prompt (or type /rewind). Pick an earlier prompt, then choose what to restore: the code and conversation, just the conversation, or just the code.

VERIFIED tested 28 Nov 2026 · docs/checkpointing

Watch out: rewind tracks Claude’s own file edits. Changes made by shell commands (say, a script that rewrote a file) aren’t tracked, so keep committing to Git.

3. Point at the exact file with @

Type @ and pick a file from the autocomplete. That exact file goes into the conversation, so Claude doesn’t have to search the project for it.

@src/components/Header.astro  make the menu close when a link is clicked

VERIFIED tested 28 Nov 2026 · docs/interactive-mode

4. Run a command yourself with !

Start your message with ! to run a shell command directly. Its output is added to the session and Claude responds to it, so you can run your tests and let Claude fix what failed.

!npm test

VERIFIED tested 28 Nov 2026 with a failing test · docs/interactive-mode

5. Make your own /command

Any checklist you repeat can become a slash command. Create one file at .claude/skills/<name>/SKILL.md, and typing /<name> runs it. Here’s the one from the pack, /ship-check, which reviews your changes before you commit:

---
name: ship-check
description: Final check before I commit. Use when I say "ship check" or before committing.
---

Before I commit, check the current changes:
1. Run the project's test command and report failures.
2. Look for leftover debug code (console.log, print, debugger, TODO) in the changed files.
3. List any new dependencies that were added.
4. Summarise what changed in 3 bullet points.
Don't fix anything without asking. End with: "Ready to commit?" or the list of blockers.

Save it as .claude/skills/ship-check/SKILL.md in your project, then type /ship-check.

VERIFIED tested 28 Nov 2026 · docs/skills

The older format, .claude/commands/<name>.md, still works, but skills are the recommended way for new commands.

What you need

Claude Code, which needs a paid Claude plan. Nothing else to install; all five are built in.

Evidence

ClaimHow we checkedLabel
Shift+Tab plan mode edits nothing until you approveRan it, asked for a change, no edits before approval · docs/interactive-modeVERIFIED
Esc Esc / /rewind restores code, chat or bothMade an edit, rewound, restored code · docs/checkpointingVERIFIED
@ adds an exact fileTyped @, picked a file · docs/interactive-modeVERIFIED
!cmd runs and Claude responds to the output!npm test with a failing test · docs/interactive-modeVERIFIED
SKILL.md in .claude/skills/ becomes /nameCopied ship-check, typed /ship-check · docs/skillsVERIFIED

All tests: Claude Code 2.1.143, 28 November 2026. Shortcuts can change between versions; check /help if one doesn’t respond.

Questions

How do I turn on plan mode in Claude Code?

Press Shift+Tab until the mode indicator shows plan. Claude explores and writes a plan first, and doesn't edit files until you approve it. On some Windows terminals the shortcut is Alt+M.

Can Claude Code undo its changes?

Yes. Press Esc twice on an empty prompt, or type /rewind, pick an earlier prompt, and restore the code, the conversation, or both. It only tracks Claude's own file edits, so keep using Git for real history.

How do I make a custom slash command in Claude Code?

Create .claude/skills/<name>/SKILL.md in your project with a short description and your instructions, then type /<name> in Claude Code.

Sources

Zayed Baloch is a full-stack developer in Manama, Bahrain, building for the web since 2001. He tests AI tools for real and labels every claim. More about me