Black Friday sale: 85 Claude Code agents for $29 one-time · lifetime updatesGet access →
Free Tool

Claude Code Slash Command Generator

Build a custom slash command for Claude Code. Choose the new skill format (SKILL.md) or the older .claude/commands file, add arguments with $ARGUMENTS or $0, $1, and pre-approve the tools it needs.

Templates:
Skill file
.claude/skills/fix-issue/SKILL.md
---
name: fix-issue
description: Fix a GitHub issue by number: read it, find the cause, fix it and add a test.
argument-hint: [issue-number]
allowed-tools: Bash(gh issue view *) Read Grep Glob
disable-model-invocation: true
---
Fix GitHub issue #$ARGUMENTS.

1. Run `gh issue view $ARGUMENTS` and read the issue.
2. Find the code involved and explain the root cause in two sentences.
3. Make the smallest fix and add a test that fails without it.
4. Run the tests and show the result.
Or save it from the terminal
mkdir -p .claude/skills/fix-issue && cat > .claude/skills/fix-issue/SKILL.md <<'EOF'
---
name: fix-issue
description: Fix a GitHub issue by number: read it, find the cause, fix it and add a test.
argument-hint: [issue-number]
allowed-tools: Bash(gh issue view *) Read Grep Glob
disable-model-invocation: true
---
Fix GitHub issue #$ARGUMENTS.

1. Run `gh issue view $ARGUMENTS` and read the issue.
2. Find the code involved and explain the root cause in two sentences.
3. Make the smallest fix and add a test that fails without it.
4. Run the tests and show the result.
EOF

How to use your new command

  1. Save the file at the path shown, or run the save command from your project folder.
  2. In Claude Code, type / and pick fix-issue, then add your arguments.
  3. Example: /fix-issue [issue-number]
  4. "Only I can run it" adds disable-model-invocation: true, so Claude never starts it by itself. Untick it if you want Claude to use it when a task matches the description.
Skip the setup: 85 ready-made agents for Claude Code

Coding, SEO and marketing agents, 52 skills and 53 slash commands. Installs with one line.

All free tools →

Frequently asked questions

Yes. Claude Code merged custom commands into skills. Both are called with /name. Your old .claude/commands/*.md files keep working, but the docs recommend a skill (.claude/skills/<name>/SKILL.md) for new work because a skill can also hold supporting files.

Related guides and tools