Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
parcadei avatar

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-commands

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs473
repo stars3.9k
Last updatedJanuary 26, 2026
Repositoryparcadei/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

SKILL.mdMarkdownGitHub ↗

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

CommandPurpose
/clearClear conversation history
/compactCompact conversation with focus
/configOpen settings interface
/costShow token usage
/agentsManage sub-agents
/mcpManage MCP servers
/memoryEdit CLAUDE.md files
/modelSelect AI model
/reviewRequest code review
/resumeResume session
/helpGet 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
EOF

Personal 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
EOF

Command 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.ts

Arguments

---
argument-hint: "[pr-number] [priority]"
---

Review PR #$1 with priority: $2

# Or use all arguments:
Fix issue #$ARGUMENTS

Usage:

/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" high

Slash Commands vs Skills

AspectSlash CommandsSkills
InvocationExplicit: /commandAuto-discovered
FilesSingle .md fileDirectory with SKILL.md
Use CaseQuick promptsComplex 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.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.