What tricks will help you?
How to talk to Claude · lesson 4 of 8
Now for the tricks that make the difference. There are nine. Two you’ll find in the side questions.
How do I show a file?
You type @ followed by the file’s path (its address in the project), for example to lay out the menu page like the main page:
> make the page @menu.html in the same style as @index.html ● Reading the files you showed me… ⎿ Read index.html (120 lines) ⎿ Read menu.html (45 lines) In index.html, the headings are large and brown, and the buttons are rounded. I’ll lay out menu.html the same way: same colours, fonts and buttons, with the same prices.
That’s also the second trick: give examples. It’s like at the barber’s: you show them a photo instead of explaining for ten minutes.
In the desktop app:
@works the same, with automatic suggestions. Cloud sessions on the web have no@: there you write the file’s name in words.
Now show it the files yourself:
> make the page [@menu.html] in the same style as [@index.html]
piese: menu | @menu.html | #index | @index.html
gata: Well done! With @ you show it the exact files, so it doesn’t have to guess.
Can I give it a photo?
Yes. You drag a screenshot (a picture of your screen) into the terminal window, or paste it with Ctrl+V.
It works with photos, mockups (drawings of a page) and error messages. For example, a photo of the menu board on the café’s wall:
> put the menu from this photo on the site, with the same prices, then check nothing is missing
Claude reads the prices from it, so you don’t have to type them in.
In the desktop app: you click the + button under the message box, or drag the photo into the box. PDF files work too.
Can I send it terminal data?
Yes, with a pipe, the | symbol: it takes the result of one command and “pours” it into the next.
And claude -p means “answer once and that’s it”, without a conversation:
cat reviews.txt | claude -p "what are the three things customers praise most often?"
cat index.html | claude -p "find the spelling mistakes in the page’s text"
cat prints the file: first the reviews you copied from customers, then the site’s page. The pipe sends it to Claude, which tells you what people praise most often, then shows you the spelling mistakes.
Terminal only: the desktop app has no
claude -p, because it’s made only for conversation. There you paste the text into your message or attach the file.
What about hard tasks?
You write things like “think of several options and pick the best one” or “think hard”.
There’s also extended thinking: Claude thinks things through before it answers. On the 5.5 models (Opus, Sonnet, Haiku) it’s always on, so there’s nothing for you to do.
On other models you turn it on or off with Option+T on Mac (Alt+T on Windows).
In the desktop app: there’s an effort menu (
Cmd+Shift+E,Ctrl+Shift+Eon Windows) where you choose how much work Claude puts into an answer.
What if I can’t read code?
You don’t need to understand the code to find out what it does. You ask Claude, like a colleague:
> how is the booking button made? > why does the menu look different on a phone than on a computer? > what happens if someone opens the site on a very small phone?
The last one is the most valuable: you have it look for the rare, borderline situations nobody thought about. Programmers call them edge cases.
And if it goes off track?
You correct it early. There are three ways:
- Esc: you stop it if it has taken the wrong path - Esc Esc (twice): you go back to an earlier message and reword it - “Stop, show me the plan first”: much better than correcting 20 files afterwards
In the desktop app:
Escor the stop button stops it. You can also type your correction and pressEnterwithout stopping it: it reads it as soon as it finishes the step it’s on.
When do I start fresh?
When you move on to another task. You type /clear and the conversation empties.
Leftovers from the old task confuse Claude, spoil its answers and cost you money. It’s like a workbench: before a new project, you clear away what’s left from the old one.
In the desktop app: you can also start a new session (
Cmd+N,Ctrl+Non Windows). On the web,/cleardoesn’t work in cloud sessions: there you start a new session from the sidebar.
Switch between the two versions:
Without /clear
> now make a page with the café’s menu
● Starting from what we were discussing: adding the menu to the booking page, next to the form…
⎿ Modified booking.html
= Leftovers from the old task confuse it: it mixes the menu with the bookings.
---
With /clear
> /clear
> make a page with the café’s menu
● Starting from scratch: creating menu.html
⎿ Created menu.html, with the prices from prices.txt
= The conversation is clean: Claude does only what you asked just now.
I don’t know what to ask
Don’t guess. Have Claude ask you:
> I want a website for a café. Before you start, ask me the questions you need, one at a time. Don’t write anything until I say “start”.
That way it gets the name, the hours, the menu and how customers reach you straight from you, instead of making them up.
It’s like a tailor: first the measurements, then the sewing.
Switch and see the difference:
Without questions
> make a website for a café
● Creating index.html: “Aroma Café”, open 8–20, a menu with 6 items…
⎿ Created index.html
= The name, the hours and the prices are made up. You correct them one by one afterwards.
---
With questions
> make a website for a café. Before you start, ask me questions, one at a time.
● What’s the café called and which town is it in?
⎿ Waiting for your answer
= Claude first finds out what it needs. The site comes out with your details the first time.
That’s it for the tricks. In the exercise you go back to the photo one, this time in the desktop app.