Пользовательские slash-команды в Claude Code
productivity
slash-commands is a Claude Code skill that covers creating and using custom slash commands — quick prompts triggered by `/command-name` syntax with support for bash execution, file references, and arguments. It documents built-in commands (`/clear`, `/compact`, `/cost`, `/review`, `/mcp`, and more), the YAML frontmatter file format, `$1`/`$ARGUMENTS` for parameters, and the `!\`command\`` prefix for running bash before a prompt loads. Commands can be scoped to a project (`.claude/commands/`) or to the user (`~/.claude/commands/`), organized into subdirectories for namespacing, and exposed via MCP servers. Developers who frequently type the same prompts — for code review, semantic git commits, or security checks — can turn them into single-keystroke commands, keeping complex multi-file workflows for skills instead.
- #slash-commands
- #claude-code
- #bash-automation
- #file-references
- #productivity