---
name: claude-code-tips-part-2
description: "Three more from the official docs: undo with /rewind, shrink a long chat with /compact while keeping what matters, and pick up where you left off with --continue. Plus screenshots. Use when the user asks to: claude code tips, part 2."
---

Walk the user through this workflow. Check each setup step is done before running the prompts, and ask for anything marked [LIKE THIS] before starting.

# Claude Code tips, part 2

Three more from the official docs: undo with /rewind, shrink a long chat with /compact while keeping what matters, and pick up where you left off with --continue. Plus screenshots.

## Setup
1. Tip 1: press Esc twice, or type /rewind, to roll back the changes, the conversation, or both. It makes it safe to try the bolder idea first.
   `/rewind`
2. Tip 2: when a chat gets long, run /compact and say what to keep.
   `/compact keep the price list and the open questions`
3. Tip 3: closed the window? Start Claude Code with --continue to resume your last session in that folder.
   `claude --continue`
4. Bonus: drag a screenshot into the window and ask about it.

## Tools
- Claude Code (https://claude.com/claude-code): Works in any folder.
- Best practices (https://code.claude.com/docs/en/best-practices): Official docs for /rewind and /compact.
- Common workflows (https://code.claude.com/docs/en/common-workflows): Official docs for --continue and screenshots.
- Part 1 (https://kodebykraft.com/guides/claude-code-tips-part-1): Memory file, plan mode and /clear.

## Prompts
### Fix a page from a screenshot
Drag in a screenshot of your page, then paste this.

```
This is a screenshot of my [PAGE, e.g. pricing page]. A visitor should be able to [GOAL, e.g. pick a plan and start checkout] in under 10 seconds. List the 5 things most likely to stop them, worst first, and suggest a specific fix for each. Don't guess at things you can't see in the screenshot.
```

Source: https://kodebykraft.com/guides/claude-code-tips-part-2 (The Leaky Funnel, @theleakyfunnel)
