Skip to content
zero2vibecodelearn vibe coding
Level 3 · Making it yours 6 min Reviewed by the author · Aug 4, 2026

Slash commands

Inside a session, a leading slash runs a built-in action instead of talking to the model. A handful of them do most of the work, and `/help` is always the current list.

Level 3 · 0 / 4 lessons0%

Inside a session, a message starting with / is not a message to the model. It is an instruction to Claude Code itself.

The list that is always right

Type /help.

That is not a dodge — it is the actual answer. The set of built-in commands grows and changes, and a list printed in a tutorial is out of date the moment the tool ships an update. Your own session knows what your own version has.

Read the list once, properly

Spend two minutes reading /help output on your first day. You do not need to memorise it. You need to know roughly what exists, so that later, when you want a thing, you remember that the thing might exist.

The ones you will actually use

A handful come up constantly:

  • /help — the list, and the honest answer to “does this tool do X”.
  • /init — draft a CLAUDE.md for this project. The previous lesson.
  • /clear — wipe the conversation and start fresh, without leaving the project. This is the “start over” from level 2.
  • /compact — condense the conversation so far to free up room, keeping a summary.
  • /context — see how full the session is. Useful right when things start feeling foggy.
  • /permissions — inspect and change what the agent is allowed to do without asking. The next-but-one lesson.
  • /mcp — manage connections to outside tools. The next lesson.

Quick check

Your session has gone stale but you want to keep working in this project. Which is the right move?

Saving the requests you keep retyping

There is a second kind of shortcut, and it is one you build yourself.

Some requests you type over and over: a review checklist, a release routine, a way you like bugs investigated. Retyping them from memory means a slightly worse version every time.

Write them down instead. A folder of Markdown files, one per request, each one refined a little every time you use it. Then a session becomes: open the file, paste, go.

Do that in the terminal below — a prompts/ folder with your review prompt in it.

From a file to a real command

Claude Code can also register saved instructions so they show up in the / menu as your own commands, rather than something you paste. The exact folder and file format for that have evolved with the tool, so take them from the current documentation rather than from here — the writing skill is the same either way.

What makes a good saved prompt

  • Specific about output. “Point at files and lines” beats “check the code”.
  • Scoped. Say what it covers and what it does not.
  • Short enough to read before you paste it. If you cannot skim it, you will stop checking whether it still says what you want.

Your review prompt after a month of small edits is a genuinely useful artefact. It is also the only document in your project that improves every time you are annoyed.

Do slash commands cost tokens?
Can I use slash commands outside a session?

Check your understanding

Answered 0/3
Mode:

What is a slash command?

Where should you look for the current list of commands?

What is the value of saving prompts you reuse?

Finish the task in the terminal and answer the questions to complete the lesson.

📝 My notes

Saved automatically in this browser · shows up on the Notes page.

Task

Start a prompt library: one file per request you keep retyping.

Tab complete · history · Ctrl+L clear · help commands

  • Not done: Make a folder for saved prompts
  • Not done: Save the request you keep retyping
  • Not done: Write the actual prompt into it
  • Not done: Read it back

Lesson Q&A

What is a slash command?

A slash at the start means "this is for Claude Code, not for Claude". Different audience, different effect.

Where should you look for the current list of commands?

The command list changes as the tool evolves. Your session knows what your version has; a written list goes stale.

What is the value of saving prompts you reuse?

The prompt you wrote carefully once is better than the one you rush at the end of a long day.

Your session has gone stale but you want to keep working in this project. Which is the right move?

Clearing the conversation gets you a fresh context without leaving the folder or restarting the tool.

Move between lessons with · search with ⌘K