
Slash Commands
- 473 installs
- 3.9k repo stars
- Updated January 26, 2026
- parcadei/continuous-claude-v3
slash-commands is a Claude Code skill that teaches creating and using slash commands—/command-name prompts with bash execution, file references, and built-in commands like /clear and /compact.
About
slash-commands is a continuous-claude-v3 reference for Claude Code slash command authoring and usage. It explains how to create user-triggered prompts with /command-name syntax, embed bash execution, reference files, and distinguish slash commands from skills. The skill catalogs built-in commands including /clear, /compact, /config, and /cost for history, settings, and token usage. Developers reach for slash-commands when standardizing quick prompts, wiring bash into repeatable agent actions, or deciding between slash commands and skills for a workflow.
- slash-commands
Slash Commands by the numbers
- 473 all-time installs (skills.sh)
- +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #865 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill slash-commandsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 473 |
|---|---|
| repo stars | ★ 3.9k |
| Last updated | January 26, 2026 |
| Repository | parcadei/continuous-claude-v3 ↗ |
How do you create Claude Code slash commands?
Use slash-commands for development tasks
Who is it for?
Claude Code users who want repeatable /command shortcuts with bash and file references for daily development tasks.
Skip if: Developers on agents without slash-command support or teams needing long-form autonomous skills instead of user-triggered prompts.
When should I use this skill?
User asks how to create slash commands, add bash to commands, use file references, or compare slash commands versus skills.
What you get
Custom slash command definitions with bash steps, file references, and documented built-in command usage.
- custom slash command files
- bash-integrated prompts
By the numbers
- Documents 4 built-in commands: /clear, /compact, /config, /cost
Files
Slash Commands Reference
Create and use user-triggered prompts with /command-name syntax.
When to Use
- "How do I create a slash command?"
- "What slash commands are available?"
- "Add bash to my command"
- "Use file references in commands"
- "Slash commands vs skills"
Built-in Commands
| Command | Purpose |
|---|---|
/clear | Clear conversation history |
/compact | Compact conversation with focus |
/config | Open settings interface |
/cost | Show token usage |
/agents | Manage sub-agents |
/mcp | Manage MCP servers |
/memory | Edit CLAUDE.md files |
/model | Select AI model |
/review | Request code review |
/resume | Resume session |
/help | Get usage help |
Creating Commands
Project Commands
mkdir -p .claude/commands
cat > .claude/commands/optimize.md << 'EOF'
---
description: Analyze code for performance issues
---
Review this code for:
- Performance bottlenecks
- Memory leaks
- Caching opportunities
EOFPersonal Commands
mkdir -p ~/.claude/commands
cat > ~/.claude/commands/review.md << 'EOF'
---
description: Security-focused code review
---
Check for vulnerabilities:
- Input validation
- SQL injection
- XSS risks
EOFCommand File Format
---
description: Brief description for /help
allowed-tools: [Bash, Read, Write] # Optional
argument-hint: "[file] [type]" # Optional
---
Your markdown instructions here.
Use $1, $2 for arguments or $ARGUMENTS for all.Bash Execution
Run bash before loading prompt with ! prefix:
---
allowed-tools: Bash(git:*), Bash(grep:*)
description: Git commit helper
---
Current status: !`git status`
Staged changes: !`git diff --staged`
Recent commits: !`git log --oneline -5`
Based on these changes, suggest a commit message.Rules:
- Must declare
allowed-tools: Bash(...)in frontmatter - Use backticks: `
!command` - Output is included in Claude's context
File References
Include files with @ prefix:
Review against @.claude/STYLE_GUIDE.md
Compare:
- @src/old.js
- @src/new.js
Refactor files matching @src/**/*.util.tsArguments
---
argument-hint: "[pr-number] [priority]"
---
Review PR #$1 with priority: $2
# Or use all arguments:
Fix issue #$ARGUMENTSUsage:
/review-pr 456 high
# $1 = "456", $2 = "high"Namespacing
Organize with subdirectories:
.claude/commands/
├── frontend/
│ └── component.md → /component (project:frontend)
└── backend/
└── endpoint.md → /endpoint (project:backend)MCP Slash Commands
MCP servers expose prompts as commands:
/mcp__github__list_prs
/mcp__github__pr_review 456
/mcp__jira__create_issue "Bug" highSlash Commands vs Skills
| Aspect | Slash Commands | Skills |
|---|---|---|
| Invocation | Explicit: /command | Auto-discovered |
| Files | Single .md file | Directory with SKILL.md |
| Use Case | Quick prompts | Complex workflows |
Use slash commands for: Frequently typed prompts, simple templates Use skills for: Complex workflows, multiple files, auto-discovery
Example: Complete Git Commit Command
---
description: Generate semantic commit message
allowed-tools: Bash(git:*), Read
argument-hint: "[type]"
---
# Semantic Commit Generator
Staged files: !`git diff --name-only --cached`
Diff preview:
!`git diff --cached | head -100`
Generate a conventional commit message.
Type: $1 (feat/fix/docs/style/refactor/perf/test/chore)
Format: `<type>(<scope>): <subject>`Usage: /commit feat
Related skills
How it compares
Pick slash-commands for explicit /command shortcuts; use skills when behavior should auto-activate from file or task context.
FAQ
What built-in slash commands does slash-commands document?
slash-commands references Claude Code built-ins including /clear for conversation history, /compact for focused compaction, /config for settings, and /cost for token usage reporting.
How do slash commands differ from skills?
slash-commands explains that slash commands are user-triggered /command-name prompts—often with bash and file references—while skills auto-activate on context; pick commands for explicit shortcuts.