agent-development
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
Agent Development for Claude Code Plugins
Overview
Agents are autonomous subprocesses that handle complex, multi-step tasks independently. Master agent structure, triggering conditions, and system prompt design to create powerful autonomous capabilities.
Key concepts:
- Agents are FOR autonomous work, commands are FOR user-initiated actions
- Markdown file format with YAML frontmatter
- Triggering via description field with examples
- System prompt defines agent behavior
- Model and color customization
Important - Field Name Difference: Agents use
toolsto restrict tool access. Skills useallowed-toolsfor the same purpose. Don't confuse these when switching between component types.Note on Official Documentation: The
colorfield documented in this skill is supported by Claude Code and is generated by the built-in/agentscommand, but it is not yet reflected in the official sub-agents documentation. See anthropics/claude-code#8501 for tracking. The plugins-reference.md may show an older agent format using acapabilitiesfield; for Claude Code plugins, prefer the structure documented in this skill which usestoolsfor tool restrictions.