create-subagents
Expert guidance for creating, building, and using Claude Code subagents and the Task tool. Use when working with subagents, setting up agent configurations, understanding how agents work, or using the Task tool to launch specialized agents.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Expert guidance for creating, building, and using Claude Code subagents and the Task tool. Use when working with subagents, setting up agent configurations, understanding how agents work, or using the Task tool to launch specialized agents.
How to use
Uruchom komendę
/agentsw Claude Code, aby otworzyć interfejs zarządzania agentami.Wybierz opcję "Create New Agent" i zdecyduj, czy chcesz umieścić agenta na poziomie projektu (
.claude/agents/) czy na poziomie użytkownika (~/.claude/agents/).Zdefiniuj podstawowe parametry subagenta: nadaj mu nazwę w formacie lowercase-with-hyphens, napisz opis określający, kiedy powinien być używany, opcjonalnie wskaż narzędzia dostępne dla agenta (oddzielone przecinkami) oraz wybierz model (sonnet, opus, haiku lub inherit).
Napisz system prompt — instrukcje definiujące rolę i zachowanie subagenta. Uwzględnij obszary fokus (np. jakość kodu, bezpieczeństwo), format wyjścia i konkretne wytyczne działania.
Zapisz konfigurację agenta. Subagent będzie teraz dostępny do delegowania zadań za pośrednictwem narzędzia Task, które uruchamia go w izolowanym kontekście bez bezpośredniej interakcji użytkownika.
Testuj subagenta poprzez wysyłanie mu zadań z głównej konwersacji i obserwuj zwracane wyniki — dostosuj system prompt lub narzędzia w razie potrzeby.