Most of what you type in Claude Code is a prompt, but some input is not a request for code at all. It is a direct control signal for the tool itself. Slash commands are how you steer a session: clear or shrink the conversation, switch models, check usage, change settings, and run saved workflows without retyping them.
This module covers the built-in commands you will use in almost every session, including /clear and /compact for managing context, /model, /config, and /usage. You will then learn to build custom commands: markdown files in .claude/commands/ that turn a prompt you repeat every day into a one-word command, with arguments, shared with your team through git. You will also see how custom commands relate to skills and their SKILL.md files.
Watch the lessons in order, then continue on to Model Context Protocol.
Lesson 3 of the AI From Zero to Advanced Claude Code course. It walks through the commands you will use every session, /clear, /compact, /model, /config, /help, /status, and /usage, with what each one does and when to reach for it. It finishes with a first look at creating your own custom commands.
CampusX explains why slash commands exist and how they save you from repeating the same prompts. It separates built-in from custom commands, demonstrates the built-in set, then creates a custom command and uses it in a project. It closes with best practices, common use cases, and a real workflow example.
A step-by-step build of three useful commands: /pr to write and open a pull request, /fix to clear lint errors, and /explain to summarize a codebase. It covers setting up the commands folder, using $ARGUMENTS for dynamic input, and the difference between project commands shared via git and global commands that work in every project.
Shows how custom slash commands are created with both .claude/commands/ and SKILL.md, using real examples from a blog automation pipeline. It is a useful bridge to the Skills & Plugins module, since custom commands and skills now work together.