create-slash-commands
Expert guidance for creating Claude Code slash commands. Use when working with slash commands, creating custom commands, understanding command structure, or learning YAML configuration.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Expert guidance for creating Claude Code slash commands. Use when working with slash commands, creating custom commands, understanding command structure, or learning YAML configuration.
How to use
Utwórz katalog
.claude/commands/w swoim projekcie lub~/.claude/commands/dla komend osobistych.Stwórz nowy plik markdown o nazwie odpowiadającej komendzie, np.
optimize.md.Na początku pliku dodaj frontmatter YAML z co najmniej polem
description, które opisuje, co robi komenda.Pod fronmattetem napisz treść promptu, który Claude będzie wykonywać. Używaj tagów XML takich jak
<objective>i<process>do strukturyzacji instrukcji.Przetestuj komendę wpisując
/nazwa-komendyw rozmowie z Claude Code. Komenda rozszerzy się w pełny prompt z kontekstem bieżącej rozmowy.Dodaj argumenty do komendy, jeśli potrzebujesz dynamicznych danych — Claude automatycznie obsłuży parametry przekazane po nazwie komendy.