# Claude Code Slash Commands

> This skill should be used when the user asks to "create a command", "write a slash command", "build a plugin command", or wants to add custom commands to Claude Code.

- **Type:** Skill
- **Install:** `agentstack add skill-dwmkerr-claude-toolkit-claude-code-slash-commands`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dwmkerr](https://agentstack.voostack.com/s/dwmkerr)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dwmkerr](https://github.com/dwmkerr)
- **Source:** https://github.com/dwmkerr/claude-toolkit/tree/main/plugins/toolkit/skills/claude-code-slash-commands
- **Website:** https://www.skills.sh/dwmkerr/claude-toolkit

## Install

```sh
agentstack add skill-dwmkerr-claude-toolkit-claude-code-slash-commands
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Slash Command Development

Create custom slash commands for Claude Code.

## Quick Reference

You MUST read these references for detailed guidance:

- [Official Documentation](./references/official-docs.md) - Anthropic's slash command guide

## Command Structure

Commands are Markdown files in specific locations:

| Scope | Location | Description suffix |
|-------|----------|-------------------|
| Project | `.claude/commands/` | `(project)` |
| Personal | `~/.claude/commands/` | `(user)` |
| Plugin | `commands/` in plugin root | `(plugin)` |

## Basic Command

```markdown
---
description: Brief description of what this command does
---

Your prompt instructions here.
```

## Frontmatter Options

```yaml
---
allowed-tools: Bash(git:*), Read
argument-hint: [filename] [options]
description: What this command does
model: claude-3-5-haiku-20241022
disable-model-invocation: false
context: fork
---
```

| Field | Purpose |
|-------|---------|
| `allowed-tools` | Tools the command can use |
| `argument-hint` | Shows in autocomplete (e.g., `[message]`) |
| `description` | Brief description (required for SlashCommand tool) |
| `model` | Specific model to use |
| `disable-model-invocation` | Prevent programmatic invocation |
| `context: fork` | Run in isolated sub-agent context, preventing side effects on main agent state |

## Arguments

**All arguments:**
```markdown
Fix issue #$ARGUMENTS following our coding standards
```

**Positional arguments:**
```markdown
Review PR #$1 with priority $2 and assign to $3
```

## Dynamic Content

**Bash execution** (prefix with exclamation mark):
```text
Current branch: EXCLAMATION`git branch --show-current`
Recent commits: EXCLAMATION`git log --oneline -5`
```
Replace EXCLAMATION with the exclamation mark character - workaround for [bug #12762](https://github.com/anthropics/claude-code/issues/12762).

**File references** (prefix with at-sign):
```markdown
Review the implementation in @src/utils/helpers.js
```

## Namespacing

Subdirectories group related commands:

- `.claude/commands/frontend/test.md` → `/test` shows `(project:frontend)`
- `.claude/commands/backend/test.md` → `/test` shows `(project:backend)`

## Checklist

- [ ] Description filled in frontmatter
- [ ] `argument-hint` if command takes arguments
- [ ] `allowed-tools` if using Bash or specific tools
- [ ] Test with `/command-name --help` style invocation

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dwmkerr](https://github.com/dwmkerr)
- **Source:** [dwmkerr/claude-toolkit](https://github.com/dwmkerr/claude-toolkit)
- **License:** MIT
- **Homepage:** https://www.skills.sh/dwmkerr/claude-toolkit

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dwmkerr-claude-toolkit-claude-code-slash-commands
- Seller: https://agentstack.voostack.com/s/dwmkerr
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
