Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

creating-claude-commands

БесплатноБез исполняемых скриптовНе проверен

Expert guidance for creating Claude Code slash commands with correct frontmatter, structure, and best practices

pr-pmот pr-pm★ 125 звёзд на GitHub17 установок в других каталогах

Об этом скилле

Creating Claude Code Slash Commands

Expert guidance for creating Claude Code slash commands - quick actions triggered by /command-name.

When to Use This Skill

Activate this skill when:

  • User wants to create a new slash command
  • User needs to understand slash command structure
  • User asks about frontmatter fields for commands
  • User wants validation guidance for commands
  • User needs examples of command patterns

Quick Reference

Field Required Type Description
description No string Brief description shown in autocomplete
allowed-tools No string Comma-separated list of tools (inherits if not specified)
argument-hint No string Expected arguments (e.g., add [tagId] | remove [tagId] | list)
model No string Specific model (sonnet, opus, haiku, inherit)
disable-model-invocation No boolean Prevent SlashCommand tool from calling this
commandType No string Set to "slash-command" for round-trip conversion

Special Features

File Referencing with @

Reference files directly in command prompts using @ prefix:

Review the implementation in @src/utils/helpers.js
Compare @src/old-version.js with @src/new-version.js

Bash Execution with !

Execute bash commands inline using ! prefix (requires Bash in allowed-tools):

---
allowed-tools: Bash(git *)
---

Current git status: !`git status`
Last 5 commits: !`git log --oneline -5`

Arguments

  • $ARGUMENTS - All arguments passed to command
  • $1, $2, $3... $9 - Individual positional arguments

Namespacing

  • Use subdirectories in .claude/commands/ to organize commands
  • Commands appear as /subdirectory.command-name
  • Example: .claude/commands/git/quick-commit.md → /git.quick-commit

File Location

Slash commands must be saved as Markdown files:

Project commands (shared with team):

.claude/commands/command-name.md

Personal commands (individual use):

~/.claude/commands/command-name.md

Format Requirements

Basic Structure

---
description: Generate documentation for code
allowed-tools: Read, Edit
model: sonnet
---

# 📝 Documentation Generator

Generate comprehensive documentation for the selected code.

## Instructions

- Analyze code structure and purpose
- Generate clear, concise documentation
- Include parameter descriptions
- Add usage examples
- Follow JSDoc/TSDoc format for TypeScript

With Arguments

---
description: Manage tags for files
argument-hint: add [tagId] | remove [tagId] | list
allowed-tools: Read, Write
---

# Tag Manager

Manage tags for project files.

## Usage

- `/tags add <tagId>` - Add a tag (use $1 for tagId)
- `/tags remove <tagId>` - Remove a tag (use $1 for tagId)
- `/tags list` - List all tags

## Implementation

Action: $1
Tag ID: $2
All arguments: $ARGUMENTS

With File References

---
description: Compare two files and suggest improvements
allowed-tools: Read, Edit
argument-hint: <file1> <file2>
---

# File Comparator

Compare @$1 with @$2 and identify:
- Differences in approach
- Which implementation is better
- Suggested improvements

With Bash Execution

---
description: Create commit with git status context
argument-hint: <commit-message>
allowed-tools: Bash(git *)
---

# Smart Git Commit

## Current Status
!`git status --short`

## Recent Changes
!`git diff --stat`

Create a commit with message: $ARGUMENTS

Ensure the commit message follows conventional commit format.

Minimal Command

---
description: Quick code review
---

Review the current file for:
- Code quality issues
- Security vulnerabilities
- Performance bottlenecks
- Best practice violations

Frontmatter Fields

description (optional)

Brief description of what the command does. Shown in autocomplete. Defaults to first line from prompt if not specified.

---
description: Generate comprehensive documentation for selected code
---

allowed-tools (optional)

Comma-separated string of tools the command can use. Inherits from conversation if not specified.

Valid tools: Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, Task, Skill, SlashCommand, TodoWrite, AskUserQuestion

---
allowed-tools: Read, Edit, Grep
---

With Bash restrictions:

---
allowed-tools: Bash(git status:*), Bash(git diff:*), Read
---

argument-hint (optional)

Expected arguments for the command. Shown when auto-completing.

---
argument-hint: [file-path]
---
---
argument-hint: add [tagId] | remove [tagId] | list
---

model (optional)

Specific model to use for this command. Inherits from conversation if not specified.

Valid values:

  • sonnet - General purpose (Claude Sonnet 3.5)
  • haiku - Fast, simple tasks (Claude Haiku 3.5)
  • opus - Compl
Полный SKILL.md на GitHub

Установить creating-claude-commands в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл creating-claude-commands?

Expert guidance for creating Claude Code slash commands with correct frontmatter, structure, and best practices

Как установить скилл creating-claude-commands?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл creating-claude-commands запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить creating-claude-commands с