Skip to main content
SEP 2026 Latest guide updates. Latest: Skill Governance Skill Lifecycle Skills vs Harnesses Changelog →
M09 Intermediate Methodology

Slash Commands

Manually triggered skills via /name (CC 2.1.3)

CC 2.1.3: Custom β€œcommands” now live in .claude/skills/ with disable-model-invocation: true. The /name syntax and behavior are identical.

Principle

A slash command is a Markdown file that defines a workflow. Claude executes it as if it had received that text as a prompt, with the ability to pass dynamic arguments.

File locations

.claude/skills/ # Project commands (team)
β”œβ”€β”€ commit.md β†’ /commit
β”œβ”€β”€ review-pr.md β†’ /review-pr
└── tech/
└── deploy.md β†’ /tech:deploy
~/.claude/skills/ # Global commands (personal)
β”œβ”€β”€ release.md β†’ /release
└── sync.md β†’ /sync

Global commands are available in all sessions, regardless of the project.

Invocation and arguments

/commit # No argument
/tech:deploy production # Positional argument
/release minor # Version bump

In the Markdown file, arguments are accessible via variables:

Deploy to environment: $ARGUMENTS[0]
With strategy: $ARGUMENTS[1]
If no argument provided: use "staging" by default.

The $0, $1 syntax is equivalent to $ARGUMENTS[0], $ARGUMENTS[1]. The old dot notation ($ARGUMENTS.0) is deprecated since v2.1.19.

# Command Name
## Objective
What this command does in one sentence.
## Process
1. **Step 1** β€” detailed instructions
2. **Step 2** β€” detailed instructions
3. **Step 3** β€” detailed instructions
## Arguments
- $0: target environment (default: staging)
## Output format
Description of the expected result.

Recent native commands

CommandUsage
/goal [condition]Autonomous multi-turn mode: Claude works until the condition is met, with a live elapsed/turns/tokens overlay (v2.1.139)
/scroll-speedInteractive slider to tune mouse wheel scroll speed with live preview (v2.1.139)

Useful commands to create

CommandUsage
/commitAutomatic conventional commit
/review-prPR review against project criteria
`/release [patchminor
/syncMulti-file consistency check
/security-checkQuick config scan

Command vs Skill vs Agent

MechanismWhen to use
CommandOne-off workflow, procedure to follow
SkillReusable knowledge + embedded resources
AgentRecurring specialist with own memory

A command cannot embed additional reference files (use a skill for that). A command has no persistent memory (use an agent for that).

Practical tips

One command, one responsibility. As soon as a command does two distinct things, split it. Name with an action verb first (commit, release, sync) so that the intent is immediately readable in the list of available commands.

Enter your email to read the full card and get the complete PDF bundle.

All content is free and open-source. We just ask for your email.

PDF: