# Slash command

> Canonical: https://skillalmanac.com/glossary/slash-command | Last verified: 2026-11-24 | Index status: not offered to search engines

A slash command is a command, starting with /, typed at the start of a message to an AI coding tool to control the session or run a saved prompt. In Claude Code some run fixed logic, others are skills.

Also called: slash commands, Claude Code slash commands, custom slash command, AI slash commands.

## In plain language

A slash command is a shortcut you type into the chat box of an AI coding tool. You start with a slash and a name, such as /help, and the tool does something specific instead of treating your words as a normal request. Some shortcuts change the tool itself, like switching the model. Others run a saved set of instructions, so you do not retype a long prompt each time. The limit is that each tool has its own list: a command you know in one tool may not exist in another, so check the tool's own documentation.

## Technical definition

In Claude Code, a command is recognized only at the start of your message, and text after the name becomes its arguments. The commands reference says most built-in commands execute fixed logic directly, while bundled skills are prompt-based: they give Claude detailed instructions and let it orchestrate the work with its tools. Custom commands have been merged into skills, and existing .claude/commands/ files keep working; the documentation prefers a skill for new work because skills support supporting files. Typing / shows the commands available to you, and typing letters after it filters the list.

## How it shows up when you use agents

In Claude Code you type `/` and the tool lists the commands available to you. Built-in ones control the session, for example `/model` to switch the model and `/permissions` to manage permission rules. Others come from skills, so an [agent skill](/glossary/agent-skill) you add can appear as `/skill-name`, and a plugin's skills carry the plugin name as a prefix. See [agent plugin](/glossary/agent-plugin).

What breaks when this is misunderstood. People write a long saved prompt as a custom command in the older `.claude/commands/` format, when the documentation prefers a skill for new work. Others assume a command exists in every tool. Command sets belong to each tool, so a name you know in one may be missing in another. A third problem is typing a command mid-message: Claude Code recognizes it only at the start.

Next action: run `/help` in your own session and read the list for your version. Then read the [Claude Code slash commands guide](/learn/claude-code-slash-commands-guide) before saving a command for your team.

## Common confusions

- **Built-in command versus bundled skill.** The commands reference says most built-in commands execute fixed logic, while bundled skills are prompt-based and let Claude orchestrate the work.
- **Custom command versus skill.** The skills documentation says custom commands have been merged into skills, and existing command files keep working.
- **Slash command versus a normal prompt.** A normal prompt is text the model reads. A command is recognized at the start of your message and handled by the tool.
- **Myth: slash commands are the same everywhere.** Each tool defines its own. Check the tool's own documentation.

## Worked examples in this catalogue

### [What Is Claude Code and What It Can Touch on Your Machine](https://skillalmanac.com/learn/what-is-claude-code)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An explanation of what Claude Code can read, edit and run, with a step that uses /permissions to list every permission rule and the settings file it comes from.

Why it exercises the concept: /permissions is a built-in slash command that inspects the session, which shows what a slash command is for beyond saving a prompt.

### [Claude Code Slash Commands: Built-in vs Custom](https://skillalmanac.com/learn/claude-code-slash-commands-guide)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Where custom slash commands live, how a filename becomes a command name, built-in versus custom commands, and when to convert one into a skill.

Why it exercises the concept: It covers both halves of the definition: fixed built-in commands and Markdown files you write yourself.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
/help
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code's commands reference describes /help as showing help and available commands.

Why it exercises the concept: It is the simplest way to see slash commands in a real session and find the names that exist in your version.

## Related terms

- [Agent skill](https://skillalmanac.com/glossary/agent-skill.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)
- [Coding agent](https://skillalmanac.com/glossary/coding-agent.md)
- [Agent plugin](https://skillalmanac.com/glossary/agent-plugin.md)
- [Prompt](https://skillalmanac.com/glossary/prompt.md)

## Sources

- [Extend Claude with skills](https://code.claude.com/docs/en/skills), Anthropic (Claude Code Docs) (accessed 2026-11-24)
- [Commands](https://code.claude.com/docs/en/commands), Anthropic (Claude Code Docs) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
