Prompt
A prompt is the written message in which you tell Claude Code what to do: the task, the files involved, the limits and how the result should be checked. Claude Code starts from the prompt to read files, run commands and make changes, so a precise prompt leads to fewer corrections and fewer tokens used.
The message in which you tell Claude what to do. The clearer it is (what, where, limits, how you check), the better the result.
How it shows up in Claude Code
You type the prompt in the terminal after starting claude, like an ordinary message. You can point to files with @ (for example @src/login.js) so Claude reads them before answering, and you can paste screenshots straight in. The documentation recommends four things: name the exact file and situation, point Claude to where the answer can be found, give it an example from the project to follow, and describe what “done” looks like. A message that starts with / isn’t a normal prompt but a command (for example /clear).
Example
A vague prompt:
fix the form
The same request, written well:
In @contact.html, the “Send” button does nothing on a phone.
Fix only this button and don’t change how the page looks.
When you’re done, tell me how to check on my phone that it works.
The second prompt says what, where, what not to touch and how to check. Claude doesn’t have to search the whole project or guess.
Common mistakes
- Requests that are too broad, like “make the site nicer”. Claude reads lots of files and decides on its own what “nicer” means.
- No way to check. Claude stops when the work “looks done”. Ask it to run the tests or show you the result.
- Correction after correction in the same conversation. After two failed corrections, it’s better to start over with
/clearand a better prompt that includes what you learned. - Everything in one giant message. For big tasks, ask for a plan first in plan mode.
Related terms and where you learn it
The prompt goes into the context, is measured in tokens and is part of a session. Instructions you don’t want to repeat in every prompt belong in CLAUDE.md. You learn it in the lessons “What does a good message look like?” and “What tricks will help you?” in module 01, How to talk to Claude.
How it appears in the course
The message you write to Claude is called a prompt.
What does a good message look like? · Module 01, How to talk to Claude · free
Now you write that better prompt.
For the curious · Module 01, How to talk to Claude · free
In the desktop app: claude mcp add is typed only in the terminal. In the Code tab you click the + button next to the prompt box, choose Connectors and add the service from the list (GitHub, Slack, Notion, Linear…).
How do you connect a server? · Module 08, MCP: connecting to other apps
Learn Claude Code from zero, in plain English
12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.