Slash command
Definition
A command typed with a leading slash in a chat or coding agent, such as /review, that runs a built-in action or a saved prompt.
In more detail
Coding agents ship built-in slash commands for things like clearing the context, switching models or starting plan mode, and most let you add your own. A custom command is usually a Markdown file whose body becomes the prompt, with optional arguments filled in where you type them.
The line between custom commands and Agent Skills has blurred. In Claude Code a skill can be invoked by name with a slash as well as picked up automatically, and Spec Kit installs its steps as commands such as /speckit-plan. Use a command when you want to trigger a fixed prompt on purpose; use a skill when the agent should decide when it applies.
Related terms
Agent Skill
A folder with a SKILL.md file, plus optional scripts and references, that gives an agent instructions for a task and is loaded only when needed.
Hooks
User-defined commands that run automatically at set points in a coding agent's lifecycle, such as before a tool call or when a session ends.
Plugin (Claude Code)
A package that bundles skills, agents, hooks and MCP server configuration so they can be installed together from a marketplace.
Plugin marketplace
A catalogue of installable plugins for a coding agent, usually a Git repository with a manifest file that lists each plugin.
Read more about Slash command
- What are Agent Skills (Claude skills)?
Claude skills, or Agent Skills, are folders with a SKILL.md file that agents load on demand. What goes in one, how loading works and when a skill fits.
- Your first session with Claude Code
Install it, run it in a real repository, approve its first changes, commit a reviewed edit and learn the commands you will use daily.
- Spec Kit
GitHub's open-source toolkit that adds spec, plan and task commands to your agent.