Subagents are specialized AI assistants defined as Markdown files with YAML frontmatter. Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. When a task matches a subagent's description, the parent conversation delegates to it automatically, preserving main context while enforcing constraints.
When to use: Isolating high-volume operations (tests, logs), enforcing read-only access for reviewers, routing simple tasks to cheaper models, running parallel research, creating reusable team workflows.
When NOT to use: Tasks requiring frequent back-and-forth, quick targeted changes, workflows needing nested delegation (subagents cannot spawn subagents), latency-sensitive operations where fresh context gathering is costly.
Erstellt benutzerdefinierte Subagenten für Claude Code mit YAML-Frontmatter-Konfiguration in Markdown-Dateien. Umfasst Agenten-Scoping (Projekt, Benutzer, CLI, Plugin), Tool-Zugriffskontrolle, Modellauswahl, Berechtigungsmodi, Vorladen von Fertigkeiten und Lebenszyklus-Hooks. Verwenden Sie diese Option, wenn Sie spezialisierte Subagenten erstellen, den Toolzugriff konfigurieren, Modelle auswählen, Berechtigungsmodi festlegen oder Delegierungsmuster entwerfen. Zur Agentenerstellung, Subagentenkonfiguration und benutzerdefinierten Agenteneinrichtung verwenden. Quelle: oakoss/agent-skills.